Displaying 2 results from an estimated 2 matches for "iocallid".
Did you mean:
iocallids
2011 Sep 16
2
[LLVMdev] How to duplicate a function?
...ew function, splice the body of the old
// function right into the new function, leaving the old rotting hulk of
the
// function empty.
NF->getBasicBlockList().splice(NF->begin(), F.getBasicBlockList());
llvm::Value *Globals = --NF->arg_end();
Globals->setName("IOCallIDs");
// Now, exploit all return instructions.
for (Function::iterator BI = NF->begin(), BE = NF->end(); BI != BE;
++BI) {
if (ReturnInst *RI =
llvm::dyn_cast<llvm::ReturnInst>(BI->getTerminator())) {
// Don't support functions that have multiple r...
2011 Sep 16
0
[LLVMdev] How to duplicate a function?
...ew function, splice the body of the old
// function right into the new function, leaving the old rotting hulk of
the
// function empty.
NF->getBasicBlockList().splice(NF->begin(), F.getBasicBlockList());
llvm::Value *Globals = --NF->arg_end();
Globals->setName("IOCallIDs");
// Now, exploit all return instructions.
for (Function::iterator BI = NF->begin(), BE = NF->end(); BI != BE;
++BI) {
if (ReturnInst *RI =
llvm::dyn_cast<llvm::ReturnInst>(BI->getTerminator())) {
// Don't support functions that have multiple r...