SVF icon indicating copy to clipboard operation
SVF copied to clipboard

On running a llvm pass before svf pag construction

Open YantingChi opened this issue 1 year ago • 2 comments

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!

YantingChi avatar Mar 07 '24 21:03 YantingChi

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.

YantingChi avatar Mar 11 '24 20:03 YantingChi

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.

yuleisui avatar Mar 11 '24 23:03 yuleisui