SVF
SVF copied to clipboard
On running a llvm pass before svf pag construction
Hi, Thanks for providing such a useful tool. I want to incorporate an llvm pass that performs type analysis, which may add some attributes to the SVFIRBuilder class while also affecting the PAG construction. But I looked into the svf-llvm folder but did not find an entry.
The pass scans through the struct definition part of the IR to filter out some interesting struct types and record these types as a field of the SVFIRBuilder class. I will use these records in the PAG building part.
Could you give me a hint on in which file or which function I should put my code? Thanks in advance!
Hi, I would appreciate it if someone would give me some hints here. To make my question clearer, I want to find a function in which I can access the original LLVM::module and do some analysis, then I want to append the results into the SVFNode class.
It is not suggested to access llvm data structure and APIs in SVF. You are ok to conduct llvm analysis solely in the svf-llvm folder.