[PATCH] D118112: [flang][tco] Remove unneeded dependencies
Andrzej Warzynski via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 25 01:45:58 PST 2022
awarzynski created this revision.
Herald added a subscriber: mgorny.
Herald added a project: Flang.
awarzynski requested review of this revision.
Herald added subscribers: llvm-commits, jdoerfert.
Herald added a project: LLVM.
`tco` does not generate machine code, so it does not require (machine)
code-gen related dependencies.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D118112
Files:
flang/tools/tco/CMakeLists.txt
flang/tools/tco/tco.cpp
Index: flang/tools/tco/tco.cpp
===================================================================
--- flang/tools/tco/tco.cpp
+++ flang/tools/tco/tco.cpp
@@ -136,8 +136,6 @@
fir::support::registerMLIRPassesForFortranTools();
fir::registerOptCodeGenPasses();
fir::registerOptTransformPasses();
- InitializeAllTargets();
- mlir::registerAsmPrinterCLOptions();
mlir::registerMLIRContextCLOptions();
mlir::registerPassManagerCLOptions();
mlir::PassPipelineCLParser passPipe("", "Compiler passes to run");
Index: flang/tools/tco/CMakeLists.txt
===================================================================
--- flang/tools/tco/CMakeLists.txt
+++ flang/tools/tco/CMakeLists.txt
@@ -1,7 +1,3 @@
-set(LLVM_LINK_COMPONENTS
- ${LLVM_TARGETS_TO_BUILD}
-)
-
add_flang_tool(tco tco.cpp)
llvm_update_compile_flags(tco)
get_property(dialect_libs GLOBAL PROPERTY MLIR_DIALECT_LIBS)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D118112.402797.patch
Type: text/x-patch
Size: 896 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220125/0022097c/attachment.bin>
More information about the llvm-commits
mailing list