[LLVMdev] Instantiating the new Instructions from CallInst Class

Yonghyun Hwang yonghyuh at ics.uci.edu
Tue Apr 17 12:11:44 PDT 2007


Hello All,

I'm developing timing analysis tool using LLVM.
After several analysis phases, I want to instantiate several 
instructions in the basic block.
Instructions that I try to instantiate are like below;

call void (int)* %waitABC(int 10)
%tmp = call int (int, int*)* %doABC(int %i, int* %total)

I think I should use 'CallInst' class in 'Instructions.h' file.
How I could make those instructions from 'CallInst' class?
Thank you.

- Yonghyun



More information about the llvm-dev mailing list