Hi, I am new to the LLVM project, and from what I have heard It can be used to performed static analysis on a source code. I would like to know if it is possible to extract the different function call through function pointer (find the caller function and the callee function) in a program. I could find the kind of information in the website so it would be really helpful if you could tell me if such an analyze already exist in LLVM or can you point me to the good direction on how to build it myself (existing source code, reference, tutorial, example...). Aurelien -- View this message in context: http://old.nabble.com/Pointer-functer-analysis-tp27739982p27739982.html Sent from the LLVM - Dev mailing list archive at Nabble.com.
You could have a look at "poolalloc" (http://llvm.org/svn/llvm-project/poolalloc/) Within this source tree http://llvm.org/svn/llvm-project/poolalloc/trunk/lib/DSA/CallTargets.cpp seems to be what you are looking for. Note that this is not part of the mainline LLVM distribution. Harmen Aurelien Tran wrote:> Hi, > > I am new to the LLVM project, and from what I have heard It can be used to > performed static analysis on a source code. I would like to know if it is > possible to extract the different function call through function pointer > (find the caller function and the callee function) in a program. > > I could find the kind of information in the website so it would be really > helpful if you could tell me if such an analyze already exist in LLVM or can > you point me to the good direction on how to build it myself (existing > source code, reference, tutorial, example...). > > Aurelien
Maybe Matching Threads
- [LLVMdev] function pointer alias analysis
- [LLVMdev] indirect calls tracking and control flow graph
- [LLVMdev] A question about LLVM and pool allocation
- [LLVMdev] Poolalloc asserts when passing in pool descriptors
- [LLVMdev] indirect calls tracking and control flow graph