search for: something_computed

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

2009 Apr 14
3
[LLVMdev] InstVisitor Example
...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 http://llvm.cs.uiuc.edu >> http://lists.cs.uiuc.edu/...
2009 Apr 14
0
[LLVMdev] InstVisitor Example
...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 http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
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
2009 Apr 14
0
[LLVMdev] InstVisitor Example
...t;> >> 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