diff options
author | Mircea Trofin <mtrofin@google.com> | 2023-12-10 18:03:08 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-10 18:03:08 -0800 |
commit | 1d608fc755a3e15d0020f61c9535c9b730ab9dec (patch) | |
tree | 47aee0a0550e5c7c04148a9cb8d2374a0bf73653 /clang/lib/CodeGen/BackendUtil.cpp | |
parent | 9bd32d78a9c8c51929f200ceefe735dc687ab10d (diff) | |
download | llvm-1d608fc755a3e15d0020f61c9535c9b730ab9dec.zip llvm-1d608fc755a3e15d0020f61c9535c9b730ab9dec.tar.gz llvm-1d608fc755a3e15d0020f61c9535c9b730ab9dec.tar.bz2 |
[NFC][InstrProf] Refactor InstrProfiling lowering pass (#74970)
Akin other passes - refactored the name to `InstrProfilingLoweringPass` to better communicate what it does, and split the pass part and the transformation part to avoid needing to initialize object state during `::run`.
A subsequent PR will move `InstrLowering` to the .cpp file and rename it to `InstrLowerer`.
Diffstat (limited to 'clang/lib/CodeGen/BackendUtil.cpp')
-rw-r--r-- | clang/lib/CodeGen/BackendUtil.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/BackendUtil.cpp b/clang/lib/CodeGen/BackendUtil.cpp index 8c666e2..77455c0 100644 --- a/clang/lib/CodeGen/BackendUtil.cpp +++ b/clang/lib/CodeGen/BackendUtil.cpp @@ -982,7 +982,7 @@ void EmitAssemblyHelper::RunOptimizationPipeline( getInstrProfOptions(CodeGenOpts, LangOpts)) PB.registerPipelineStartEPCallback( [Options](ModulePassManager &MPM, OptimizationLevel Level) { - MPM.addPass(InstrProfiling(*Options, false)); + MPM.addPass(InstrProfilingLoweringPass(*Options, false)); }); // TODO: Consider passing the MemoryProfileOutput to the pass builder via |