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

Add Cross Registering Standard LLVM Analyses #4

Open
2over12 opened this issue Feb 22, 2022 · 0 comments
Open

Add Cross Registering Standard LLVM Analyses #4

2over12 opened this issue Feb 22, 2022 · 0 comments

Comments

@2over12
Copy link

2over12 commented Feb 22, 2022

Boiler plate for setting up a pipeline in llvm exists in several repos, including anvill and rellic:

  llvm::PassBuilder pb;
  llvm::ModulePassManager mpm;
  llvm::ModuleAnalysisManager mam;
  llvm::LoopAnalysisManager lam;
  llvm::CGSCCAnalysisManager cam;
  llvm::FunctionAnalysisManager fam;

  pb.registerFunctionAnalyses(fam);
  pb.registerModuleAnalyses(mam);
  pb.registerCGSCCAnalyses(cam);
  pb.registerLoopAnalyses(lam);

  pb.crossRegisterProxies(lam, fam, cam, mam);


do stuff


  fam.clear();
  mam.clear();
  cam.clear();
  lam.clear();

We should have a set of pass related utilities

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

1 participant