search for: instruct_show

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

2004 Nov 18
3
[LLVMdev] A few beginner level questions..
...on an optimised bytecode , so should i optimize it and get a new bytecode file first or I can just put my pass at the end of all the other optimization passes ? 2. For an application , for every instruction if its a call instruction I try to print out the called function as below .. void pass01a::instruct_show(Instruction* I){ if ( isa<CallInst>(*I) ){ const CallInst *CI = cast<CallInst>(I); const Function *Func = CI->getCalledFunction() ; std::cerr<<":calledFunction:"<<Func->getName(); } } Now it works fine for some applica...
2004 Nov 18
0
[LLVMdev] A few beginner level questions..
...passes ? Just put yours at the end. You'll need to create a loadable module (shared library/dll) and use the --load option to op. > > 2. For an application , for every instruction if its a call > instruction I try to print out the called function as below .. > > void pass01a::instruct_show(Instruction* I){ > if ( isa<CallInst>(*I) ){ > const CallInst *CI = cast<CallInst>(I); > const Function *Func = CI->getCalledFunction() ; > std::cerr<<":calledFunction:"<<Func->getName(); > } > } >...