[PATCH] D124063: [LegacyPM] Rename and deprecate populateModulePassManager

Fangrui Song via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 19 21:47:18 PDT 2022


MaskRay created this revision.
MaskRay added reviewers: aeubanks, nikic.
Herald added a reviewer: deadalnix.
Herald added subscribers: ormris, StephenFan, kbarton, hiraditya, nemanjai.
Herald added a reviewer: bollu.
Herald added a reviewer: ctetreau.
Herald added a reviewer: ctetreau.
Herald added a reviewer: ctetreau.
Herald added a reviewer: ctetreau.
Herald added a project: All.
MaskRay requested review of this revision.
Herald added projects: clang, LLVM.
Herald added subscribers: llvm-commits, cfe-commits.

Using LLVM's legacy PM for optimization pipeline was deprecated in
13.0.0 <https://releases.llvm.org/13.0.0/docs/ReleaseNotes.html#changes-to-the-llvm-ir>
and some rarely used pieces are being removed.

populateModulePassManager is a main API indicating legacy usage. Rename
and deprecate it to make users aware. Use a function attribute instead
of LLVM_ATTRIBUTE_DEPRECATED to allow warning suppression with #pragma
without worrying about MSVC.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D124063

Files:
  clang/tools/clang-fuzzer/handle-llvm/handle_llvm.cpp
  llvm/bindings/go/llvm/transforms_pmbuilder.go
  llvm/bindings/ocaml/transforms/passmgr_builder/llvm_passmgr_builder.mli
  llvm/bindings/ocaml/transforms/passmgr_builder/passmgr_builder_ocaml.c
  llvm/include/llvm-c/Transforms/PassManagerBuilder.h
  llvm/include/llvm/Transforms/IPO/PassManagerBuilder.h
  llvm/lib/Transforms/IPO/PassManagerBuilder.cpp
  llvm/tools/bugpoint/bugpoint.cpp
  llvm/tools/opt/opt.cpp
  llvm/unittests/ExecutionEngine/MCJIT/MCJITCAPITest.cpp
  polly/lib/CodeGen/PPCGCodeGeneration.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D124063.423807.patch
Type: text/x-patch
Size: 8561 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220420/b6d9a777/attachment.bin>


More information about the cfe-commits mailing list