search for: instpointer

Displaying 2 results from an estimated 2 matches for "instpointer".

Did you mean: constpointer
2014 Aug 31
2
[LLVMdev] Inserting Calls to var args Functions
Hi All, I am using code similar to giri instrumentation <https://github.com/liuml07/giri> framework to insert my instrumentation code. It works for normal functions for example to insert recordInt32 function below. void recordInt32(int32_t val){ printf("%d, ", val); } I can get recodedInt32 function in my Module using getOrInsert Function. Function* RecordInt32 =
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 sti...