Displaying 2 results from an estimated 2 matches for "instpoint".
Did you mean:
infopoint
2014 Aug 31
2
[LLVMdev] Inserting Calls to var args Functions
...Insert Function.
Function* RecordInt32 = cast<Function>(M.getOrInsertFunction("recordInt32",
VoidType,
Int32Type,
NULL));
and insert at desired instPoint using:
CallInst::Create(RecordInt32, args, "", instPoint);
What should be the similar instructions for recoedVarInsputValues below:
void recordVarInputValues(int num, ...){ CODE }
I am not able to figure out what will be the argument to
getOrInsertFunction for "...".
Thanks...
2002 Sep 10
0
[LLVMdev] Simpler way to insert instructions into the program
...basic
block, right before the instruction.
Because no iterators are involved, this simplifies a lot of code. For example:
http://mail.cs.uiuc.edu/pipermail/llvm-commits/2002-September/000110.html
As a side note, this insertion pattern is no longer needed:
BI = ++BB->getInstList().insert(BI, InstPointer);
It is exactly equivalent to doing:
BB->getInstList().insert(BI, InstPointer);
Historically this was neccesary because inserting the instruction
invalidated the iterator operand. Because this hasn't been the case for
quite a while, we can stop doing this, even in the cases where we s...