search for: runonx

Displaying 4 results from an estimated 4 matches for "runonx".

Did you mean: runon
2009 Apr 14
3
[LLVMdev] InstVisitor Example
...isitInvokeInst(InvokeInst& invoke) { > if (call.getName() == strcpyName) > handleStrcpy(&invoke); > } > }; > > Then, you probably want to inherit from ModulePass, or FunctionPass, > or BasicBlockPass, or whatever makes sense, and in the relevant > runOnX(X& x) callback you say: > > bool runOnX(X& x) { > visit(x); > return true/false/something_computed; > } > > Hope this helps, > Luke > >> >> >> Thanks, >> Brice Lin >> _______________________________________________ >&gt...
2009 Apr 14
0
[LLVMdev] InstVisitor Example
...nvoke) { >>       if (call.getName() == strcpyName) >>         handleStrcpy(&invoke); >>     } >>   }; >> >> Then, you probably want to inherit from ModulePass, or FunctionPass, >> or BasicBlockPass, or whatever makes sense, and in the relevant >> runOnX(X& x) callback you say: >> >>   bool runOnX(X& x) { >>     visit(x); >>     return true/false/something_computed; >>   } >> >> Hope this helps, >> Luke
2009 Apr 14
0
[LLVMdev] InstVisitor Example
...(&call); } void visitInvokeInst(InvokeInst& invoke) { if (call.getName() == strcpyName) handleStrcpy(&invoke); } }; Then, you probably want to inherit from ModulePass, or FunctionPass, or BasicBlockPass, or whatever makes sense, and in the relevant runOnX(X& x) callback you say: bool runOnX(X& x) { visit(x); return true/false/something_computed; } Hope this helps, Luke > > > Thanks, > Brice Lin > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu...
2009 Apr 14
2
[LLVMdev] InstVisitor Example
I just read the LLVM Programmer's Manual, which mentions (but specifically does not include any details of) the InstVisitor template. Could someone please provide an example of how to use this template to find (as an example) all CallSites for the function strcpy? Thanks, Brice Lin