Skip to content

Commit

Permalink
Formatted
Browse files Browse the repository at this point in the history
  • Loading branch information
tpatki committed Sep 20, 2024
1 parent e53ee4a commit ec2688a
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/c/weaver/weave/perfflow_weave_new_pass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ PreservedAnalyses NewWeavingPass::run(llvm::Module &M,
bool Changed = runOnModule(M);

return (Changed ? llvm::PreservedAnalyses::none()
: llvm::PreservedAnalyses::all());
: llvm::PreservedAnalyses::all());
}

// Register the new pass.
Expand All @@ -89,12 +89,14 @@ PreservedAnalyses NewWeavingPass::run(llvm::Module &M,
PassPluginLibraryInfo getNewWeavingPassPluginInfo()
{

const auto pass_callback = [](PassBuilder &PB) {
const auto pass_callback = [](PassBuilder & PB)
{
PB.registerPipelineEarlySimplificationEPCallback(
[&](ModulePassManager &MPM, auto) {
MPM.addPass(NewWeavingPass());
return true;
}
[&](ModulePassManager & MPM, auto)
{
MPM.addPass(NewWeavingPass());
return true;
}
);
};

Expand Down

0 comments on commit ec2688a

Please sign in to comment.