search for: getorinsert

Displaying 1 result from an estimated 1 matches for "getorinsert".

2014 Aug 31
2
[LLVMdev] Inserting Calls to var args Functions
...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 = cast<Function>(M.getOrInsertFunction("recordInt32", VoidType, Int32Type, NULL)); and insert at desired instPo...