Skip to content

Commit

Permalink
Builds, but pass is not picked up with -XClang -load
Browse files Browse the repository at this point in the history
  • Loading branch information
tpatki committed Sep 20, 2024
1 parent 2f8cd8f commit 6b09d5a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/c/weaver/weave/perfflow_weave_new_pass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ PreservedAnalyses NewWeavingPass::run(llvm::Module &M,

llvm::PassPluginLibraryInfo getNewWeavingPassPluginInfo()
{
return {LLVM_PLUGIN_API_VERSION, "inject-func-call", LLVM_VERSION_STRING,
return {LLVM_PLUGIN_API_VERSION, "new-weaving-pass", LLVM_VERSION_STRING,
[](PassBuilder &PB)
{
PB.registerPipelineParsingCallback(
Expand All @@ -104,8 +104,8 @@ llvm::PassPluginLibraryInfo getNewWeavingPassPluginInfo()
}};
}

// extern "C" LLVM_ATTRIBUTE_WEAK ::llvm::PassPluginLibraryInfo
// llvmGetPassPluginInfo()
// {
// return getNewWeavingPassPluginInfo();
// }
extern "C" LLVM_ATTRIBUTE_WEAK ::llvm::PassPluginLibraryInfo
llvmGetPassPluginInfo()
{
return getNewWeavingPassPluginInfo();
}

0 comments on commit 6b09d5a

Please sign in to comment.