Displaying 1 result from an estimated 1 matches for "ciprintf".
Did you mean:
iprintf
2005 Mar 15
1
[LLVMdev] Dynamic Creation of a simple program
...r example, for a very simple "Hello World" program, I will
have something like this (pseudo code):
Module M = new Module();
Function FMain = new Function("main");
M.addFunction(FMain);
BasicBlock B = new BasicBlock();
FMain.add(B);
// maybe adding here a symboltable
CallInst CIPrintf = new CallInst("printf", "Hello World", B);
...
Something like that (although obviously not accurate). Once I have this program, I can apply some
analyses to it without really having to compile a real program. This would be useful if I want to
create my own intermediate repres...