Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On running a llvm pass before svf pag construction #1399

Open
YantingChi opened this issue Mar 7, 2024 · 2 comments
Open

On running a llvm pass before svf pag construction #1399

YantingChi opened this issue Mar 7, 2024 · 2 comments

Comments

@YantingChi
Copy link

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
Copy link
Author

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.

@yuleisui
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants