From ec2688a5210af311edae40e2ead1a94230b8f7a6 Mon Sep 17 00:00:00 2001 From: Tapasya Patki Date: Thu, 19 Sep 2024 23:19:15 -0700 Subject: [PATCH] Formatted --- src/c/weaver/weave/perfflow_weave_new_pass.cpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/c/weaver/weave/perfflow_weave_new_pass.cpp b/src/c/weaver/weave/perfflow_weave_new_pass.cpp index 0eb5f71d..57d6510b 100644 --- a/src/c/weaver/weave/perfflow_weave_new_pass.cpp +++ b/src/c/weaver/weave/perfflow_weave_new_pass.cpp @@ -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. @@ -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; + } ); };