[all-commits] [llvm/llvm-project] 7059a6: [IR] Split out IR printing passes into IRPrinter
Alexander Shaposhnikov via All-commits
all-commits at lists.llvm.org
Thu Nov 17 17:51:28 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 7059a6c32cfad8f272fad47265e3890cd7a1a7e1
https://github.com/llvm/llvm-project/commit/7059a6c32cfad8f272fad47265e3890cd7a1a7e1
Author: Alexander Shaposhnikov <ashaposhnikov at google.com>
Date: 2022-11-18 (Fri, 18 Nov 2022)
Changed paths:
M clang/lib/CodeGen/BackendUtil.cpp
M clang/lib/CodeGen/CMakeLists.txt
M llvm/include/llvm/CodeGen/CodeGenPassBuilder.h
M llvm/include/llvm/IR/IRPrintingPasses.h
A llvm/include/llvm/IRPrinter/IRPrintingPasses.h
M llvm/lib/CMakeLists.txt
M llvm/lib/IR/IRPrintingPasses.cpp
A llvm/lib/IRPrinter/CMakeLists.txt
A llvm/lib/IRPrinter/IRPrintingPasses.cpp
M llvm/lib/Passes/CMakeLists.txt
M llvm/lib/Passes/PassBuilder.cpp
M llvm/lib/Target/DirectX/DirectXTargetMachine.cpp
M llvm/tools/llc/llc.cpp
M llvm/tools/opt/CMakeLists.txt
M llvm/tools/opt/NewPMDriver.cpp
M utils/bazel/llvm-project-overlay/clang/BUILD.bazel
M utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
M utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
Log Message:
-----------
[IR] Split out IR printing passes into IRPrinter
This diff splits out (from LLVMCore) IR printing passes into IRPrinter.
This structure is similar to what we already have for IRReader and
enables us to avoid circular dependencies between LLVMCore and Analysis
(this is a preparation for https://reviews.llvm.org/D137768).
The legacy interface is left unchanged, once the legacy pass manager
is removed (in the future) we will be able to clean it up further.
The bazel build configuration has been updated as well.
Test plan:
1/ Tested the following cmake configurations: static/dynamic linking * lld/gold * clang/gcc
2/ bazel build --config=generic_clang @llvm-project//...
Differential revision: https://reviews.llvm.org/D138081
More information about the All-commits
mailing list