Displaying 1 result from an estimated 1 matches for "prefixdatamap".
2015 Oct 10
2
[RFC] Clean up the way we store optional Function data
...vm::Function
cleaner, more consistent, and a little smaller.
What do we do currently?
========================
Prefix and prologue data are attached to Functions via DenseMaps in
LLVMContextImpl:
typedef DenseMap<const Function *, ReturnInst *> FunctionDataMapTy;
FunctionDataMapTy PrefixDataMap;
FunctionDataMapTy PrologueDataMap;
To attach prefix data to a Function, we create an orphan ReturnInst:
RI = ReturnInst::Create(F->getContext(), PrefixData);
PrefixDataMap[F] = RI;
Personalities are stored as ``optional`` Function operands. We actually always
allocate the space f...