Skip to content

Commit

Permalink
Comment out the example code
Browse files Browse the repository at this point in the history
  • Loading branch information
tpatki committed Sep 20, 2024
1 parent 5b3e7a0 commit ea779be
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/c/weaver/weave/perfflow_weave_new_pass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,17 +85,6 @@ PreservedAnalyses NewWeavingPass::run(llvm::Module &M,
// See docs here: https://github.com/banach-space/llvm-tutor/blob/main/lib/InjectFuncCall.cpp#L139
// And here: https://rocmdocs.amd.com/projects/llvm-project/en/latest/LLVM/llvm/html/WritingAnLLVMNewPMPass.html

PassPluginLibraryInfo getPassPluginInfo() {
const auto callback = [](PassBuilder &PB) {
PB.registerPipelineEarlySimplificationEPCallback(
[&](ModulePassManager &MPM, auto) {
MPM.addPass(createModuleToFunctionPassAdaptor(MyPass()));
return true;
});
};



llvm::PassPluginLibraryInfo getNewWeavingPassPluginInfo()
{
return {LLVM_PLUGIN_API_VERSION, "new-weaving-pass", LLVM_VERSION_STRING,
Expand Down

0 comments on commit ea779be

Please sign in to comment.