[llvm] 7d5d987 - [CMake] Reorder and reformat deps
NAKAMURA Takumi via llvm-commits
llvm-commits at lists.llvm.org
Sun Apr 16 08:32:38 PDT 2023
Author: NAKAMURA Takumi
Date: 2023-04-17T00:32:16+09:00
New Revision: 7d5d987e93bb4650d1dade41f0d5c5025ccb5b5c
URL: https://github.com/llvm/llvm-project/commit/7d5d987e93bb4650d1dade41f0d5c5025ccb5b5c
DIFF: https://github.com/llvm/llvm-project/commit/7d5d987e93bb4650d1dade41f0d5c5025ccb5b5c.diff
LOG: [CMake] Reorder and reformat deps
Added:
Modified:
clang-tools-extra/clang-tidy/CMakeLists.txt
clang/lib/CodeGen/CMakeLists.txt
clang/lib/Interpreter/CMakeLists.txt
clang/lib/Tooling/DependencyScanning/CMakeLists.txt
clang/tools/clang-scan-deps/CMakeLists.txt
clang/unittests/Analysis/CMakeLists.txt
clang/unittests/Analysis/FlowSensitive/CMakeLists.txt
clang/unittests/DirectoryWatcher/CMakeLists.txt
clang/unittests/Introspection/CMakeLists.txt
clang/unittests/Sema/CMakeLists.txt
llvm/lib/DWARFLinker/CMakeLists.txt
llvm/lib/DWARFLinkerParallel/CMakeLists.txt
llvm/lib/DWP/CMakeLists.txt
llvm/lib/LTO/CMakeLists.txt
llvm/lib/Target/AArch64/CMakeLists.txt
llvm/lib/Target/AArch64/MCTargetDesc/CMakeLists.txt
llvm/lib/Target/AMDGPU/AsmParser/CMakeLists.txt
llvm/lib/Target/AMDGPU/CMakeLists.txt
llvm/lib/Target/AMDGPU/MCA/CMakeLists.txt
llvm/lib/Target/AMDGPU/MCTargetDesc/CMakeLists.txt
llvm/lib/Target/AMDGPU/Utils/CMakeLists.txt
llvm/lib/Target/ARM/AsmParser/CMakeLists.txt
llvm/lib/Target/ARM/CMakeLists.txt
llvm/lib/Target/ARM/Disassembler/CMakeLists.txt
llvm/lib/Target/ARM/MCTargetDesc/CMakeLists.txt
llvm/lib/Target/AVR/AsmParser/CMakeLists.txt
llvm/lib/Target/AVR/CMakeLists.txt
llvm/lib/Target/AVR/Disassembler/CMakeLists.txt
llvm/lib/Target/BPF/CMakeLists.txt
llvm/lib/Target/Hexagon/CMakeLists.txt
llvm/lib/Target/Lanai/AsmParser/CMakeLists.txt
llvm/lib/Target/Lanai/CMakeLists.txt
llvm/lib/Target/LoongArch/CMakeLists.txt
llvm/lib/Target/MSP430/AsmParser/CMakeLists.txt
llvm/lib/Target/Mips/CMakeLists.txt
llvm/lib/Target/NVPTX/CMakeLists.txt
llvm/lib/Target/PowerPC/CMakeLists.txt
llvm/lib/Target/PowerPC/MCTargetDesc/CMakeLists.txt
llvm/lib/Target/RISCV/CMakeLists.txt
llvm/lib/Target/RISCV/MCA/CMakeLists.txt
llvm/lib/Target/VE/AsmParser/CMakeLists.txt
llvm/lib/Target/VE/CMakeLists.txt
llvm/lib/Target/VE/Disassembler/CMakeLists.txt
llvm/lib/Target/VE/MCTargetDesc/CMakeLists.txt
llvm/lib/Target/WebAssembly/AsmParser/CMakeLists.txt
llvm/lib/Target/WebAssembly/CMakeLists.txt
llvm/lib/Target/WebAssembly/Disassembler/CMakeLists.txt
llvm/lib/Target/WebAssembly/MCTargetDesc/CMakeLists.txt
llvm/lib/Target/X86/CMakeLists.txt
llvm/lib/Target/X86/MCA/CMakeLists.txt
llvm/lib/Target/X86/MCTargetDesc/CMakeLists.txt
llvm/lib/Target/XCore/Disassembler/CMakeLists.txt
llvm/tools/dsymutil/CMakeLists.txt
llvm/tools/llvm-debuginfo-analyzer/CMakeLists.txt
llvm/tools/llvm-dwarfutil/CMakeLists.txt
llvm/tools/llvm-exegesis/lib/AArch64/CMakeLists.txt
llvm/tools/llvm-exegesis/lib/Mips/CMakeLists.txt
llvm/tools/llvm-exegesis/lib/PowerPC/CMakeLists.txt
llvm/tools/llvm-exegesis/lib/X86/CMakeLists.txt
llvm/tools/llvm-gsymutil/CMakeLists.txt
llvm/tools/llvm-ifs/CMakeLists.txt
llvm/tools/llvm-modextract/CMakeLists.txt
llvm/tools/llvm-opt-fuzzer/CMakeLists.txt
llvm/tools/llvm-opt-report/CMakeLists.txt
llvm/tools/llvm-profdata/CMakeLists.txt
llvm/tools/llvm-readobj/CMakeLists.txt
llvm/tools/llvm-reduce/CMakeLists.txt
llvm/tools/llvm-remark-size-diff/CMakeLists.txt
llvm/tools/llvm-remarkutil/CMakeLists.txt
llvm/tools/sancov/CMakeLists.txt
llvm/unittests/DWARFLinkerParallel/CMakeLists.txt
llvm/unittests/Frontend/CMakeLists.txt
llvm/unittests/Target/AArch64/CMakeLists.txt
llvm/unittests/Target/ARM/CMakeLists.txt
llvm/unittests/Target/LoongArch/CMakeLists.txt
llvm/unittests/Target/X86/CMakeLists.txt
llvm/unittests/TextAPI/CMakeLists.txt
Removed:
################################################################################
diff --git a/clang-tools-extra/clang-tidy/CMakeLists.txt b/clang-tools-extra/clang-tidy/CMakeLists.txt
index 8a953eeea2759..12dabc34421fd 100644
--- a/clang-tools-extra/clang-tidy/CMakeLists.txt
+++ b/clang-tools-extra/clang-tidy/CMakeLists.txt
@@ -26,9 +26,9 @@ add_clang_library(clangTidy
clang_target_link_libraries(clangTidy
PRIVATE
- clangAnalysis
clangAST
clangASTMatchers
+ clangAnalysis
clangBasic
clangFormat
clangFrontend
diff --git a/clang/lib/CodeGen/CMakeLists.txt b/clang/lib/CodeGen/CMakeLists.txt
index 2ce04e3411282..13dd16d93d7af 100644
--- a/clang/lib/CodeGen/CMakeLists.txt
+++ b/clang/lib/CodeGen/CMakeLists.txt
@@ -1,4 +1,5 @@
set(LLVM_LINK_COMPONENTS
+ AggressiveInstCombine
Analysis
BitReader
BitWriter
@@ -12,7 +13,6 @@ set(LLVM_LINK_COMPONENTS
IPO
IRPrinter
IRReader
- AggressiveInstCombine
InstCombine
Instrumentation
LTO
@@ -93,8 +93,8 @@ add_clang_library(clangCodeGen
intrinsics_gen
LINK_LIBS
- clangAnalysis
clangAST
+ clangAnalysis
clangBasic
clangFrontend
clangLex
diff --git a/clang/lib/Interpreter/CMakeLists.txt b/clang/lib/Interpreter/CMakeLists.txt
index c49f22fddd8ee..4702c6a7e8221 100644
--- a/clang/lib/Interpreter/CMakeLists.txt
+++ b/clang/lib/Interpreter/CMakeLists.txt
@@ -21,13 +21,13 @@ add_clang_library(clangInterpreter
clangAST
clangAnalysis
clangBasic
+ clangCodeGen
clangDriver
clangEdit
clangFrontend
+ clangFrontendTool
clangLex
clangParse
clangSema
clangSerialization
- clangCodeGen
- clangFrontendTool
)
diff --git a/clang/lib/Tooling/DependencyScanning/CMakeLists.txt b/clang/lib/Tooling/DependencyScanning/CMakeLists.txt
index 8ab3762fe7da9..ac93f757dc314 100644
--- a/clang/lib/Tooling/DependencyScanning/CMakeLists.txt
+++ b/clang/lib/Tooling/DependencyScanning/CMakeLists.txt
@@ -27,4 +27,4 @@ add_clang_library(clangDependencyScanning
clangParse
clangSerialization
clangTooling
-)
+ )
diff --git a/clang/tools/clang-scan-deps/CMakeLists.txt b/clang/tools/clang-scan-deps/CMakeLists.txt
index 8a4543ae4c77f..c68a98f8449e5 100644
--- a/clang/tools/clang-scan-deps/CMakeLists.txt
+++ b/clang/tools/clang-scan-deps/CMakeLists.txt
@@ -20,6 +20,7 @@ set(CLANG_SCAN_DEPS_LIB_DEPS
clangAST
clangBasic
clangCodeGen
+ clangDependencyScanning
clangDriver
clangFrontend
clangFrontendTool
@@ -27,7 +28,6 @@ set(CLANG_SCAN_DEPS_LIB_DEPS
clangParse
clangSerialization
clangTooling
- clangDependencyScanning
)
clang_target_link_libraries(clang-scan-deps
diff --git a/clang/unittests/Analysis/CMakeLists.txt b/clang/unittests/Analysis/CMakeLists.txt
index d418a2b0f9c34..809c6ac4e813b 100644
--- a/clang/unittests/Analysis/CMakeLists.txt
+++ b/clang/unittests/Analysis/CMakeLists.txt
@@ -14,9 +14,9 @@ add_clang_unittest(ClangAnalysisTests
clang_target_link_libraries(ClangAnalysisTests
PRIVATE
- clangAnalysis
clangAST
clangASTMatchers
+ clangAnalysis
clangBasic
clangFrontend
clangLex
diff --git a/clang/unittests/Analysis/FlowSensitive/CMakeLists.txt b/clang/unittests/Analysis/FlowSensitive/CMakeLists.txt
index c77aeaca90959..0895cdeaabb3e 100644
--- a/clang/unittests/Analysis/FlowSensitive/CMakeLists.txt
+++ b/clang/unittests/Analysis/FlowSensitive/CMakeLists.txt
@@ -27,11 +27,11 @@ add_clang_unittest(ClangAnalysisFlowSensitiveTests
clang_target_link_libraries(ClangAnalysisFlowSensitiveTests
PRIVATE
+ clangAST
+ clangASTMatchers
clangAnalysis
clangAnalysisFlowSensitive
clangAnalysisFlowSensitiveModels
- clangAST
- clangASTMatchers
clangBasic
clangFrontend
clangLex
diff --git a/clang/unittests/DirectoryWatcher/CMakeLists.txt b/clang/unittests/DirectoryWatcher/CMakeLists.txt
index 84a1a9d40c250..0f95dc823753b 100644
--- a/clang/unittests/DirectoryWatcher/CMakeLists.txt
+++ b/clang/unittests/DirectoryWatcher/CMakeLists.txt
@@ -11,8 +11,8 @@ if(APPLE OR CMAKE_SYSTEM_NAME MATCHES "Linux" OR CMAKE_SYSTEM_NAME STREQUAL Wind
target_link_libraries(DirectoryWatcherTests
PRIVATE
LLVMTestingSupport
- clangDirectoryWatcher
clangBasic
+ clangDirectoryWatcher
)
endif()
diff --git a/clang/unittests/Introspection/CMakeLists.txt b/clang/unittests/Introspection/CMakeLists.txt
index f9c55c5edfc49..edc359ef4fcfd 100644
--- a/clang/unittests/Introspection/CMakeLists.txt
+++ b/clang/unittests/Introspection/CMakeLists.txt
@@ -11,10 +11,10 @@ clang_target_link_libraries(IntrospectionTests
PRIVATE
clangAST
clangASTMatchers
- clangTooling
clangBasic
- clangSerialization
clangFrontend
+ clangSerialization
+ clangTooling
)
target_link_libraries(IntrospectionTests
PRIVATE
diff --git a/clang/unittests/Sema/CMakeLists.txt b/clang/unittests/Sema/CMakeLists.txt
index eb6d93aa197b2..82d309375eda6 100644
--- a/clang/unittests/Sema/CMakeLists.txt
+++ b/clang/unittests/Sema/CMakeLists.txt
@@ -24,7 +24,7 @@ clang_target_link_libraries(SemaTests
target_link_libraries(SemaTests
PRIVATE
- clangTesting
LLVMTestingAnnotations
LLVMTestingSupport
-)
+ clangTesting
+ )
diff --git a/llvm/lib/DWARFLinker/CMakeLists.txt b/llvm/lib/DWARFLinker/CMakeLists.txt
index ac2f59080c3dd..913fcba35b146 100644
--- a/llvm/lib/DWARFLinker/CMakeLists.txt
+++ b/llvm/lib/DWARFLinker/CMakeLists.txt
@@ -11,10 +11,10 @@ add_llvm_component_library(LLVMDWARFLinker
intrinsics_gen
LINK_COMPONENTS
- BinaryFormat
- DebugInfoDWARF
AsmPrinter
+ BinaryFormat
CodeGen
+ DebugInfoDWARF
MC
Object
Support
diff --git a/llvm/lib/DWARFLinkerParallel/CMakeLists.txt b/llvm/lib/DWARFLinkerParallel/CMakeLists.txt
index a9bad6caaf787..390c1925f9eb5 100644
--- a/llvm/lib/DWARFLinkerParallel/CMakeLists.txt
+++ b/llvm/lib/DWARFLinkerParallel/CMakeLists.txt
@@ -9,11 +9,11 @@ add_llvm_component_library(LLVMDWARFLinkerParallel
intrinsics_gen
LINK_COMPONENTS
- BinaryFormat
- DebugInfoDWARF
AsmPrinter
+ BinaryFormat
CodeGen
+ DebugInfoDWARF
MC
Object
Support
-)
+ )
diff --git a/llvm/lib/DWP/CMakeLists.txt b/llvm/lib/DWP/CMakeLists.txt
index 693966772a8c6..228c0f20989c5 100644
--- a/llvm/lib/DWP/CMakeLists.txt
+++ b/llvm/lib/DWP/CMakeLists.txt
@@ -14,4 +14,4 @@ add_llvm_component_library(LLVMDWP
Object
Support
Target
-)
+ )
diff --git a/llvm/lib/LTO/CMakeLists.txt b/llvm/lib/LTO/CMakeLists.txt
index ca9ca12d28c59..6617d27d73e84 100644
--- a/llvm/lib/LTO/CMakeLists.txt
+++ b/llvm/lib/LTO/CMakeLists.txt
@@ -36,4 +36,4 @@ add_llvm_component_library(LLVMLTO
Target
TargetParser
TransformUtils
-)
+ )
diff --git a/llvm/lib/Target/AArch64/CMakeLists.txt b/llvm/lib/Target/AArch64/CMakeLists.txt
index fd3f2d5133adb..465936db571a2 100644
--- a/llvm/lib/Target/AArch64/CMakeLists.txt
+++ b/llvm/lib/Target/AArch64/CMakeLists.txt
@@ -97,8 +97,10 @@ add_llvm_target(AArch64CodeGen
AArch64Utils
Analysis
AsmPrinter
+ CFGuard
CodeGen
Core
+ GlobalISel
MC
Scalar
SelectionDAG
@@ -106,12 +108,10 @@ add_llvm_target(AArch64CodeGen
Target
TargetParser
TransformUtils
- GlobalISel
- CFGuard
ADD_TO_COMPONENT
AArch64
-)
+ )
add_subdirectory(AsmParser)
add_subdirectory(Disassembler)
diff --git a/llvm/lib/Target/AArch64/MCTargetDesc/CMakeLists.txt b/llvm/lib/Target/AArch64/MCTargetDesc/CMakeLists.txt
index 973eec4261b09..b7a770580e8b6 100644
--- a/llvm/lib/Target/AArch64/MCTargetDesc/CMakeLists.txt
+++ b/llvm/lib/Target/AArch64/MCTargetDesc/CMakeLists.txt
@@ -15,14 +15,15 @@ add_llvm_component_library(LLVMAArch64Desc
LINK_COMPONENTS
AArch64Info
AArch64Utils
- MC
BinaryFormat
+ MC
Support
TargetParser
ADD_TO_COMPONENT
AArch64
-)
+ )
+
add_dependencies(LLVMAArch64Desc AArch64CommonTableGen)
# Hack: we need to include 'main' target directory to grab private headers
diff --git a/llvm/lib/Target/AMDGPU/AsmParser/CMakeLists.txt b/llvm/lib/Target/AMDGPU/AsmParser/CMakeLists.txt
index 37896f83070bb..1b96c7571d7b7 100644
--- a/llvm/lib/Target/AMDGPU/AsmParser/CMakeLists.txt
+++ b/llvm/lib/Target/AMDGPU/AsmParser/CMakeLists.txt
@@ -2,11 +2,11 @@ add_llvm_component_library(LLVMAMDGPUAsmParser
AMDGPUAsmParser.cpp
LINK_COMPONENTS
- MC
- MCParser
AMDGPUDesc
AMDGPUInfo
AMDGPUUtils
+ MC
+ MCParser
Support
TargetParser
diff --git a/llvm/lib/Target/AMDGPU/CMakeLists.txt b/llvm/lib/Target/AMDGPU/CMakeLists.txt
index 73cbeda7a8033..e1c778d11697f 100644
--- a/llvm/lib/Target/AMDGPU/CMakeLists.txt
+++ b/llvm/lib/Target/AMDGPU/CMakeLists.txt
@@ -165,16 +165,19 @@ add_llvm_target(AMDGPUCodeGen
SIWholeQuadMode.cpp
LINK_COMPONENTS
+ AMDGPUDesc
+ AMDGPUInfo
+ AMDGPUUtils
Analysis
AsmPrinter
+ BinaryFormat
CodeGen
Core
+ GlobalISel
IPO
MC
+ MIRParser
Passes
- AMDGPUDesc
- AMDGPUInfo
- AMDGPUUtils
Scalar
SelectionDAG
Support
@@ -182,9 +185,6 @@ add_llvm_target(AMDGPUCodeGen
TargetParser
TransformUtils
Vectorize
- GlobalISel
- BinaryFormat
- MIRParser
ADD_TO_COMPONENT
AMDGPU
diff --git a/llvm/lib/Target/AMDGPU/MCA/CMakeLists.txt b/llvm/lib/Target/AMDGPU/MCA/CMakeLists.txt
index fbf44e2e92567..fcad1d4a35199 100644
--- a/llvm/lib/Target/AMDGPU/MCA/CMakeLists.txt
+++ b/llvm/lib/Target/AMDGPU/MCA/CMakeLists.txt
@@ -2,14 +2,14 @@ add_llvm_component_library(LLVMAMDGPUTargetMCA
AMDGPUCustomBehaviour.cpp
LINK_COMPONENTS
- MC
- MCParser
AMDGPUDesc
AMDGPUInfo
AMDGPUUtils
+ MC
+ MCA
+ MCParser
Support
TargetParser
- MCA
ADD_TO_COMPONENT
AMDGPU
diff --git a/llvm/lib/Target/AMDGPU/MCTargetDesc/CMakeLists.txt b/llvm/lib/Target/AMDGPU/MCTargetDesc/CMakeLists.txt
index 9926f89315aa4..7eb5008cfbfe4 100644
--- a/llvm/lib/Target/AMDGPU/MCTargetDesc/CMakeLists.txt
+++ b/llvm/lib/Target/AMDGPU/MCTargetDesc/CMakeLists.txt
@@ -13,16 +13,16 @@ add_llvm_component_library(LLVMAMDGPUDesc
SIMCCodeEmitter.cpp
LINK_COMPONENTS
- Core
- MC
AMDGPUInfo
AMDGPUUtils
- Support
BinaryFormat
+ Core
+ MC
+ Support
TargetParser
ADD_TO_COMPONENT
AMDGPU
-)
+ )
add_dependencies(LLVMAMDGPUDesc LLVMAMDGPUUtils)
diff --git a/llvm/lib/Target/AMDGPU/Utils/CMakeLists.txt b/llvm/lib/Target/AMDGPU/Utils/CMakeLists.txt
index a93c535c1f5e3..2d4a3f22e8c4f 100644
--- a/llvm/lib/Target/AMDGPU/Utils/CMakeLists.txt
+++ b/llvm/lib/Target/AMDGPU/Utils/CMakeLists.txt
@@ -7,9 +7,9 @@ add_llvm_component_library(LLVMAMDGPUUtils
LINK_COMPONENTS
Analysis
+ BinaryFormat
Core
MC
- BinaryFormat
Support
TargetParser
diff --git a/llvm/lib/Target/ARM/AsmParser/CMakeLists.txt b/llvm/lib/Target/ARM/AsmParser/CMakeLists.txt
index d85b8f6237dc8..424d8550aa09f 100644
--- a/llvm/lib/Target/ARM/AsmParser/CMakeLists.txt
+++ b/llvm/lib/Target/ARM/AsmParser/CMakeLists.txt
@@ -4,11 +4,11 @@ add_llvm_component_library(LLVMARMAsmParser
LINK_COMPONENTS
ARMDesc
ARMInfo
+ ARMUtils
MC
MCParser
Support
TargetParser
- ARMUtils
ADD_TO_COMPONENT
ARM
diff --git a/llvm/lib/Target/ARM/CMakeLists.txt b/llvm/lib/Target/ARM/CMakeLists.txt
index a0f4290cb48db..fa7a7471b7926 100644
--- a/llvm/lib/Target/ARM/CMakeLists.txt
+++ b/llvm/lib/Target/ARM/CMakeLists.txt
@@ -72,10 +72,13 @@ add_llvm_target(ARMCodeGen
LINK_COMPONENTS
ARMDesc
ARMInfo
+ ARMUtils
Analysis
AsmPrinter
+ CFGuard
CodeGen
Core
+ GlobalISel
IPO
MC
Scalar
@@ -83,10 +86,7 @@ add_llvm_target(ARMCodeGen
Support
Target
TargetParser
- GlobalISel
- ARMUtils
TransformUtils
- CFGuard
ADD_TO_COMPONENT
ARM
diff --git a/llvm/lib/Target/ARM/Disassembler/CMakeLists.txt b/llvm/lib/Target/ARM/Disassembler/CMakeLists.txt
index f02607ab53b59..5d20172bf36ab 100644
--- a/llvm/lib/Target/ARM/Disassembler/CMakeLists.txt
+++ b/llvm/lib/Target/ARM/Disassembler/CMakeLists.txt
@@ -4,10 +4,10 @@ add_llvm_component_library(LLVMARMDisassembler
LINK_COMPONENTS
ARMDesc
ARMInfo
- MCDisassembler
+ ARMUtils
MC
+ MCDisassembler
Support
- ARMUtils
ADD_TO_COMPONENT
ARM
diff --git a/llvm/lib/Target/ARM/MCTargetDesc/CMakeLists.txt b/llvm/lib/Target/ARM/MCTargetDesc/CMakeLists.txt
index 0aeb65d97ec58..d84dd962d8b5b 100644
--- a/llvm/lib/Target/ARM/MCTargetDesc/CMakeLists.txt
+++ b/llvm/lib/Target/ARM/MCTargetDesc/CMakeLists.txt
@@ -17,10 +17,10 @@ add_llvm_component_library(LLVMARMDesc
LINK_COMPONENTS
ARMInfo
ARMUtils
+ BinaryFormat
MC
MCDisassembler
Support
- BinaryFormat
TargetParser
ADD_TO_COMPONENT
diff --git a/llvm/lib/Target/AVR/AsmParser/CMakeLists.txt b/llvm/lib/Target/AVR/AsmParser/CMakeLists.txt
index 2de6ba9372e32..a72c2ad2a1745 100644
--- a/llvm/lib/Target/AVR/AsmParser/CMakeLists.txt
+++ b/llvm/lib/Target/AVR/AsmParser/CMakeLists.txt
@@ -2,12 +2,12 @@ add_llvm_component_library(LLVMAVRAsmParser
AVRAsmParser.cpp
LINK_COMPONENTS
- MC
- MCParser
AVRDesc
AVRInfo
+ MC
+ MCParser
Support
ADD_TO_COMPONENT
AVR
-)
+ )
diff --git a/llvm/lib/Target/AVR/CMakeLists.txt b/llvm/lib/Target/AVR/CMakeLists.txt
index ce8860ce2e3e4..3c87c6f499b60 100644
--- a/llvm/lib/Target/AVR/CMakeLists.txt
+++ b/llvm/lib/Target/AVR/CMakeLists.txt
@@ -32,19 +32,19 @@ add_llvm_target(AVRCodeGen
intrinsics_gen
LINK_COMPONENTS
+ AVRDesc
+ AVRInfo
AsmPrinter
CodeGen
Core
MC
- AVRDesc
- AVRInfo
SelectionDAG
Support
Target
ADD_TO_COMPONENT
AVR
-)
+ )
add_subdirectory(AsmParser)
add_subdirectory(Disassembler)
diff --git a/llvm/lib/Target/AVR/Disassembler/CMakeLists.txt b/llvm/lib/Target/AVR/Disassembler/CMakeLists.txt
index aa7b563ad85ee..37b35f317aa1c 100644
--- a/llvm/lib/Target/AVR/Disassembler/CMakeLists.txt
+++ b/llvm/lib/Target/AVR/Disassembler/CMakeLists.txt
@@ -2,12 +2,12 @@ add_llvm_component_library(LLVMAVRDisassembler
AVRDisassembler.cpp
LINK_COMPONENTS
- MCDisassembler
+ AVRInfo
MC
+ MCDisassembler
Support
- AVRInfo
ADD_TO_COMPONENT
AVR
-)
+ )
diff --git a/llvm/lib/Target/BPF/CMakeLists.txt b/llvm/lib/Target/BPF/CMakeLists.txt
index f3f8a82d6c85a..443cbb91cb684 100644
--- a/llvm/lib/Target/BPF/CMakeLists.txt
+++ b/llvm/lib/Target/BPF/CMakeLists.txt
@@ -38,12 +38,12 @@ add_llvm_target(BPFCodeGen
LINK_COMPONENTS
Analysis
AsmPrinter
- CodeGen
- Core
- MC
BPFDesc
BPFInfo
+ CodeGen
+ Core
IPO
+ MC
Scalar
SelectionDAG
Support
diff --git a/llvm/lib/Target/Hexagon/CMakeLists.txt b/llvm/lib/Target/Hexagon/CMakeLists.txt
index 0d0d4f88b56ff..e36f5be7ecc23 100644
--- a/llvm/lib/Target/Hexagon/CMakeLists.txt
+++ b/llvm/lib/Target/Hexagon/CMakeLists.txt
@@ -87,7 +87,7 @@ add_llvm_target(HexagonCodeGen
ADD_TO_COMPONENT
Hexagon
-)
+ )
add_subdirectory(AsmParser)
add_subdirectory(Disassembler)
diff --git a/llvm/lib/Target/Lanai/AsmParser/CMakeLists.txt b/llvm/lib/Target/Lanai/AsmParser/CMakeLists.txt
index 234ef9e94e926..ed5acca9bfba1 100644
--- a/llvm/lib/Target/Lanai/AsmParser/CMakeLists.txt
+++ b/llvm/lib/Target/Lanai/AsmParser/CMakeLists.txt
@@ -4,11 +4,11 @@ add_llvm_component_library(LLVMLanaiAsmParser
LanaiAsmParser.cpp
LINK_COMPONENTS
+ LanaiDesc
+ LanaiInfo
MC
MCParser
Support
- LanaiDesc
- LanaiInfo
ADD_TO_COMPONENT
Lanai
diff --git a/llvm/lib/Target/Lanai/CMakeLists.txt b/llvm/lib/Target/Lanai/CMakeLists.txt
index 88c2a10376523..8035ec84e0d02 100644
--- a/llvm/lib/Target/Lanai/CMakeLists.txt
+++ b/llvm/lib/Target/Lanai/CMakeLists.txt
@@ -47,7 +47,7 @@ add_llvm_target(LanaiCodeGen
ADD_TO_COMPONENT
Lanai
-)
+ )
add_subdirectory(AsmParser)
add_subdirectory(Disassembler)
diff --git a/llvm/lib/Target/LoongArch/CMakeLists.txt b/llvm/lib/Target/LoongArch/CMakeLists.txt
index 58709f5fe7daf..9b2f1e97cc7ec 100644
--- a/llvm/lib/Target/LoongArch/CMakeLists.txt
+++ b/llvm/lib/Target/LoongArch/CMakeLists.txt
@@ -32,9 +32,9 @@ add_llvm_target(LoongArchCodeGen
AsmPrinter
CodeGen
Core
- MC
LoongArchDesc
LoongArchInfo
+ MC
Scalar
SelectionDAG
Support
diff --git a/llvm/lib/Target/MSP430/AsmParser/CMakeLists.txt b/llvm/lib/Target/MSP430/AsmParser/CMakeLists.txt
index 7472f4553ab6e..55f2687188463 100644
--- a/llvm/lib/Target/MSP430/AsmParser/CMakeLists.txt
+++ b/llvm/lib/Target/MSP430/AsmParser/CMakeLists.txt
@@ -10,4 +10,4 @@ add_llvm_component_library(LLVMMSP430AsmParser
ADD_TO_COMPONENT
MSP430
-)
+ )
diff --git a/llvm/lib/Target/Mips/CMakeLists.txt b/llvm/lib/Target/Mips/CMakeLists.txt
index 18264d8928a1a..92da4b095b372 100644
--- a/llvm/lib/Target/Mips/CMakeLists.txt
+++ b/llvm/lib/Target/Mips/CMakeLists.txt
@@ -70,6 +70,7 @@ add_llvm_target(MipsCodeGen
AsmPrinter
CodeGen
Core
+ GlobalISel
MC
MipsDesc
MipsInfo
@@ -77,7 +78,6 @@ add_llvm_target(MipsCodeGen
Support
Target
TargetParser
- GlobalISel
ADD_TO_COMPONENT
Mips
diff --git a/llvm/lib/Target/NVPTX/CMakeLists.txt b/llvm/lib/Target/NVPTX/CMakeLists.txt
index 041e6ffb08f6f..723ab6227cc1d 100644
--- a/llvm/lib/Target/NVPTX/CMakeLists.txt
+++ b/llvm/lib/Target/NVPTX/CMakeLists.txt
@@ -61,7 +61,7 @@ add_llvm_target(NVPTXCodeGen
ADD_TO_COMPONENT
NVPTX
-)
+ )
add_subdirectory(MCTargetDesc)
add_subdirectory(TargetInfo)
diff --git a/llvm/lib/Target/PowerPC/CMakeLists.txt b/llvm/lib/Target/PowerPC/CMakeLists.txt
index ccfd1912eb8b8..dac5964c67ead 100644
--- a/llvm/lib/Target/PowerPC/CMakeLists.txt
+++ b/llvm/lib/Target/PowerPC/CMakeLists.txt
@@ -67,6 +67,7 @@ add_llvm_target(PowerPCCodeGen
BinaryFormat
CodeGen
Core
+ GlobalISel
MC
PowerPCDesc
PowerPCInfo
@@ -76,7 +77,6 @@ add_llvm_target(PowerPCCodeGen
Target
TargetParser
TransformUtils
- GlobalISel
ADD_TO_COMPONENT
PowerPC
diff --git a/llvm/lib/Target/PowerPC/MCTargetDesc/CMakeLists.txt b/llvm/lib/Target/PowerPC/MCTargetDesc/CMakeLists.txt
index 5601f6bd3d0a4..2fba5ab07d7c5 100644
--- a/llvm/lib/Target/PowerPC/MCTargetDesc/CMakeLists.txt
+++ b/llvm/lib/Target/PowerPC/MCTargetDesc/CMakeLists.txt
@@ -12,10 +12,10 @@ add_llvm_component_library(LLVMPowerPCDesc
PPCXCOFFStreamer.cpp
LINK_COMPONENTS
+ BinaryFormat
MC
PowerPCInfo
Support
- BinaryFormat
TargetParser
ADD_TO_COMPONENT
diff --git a/llvm/lib/Target/RISCV/CMakeLists.txt b/llvm/lib/Target/RISCV/CMakeLists.txt
index c834bcce3b1b4..a005a2fb57758 100644
--- a/llvm/lib/Target/RISCV/CMakeLists.txt
+++ b/llvm/lib/Target/RISCV/CMakeLists.txt
@@ -51,9 +51,10 @@ add_llvm_target(RISCVCodeGen
LINK_COMPONENTS
Analysis
AsmPrinter
+ CodeGen
Core
+ GlobalISel
IPO
- CodeGen
MC
RISCVDesc
RISCVInfo
@@ -62,7 +63,6 @@ add_llvm_target(RISCVCodeGen
Target
TargetParser
TransformUtils
- GlobalISel
ADD_TO_COMPONENT
RISCV
diff --git a/llvm/lib/Target/RISCV/MCA/CMakeLists.txt b/llvm/lib/Target/RISCV/MCA/CMakeLists.txt
index ca6b78b31d8a4..5740faaaa6028 100644
--- a/llvm/lib/Target/RISCV/MCA/CMakeLists.txt
+++ b/llvm/lib/Target/RISCV/MCA/CMakeLists.txt
@@ -3,11 +3,11 @@ add_llvm_component_library(LLVMRISCVTargetMCA
LINK_COMPONENTS
MC
+ MCA
MCParser
RISCVDesc
RISCVInfo
Support
- MCA
ADD_TO_COMPONENT
RISCV
diff --git a/llvm/lib/Target/VE/AsmParser/CMakeLists.txt b/llvm/lib/Target/VE/AsmParser/CMakeLists.txt
index 00b26b617fad2..825c75c8e942e 100644
--- a/llvm/lib/Target/VE/AsmParser/CMakeLists.txt
+++ b/llvm/lib/Target/VE/AsmParser/CMakeLists.txt
@@ -4,9 +4,9 @@ add_llvm_component_library(LLVMVEAsmParser
LINK_COMPONENTS
MC
MCParser
+ Support
VEDesc
VEInfo
- Support
ADD_TO_COMPONENT
VE
diff --git a/llvm/lib/Target/VE/CMakeLists.txt b/llvm/lib/Target/VE/CMakeLists.txt
index 29bc94714cc76..d14e1a596e480 100644
--- a/llvm/lib/Target/VE/CMakeLists.txt
+++ b/llvm/lib/Target/VE/CMakeLists.txt
@@ -35,10 +35,10 @@ add_llvm_target(VECodeGen
Core
MC
SelectionDAG
- VEDesc
- VEInfo
Support
Target
+ VEDesc
+ VEInfo
ADD_TO_COMPONENT
VE
diff --git a/llvm/lib/Target/VE/Disassembler/CMakeLists.txt b/llvm/lib/Target/VE/Disassembler/CMakeLists.txt
index 9f7df343fc838..94580e19df264 100644
--- a/llvm/lib/Target/VE/Disassembler/CMakeLists.txt
+++ b/llvm/lib/Target/VE/Disassembler/CMakeLists.txt
@@ -2,10 +2,10 @@ add_llvm_component_library(LLVMVEDisassembler
VEDisassembler.cpp
LINK_COMPONENTS
- MCDisassembler
MC
- VEInfo
+ MCDisassembler
Support
+ VEInfo
ADD_TO_COMPONENT
VE
diff --git a/llvm/lib/Target/VE/MCTargetDesc/CMakeLists.txt b/llvm/lib/Target/VE/MCTargetDesc/CMakeLists.txt
index 97b328f809534..314d8450b13cd 100644
--- a/llvm/lib/Target/VE/MCTargetDesc/CMakeLists.txt
+++ b/llvm/lib/Target/VE/MCTargetDesc/CMakeLists.txt
@@ -10,9 +10,9 @@ add_llvm_component_library(LLVMVEDesc
LINK_COMPONENTS
MC
- VEInfo
Support
TargetParser
+ VEInfo
ADD_TO_COMPONENT
VE
diff --git a/llvm/lib/Target/WebAssembly/AsmParser/CMakeLists.txt b/llvm/lib/Target/WebAssembly/AsmParser/CMakeLists.txt
index 81cb693064bb4..52a64007c717a 100644
--- a/llvm/lib/Target/WebAssembly/AsmParser/CMakeLists.txt
+++ b/llvm/lib/Target/WebAssembly/AsmParser/CMakeLists.txt
@@ -5,10 +5,10 @@ add_llvm_component_library(LLVMWebAssemblyAsmParser
LINK_COMPONENTS
MC
MCParser
- WebAssemblyDesc
- WebAssemblyInfo
Support
TargetParser
+ WebAssemblyDesc
+ WebAssemblyInfo
ADD_TO_COMPONENT
WebAssembly
diff --git a/llvm/lib/Target/WebAssembly/CMakeLists.txt b/llvm/lib/Target/WebAssembly/CMakeLists.txt
index 7f53729e2ed64..afdb00ba1653c 100644
--- a/llvm/lib/Target/WebAssembly/CMakeLists.txt
+++ b/llvm/lib/Target/WebAssembly/CMakeLists.txt
@@ -80,7 +80,7 @@ add_llvm_target(WebAssemblyCodeGen
ADD_TO_COMPONENT
WebAssembly
-)
+ )
add_subdirectory(AsmParser)
add_subdirectory(Disassembler)
diff --git a/llvm/lib/Target/WebAssembly/Disassembler/CMakeLists.txt b/llvm/lib/Target/WebAssembly/Disassembler/CMakeLists.txt
index 1782f576f3a65..c7793ae3089d2 100644
--- a/llvm/lib/Target/WebAssembly/Disassembler/CMakeLists.txt
+++ b/llvm/lib/Target/WebAssembly/Disassembler/CMakeLists.txt
@@ -2,11 +2,11 @@ add_llvm_component_library(LLVMWebAssemblyDisassembler
WebAssemblyDisassembler.cpp
LINK_COMPONENTS
- WebAssemblyDesc
+ MC
MCDisassembler
- WebAssemblyInfo
Support
- MC
+ WebAssemblyDesc
+ WebAssemblyInfo
ADD_TO_COMPONENT
WebAssembly
diff --git a/llvm/lib/Target/WebAssembly/MCTargetDesc/CMakeLists.txt b/llvm/lib/Target/WebAssembly/MCTargetDesc/CMakeLists.txt
index a6076c4245c74..1c83a1e9a7dd5 100644
--- a/llvm/lib/Target/WebAssembly/MCTargetDesc/CMakeLists.txt
+++ b/llvm/lib/Target/WebAssembly/MCTargetDesc/CMakeLists.txt
@@ -16,4 +16,4 @@ add_llvm_component_library(LLVMWebAssemblyDesc
ADD_TO_COMPONENT
WebAssembly
-)
+ )
diff --git a/llvm/lib/Target/X86/CMakeLists.txt b/llvm/lib/Target/X86/CMakeLists.txt
index 4296ab1a6b33e..7c167ad280657 100644
--- a/llvm/lib/Target/X86/CMakeLists.txt
+++ b/llvm/lib/Target/X86/CMakeLists.txt
@@ -93,10 +93,13 @@ add_llvm_target(X86CodeGen ${sources}
LINK_COMPONENTS
Analysis
AsmPrinter
+ CFGuard
CodeGen
Core
+ GlobalISel
Instrumentation
MC
+ ProfileData
SelectionDAG
Support
Target
@@ -104,13 +107,10 @@ add_llvm_target(X86CodeGen ${sources}
TransformUtils
X86Desc
X86Info
- GlobalISel
- ProfileData
- CFGuard
ADD_TO_COMPONENT
X86
-)
+ )
add_subdirectory(AsmParser)
add_subdirectory(Disassembler)
diff --git a/llvm/lib/Target/X86/MCA/CMakeLists.txt b/llvm/lib/Target/X86/MCA/CMakeLists.txt
index 7a97023830c12..d03dabb1f27ad 100644
--- a/llvm/lib/Target/X86/MCA/CMakeLists.txt
+++ b/llvm/lib/Target/X86/MCA/CMakeLists.txt
@@ -3,12 +3,12 @@ add_llvm_component_library(LLVMX86TargetMCA
LINK_COMPONENTS
MC
+ MCA
MCParser
- X86Desc
- X86Info
Support
TargetParser
- MCA
+ X86Desc
+ X86Info
ADD_TO_COMPONENT
X86
diff --git a/llvm/lib/Target/X86/MCTargetDesc/CMakeLists.txt b/llvm/lib/Target/X86/MCTargetDesc/CMakeLists.txt
index ef6a02ee32e94..d021ff68371f4 100644
--- a/llvm/lib/Target/X86/MCTargetDesc/CMakeLists.txt
+++ b/llvm/lib/Target/X86/MCTargetDesc/CMakeLists.txt
@@ -17,12 +17,12 @@ add_llvm_component_library(LLVMX86Desc
X86WinCOFFTargetStreamer.cpp
LINK_COMPONENTS
+ BinaryFormat
MC
MCDisassembler
Support
TargetParser
X86Info
- BinaryFormat
ADD_TO_COMPONENT
X86
diff --git a/llvm/lib/Target/XCore/Disassembler/CMakeLists.txt b/llvm/lib/Target/XCore/Disassembler/CMakeLists.txt
index 52da6cc1fcd7f..d35ff535e068f 100644
--- a/llvm/lib/Target/XCore/Disassembler/CMakeLists.txt
+++ b/llvm/lib/Target/XCore/Disassembler/CMakeLists.txt
@@ -2,8 +2,8 @@ add_llvm_component_library(LLVMXCoreDisassembler
XCoreDisassembler.cpp
LINK_COMPONENTS
- MCDisassembler
MC
+ MCDisassembler
Support
XCoreInfo
diff --git a/llvm/tools/dsymutil/CMakeLists.txt b/llvm/tools/dsymutil/CMakeLists.txt
index 37290d962454f..9470e73453b9b 100644
--- a/llvm/tools/dsymutil/CMakeLists.txt
+++ b/llvm/tools/dsymutil/CMakeLists.txt
@@ -7,12 +7,12 @@ set(LLVM_LINK_COMPONENTS
AllTargetsDescs
AllTargetsInfos
AsmPrinter
- DebugInfoDWARF
+ CodeGen
DWARFLinker
DWARFLinkerParallel
+ DebugInfoDWARF
MC
Object
- CodeGen
Option
Remarks
Support
diff --git a/llvm/tools/llvm-debuginfo-analyzer/CMakeLists.txt b/llvm/tools/llvm-debuginfo-analyzer/CMakeLists.txt
index b36f5d7aa2f37..18273170da60a 100644
--- a/llvm/tools/llvm-debuginfo-analyzer/CMakeLists.txt
+++ b/llvm/tools/llvm-debuginfo-analyzer/CMakeLists.txt
@@ -1,11 +1,11 @@
set(LLVM_LINK_COMPONENTS
AllTargetsDescs
- AllTargetsInfos
AllTargetsDisassemblers
+ AllTargetsInfos
BinaryFormat
- DebugInfoLogicalView
DebugInfoCodeView
DebugInfoDWARF
+ DebugInfoLogicalView
DebugInfoPDB
MC
MCDisassembler
diff --git a/llvm/tools/llvm-dwarfutil/CMakeLists.txt b/llvm/tools/llvm-dwarfutil/CMakeLists.txt
index 42102505c91ca..9374ae0194b18 100644
--- a/llvm/tools/llvm-dwarfutil/CMakeLists.txt
+++ b/llvm/tools/llvm-dwarfutil/CMakeLists.txt
@@ -3,9 +3,12 @@ tablegen(LLVM Options.inc -gen-opt-parser-defs)
add_public_tablegen_target(DwarfutilTableGen)
set(LLVM_LINK_COMPONENTS
- DebugInfoDWARF
+ AllTargetsCodeGens
+ AllTargetsDescs
+ AllTargetsInfos
DWARFLinker
DWARFLinkerParallel
+ DebugInfoDWARF
MC
ObjCopy
Object
@@ -13,9 +16,6 @@ set(LLVM_LINK_COMPONENTS
Support
Target
TargetParser
- AllTargetsCodeGens
- AllTargetsDescs
- AllTargetsInfos
)
add_llvm_tool(llvm-dwarfutil
diff --git a/llvm/tools/llvm-exegesis/lib/AArch64/CMakeLists.txt b/llvm/tools/llvm-exegesis/lib/AArch64/CMakeLists.txt
index 554eabdc16244..2dc948d507253 100644
--- a/llvm/tools/llvm-exegesis/lib/AArch64/CMakeLists.txt
+++ b/llvm/tools/llvm-exegesis/lib/AArch64/CMakeLists.txt
@@ -5,10 +5,10 @@ include_directories(
set(LLVM_LINK_COMPONENTS
AArch64
- Exegesis
Core
- Support
+ Exegesis
MC
+ Support
)
add_llvm_library(LLVMExegesisAArch64
diff --git a/llvm/tools/llvm-exegesis/lib/Mips/CMakeLists.txt b/llvm/tools/llvm-exegesis/lib/Mips/CMakeLists.txt
index 99d7034f1a538..4661c21a6c861 100644
--- a/llvm/tools/llvm-exegesis/lib/Mips/CMakeLists.txt
+++ b/llvm/tools/llvm-exegesis/lib/Mips/CMakeLists.txt
@@ -4,12 +4,12 @@ include_directories(
)
set(LLVM_LINK_COMPONENTS
- Mips
- Exegesis
Core
+ Exegesis
+ MC
+ Mips
Support
TargetParser
- MC
)
add_llvm_library(LLVMExegesisMips
diff --git a/llvm/tools/llvm-exegesis/lib/PowerPC/CMakeLists.txt b/llvm/tools/llvm-exegesis/lib/PowerPC/CMakeLists.txt
index 9483844d4cff5..2766f76719654 100644
--- a/llvm/tools/llvm-exegesis/lib/PowerPC/CMakeLists.txt
+++ b/llvm/tools/llvm-exegesis/lib/PowerPC/CMakeLists.txt
@@ -4,12 +4,12 @@ include_directories(
)
set(LLVM_LINK_COMPONENTS
- PowerPC
- Exegesis
Core
+ Exegesis
+ MC
+ PowerPC
Support
TargetParser
- MC
)
add_llvm_library(LLVMExegesisPowerPC
diff --git a/llvm/tools/llvm-exegesis/lib/X86/CMakeLists.txt b/llvm/tools/llvm-exegesis/lib/X86/CMakeLists.txt
index 1e7410975641e..1d59a67722714 100644
--- a/llvm/tools/llvm-exegesis/lib/X86/CMakeLists.txt
+++ b/llvm/tools/llvm-exegesis/lib/X86/CMakeLists.txt
@@ -4,13 +4,13 @@ include_directories(
)
set(LLVM_LINK_COMPONENTS
- X86
- Exegesis
+ CodeGen
Core
+ Exegesis
+ MC
Support
TargetParser
- CodeGen
- MC
+ X86
)
add_llvm_library(LLVMExegesisX86
diff --git a/llvm/tools/llvm-gsymutil/CMakeLists.txt b/llvm/tools/llvm-gsymutil/CMakeLists.txt
index 56240057636c3..4bbbffa50c116 100644
--- a/llvm/tools/llvm-gsymutil/CMakeLists.txt
+++ b/llvm/tools/llvm-gsymutil/CMakeLists.txt
@@ -11,5 +11,4 @@ set(LLVM_LINK_COMPONENTS
add_llvm_tool(llvm-gsymutil
llvm-gsymutil.cpp
-
)
diff --git a/llvm/tools/llvm-ifs/CMakeLists.txt b/llvm/tools/llvm-ifs/CMakeLists.txt
index 23bc1ec26f116..fe89646573024 100644
--- a/llvm/tools/llvm-ifs/CMakeLists.txt
+++ b/llvm/tools/llvm-ifs/CMakeLists.txt
@@ -2,11 +2,11 @@ set(LLVM_LINK_COMPONENTS
BinaryFormat
InterfaceStub
Object
+ ObjectYAML
+ Option
Support
TargetParser
TextAPI
- ObjectYAML
- Option
)
set(LLVM_TARGET_DEFINITIONS Opts.td)
diff --git a/llvm/tools/llvm-modextract/CMakeLists.txt b/llvm/tools/llvm-modextract/CMakeLists.txt
index 8484b3b0fb73a..d310df973b41c 100644
--- a/llvm/tools/llvm-modextract/CMakeLists.txt
+++ b/llvm/tools/llvm-modextract/CMakeLists.txt
@@ -1,8 +1,8 @@
set(LLVM_LINK_COMPONENTS
- IRReader
BitReader
BitWriter
Core
+ IRReader
Support
)
diff --git a/llvm/tools/llvm-opt-fuzzer/CMakeLists.txt b/llvm/tools/llvm-opt-fuzzer/CMakeLists.txt
index 906de66d86df9..ed75c33a2c3ed 100644
--- a/llvm/tools/llvm-opt-fuzzer/CMakeLists.txt
+++ b/llvm/tools/llvm-opt-fuzzer/CMakeLists.txt
@@ -1,4 +1,5 @@
set(LLVM_LINK_COMPONENTS
+ AggressiveInstCombine
AllTargetsAsmParsers
AllTargetsCodeGens
AllTargetsDescs
@@ -9,23 +10,22 @@ set(LLVM_LINK_COMPONENTS
CodeGen
Core
Coroutines
+ FuzzMutate
+ FuzzerCLI
IPO
IRReader
- AggressiveInstCombine
InstCombine
Instrumentation
- FuzzerCLI
- FuzzMutate
MC
ObjCARCOpts
+ Passes
ScalarOpts
Support
Target
TargetParser
TransformUtils
Vectorize
- Passes
-)
+ )
add_llvm_fuzzer(llvm-opt-fuzzer
llvm-opt-fuzzer.cpp
diff --git a/llvm/tools/llvm-opt-report/CMakeLists.txt b/llvm/tools/llvm-opt-report/CMakeLists.txt
index 71257c2044d23..130d309edb44e 100644
--- a/llvm/tools/llvm-opt-report/CMakeLists.txt
+++ b/llvm/tools/llvm-opt-report/CMakeLists.txt
@@ -1,4 +1,10 @@
-set(LLVM_LINK_COMPONENTS Core Demangle Object Remarks Support)
+set(LLVM_LINK_COMPONENTS
+ Core
+ Demangle
+ Object
+ Remarks
+ Support
+ )
add_llvm_tool(llvm-opt-report
OptReport.cpp
diff --git a/llvm/tools/llvm-profdata/CMakeLists.txt b/llvm/tools/llvm-profdata/CMakeLists.txt
index 0cf36d183584f..38bf048e4dc8f 100644
--- a/llvm/tools/llvm-profdata/CMakeLists.txt
+++ b/llvm/tools/llvm-profdata/CMakeLists.txt
@@ -1,8 +1,8 @@
set(LLVM_LINK_COMPONENTS
Core
- ProfileData
- Object
DebugInfoDWARF
+ Object
+ ProfileData
Support
)
diff --git a/llvm/tools/llvm-readobj/CMakeLists.txt b/llvm/tools/llvm-readobj/CMakeLists.txt
index e31e7a0adb24f..cfbdc179ef1c9 100644
--- a/llvm/tools/llvm-readobj/CMakeLists.txt
+++ b/llvm/tools/llvm-readobj/CMakeLists.txt
@@ -1,15 +1,14 @@
set(LLVM_LINK_COMPONENTS
+ BinaryFormat
DebugInfoCodeView
DebugInfoDWARF
+ DebugInfoMSF
+ DebugInfoPDB
Demangle
Object
- BinaryFormat
Option
Support
TargetParser
- DebugInfoCodeView
- DebugInfoMSF
- DebugInfoPDB
)
set(LLVM_TARGET_DEFINITIONS Opts.td)
diff --git a/llvm/tools/llvm-reduce/CMakeLists.txt b/llvm/tools/llvm-reduce/CMakeLists.txt
index b1e8fecca5060..810fa55df9c5d 100644
--- a/llvm/tools/llvm-reduce/CMakeLists.txt
+++ b/llvm/tools/llvm-reduce/CMakeLists.txt
@@ -8,6 +8,7 @@ set(LLVM_LINK_COMPONENTS
BitWriter
CodeGen
Core
+ IPO
IRReader
MC
MIRParser
@@ -16,7 +17,6 @@ set(LLVM_LINK_COMPONENTS
Target
TargetParser
TransformUtils
- IPO
)
add_llvm_tool(llvm-reduce
diff --git a/llvm/tools/llvm-remark-size-
diff /CMakeLists.txt b/llvm/tools/llvm-remark-size-
diff /CMakeLists.txt
index c963c1f919b57..4391867db9f6a 100644
--- a/llvm/tools/llvm-remark-size-
diff /CMakeLists.txt
+++ b/llvm/tools/llvm-remark-size-
diff /CMakeLists.txt
@@ -1,5 +1,11 @@
-set(LLVM_LINK_COMPONENTS Core Demangle Object Remarks Support)
+set(LLVM_LINK_COMPONENTS
+ Core
+ Demangle
+ Object
+ Remarks
+ Support
+ )
add_llvm_tool(llvm-remark-size-
diff
RemarkSizeDiff.cpp
-)
+ )
diff --git a/llvm/tools/llvm-remarkutil/CMakeLists.txt b/llvm/tools/llvm-remarkutil/CMakeLists.txt
index 2def6b8fc0bdb..f33e7bc3847de 100644
--- a/llvm/tools/llvm-remarkutil/CMakeLists.txt
+++ b/llvm/tools/llvm-remarkutil/CMakeLists.txt
@@ -1,5 +1,11 @@
-set(LLVM_LINK_COMPONENTS Core Demangle Object Remarks Support)
+set(LLVM_LINK_COMPONENTS
+ Core
+ Demangle
+ Object
+ Remarks
+ Support
+ )
add_llvm_tool(llvm-remarkutil
RemarkUtil.cpp
-)
+ )
diff --git a/llvm/tools/sancov/CMakeLists.txt b/llvm/tools/sancov/CMakeLists.txt
index e273195084bd9..bda2faa6ac658 100644
--- a/llvm/tools/sancov/CMakeLists.txt
+++ b/llvm/tools/sancov/CMakeLists.txt
@@ -8,8 +8,8 @@ set(LLVM_LINK_COMPONENTS
MCDisassembler
Object
Support
- TargetParser
Symbolize
+ TargetParser
)
add_llvm_tool(sancov
diff --git a/llvm/unittests/DWARFLinkerParallel/CMakeLists.txt b/llvm/unittests/DWARFLinkerParallel/CMakeLists.txt
index 9f27c03fe46f7..e06806103b313 100644
--- a/llvm/unittests/DWARFLinkerParallel/CMakeLists.txt
+++ b/llvm/unittests/DWARFLinkerParallel/CMakeLists.txt
@@ -1,6 +1,6 @@
set(LLVM_LINK_COMPONENTS
- Support
DWARFLinkerParallel
+ Support
)
add_llvm_unittest(DWARFLinkerParallelTests
diff --git a/llvm/unittests/Frontend/CMakeLists.txt b/llvm/unittests/Frontend/CMakeLists.txt
index 7650c720ea134..c6f60142d6276 100644
--- a/llvm/unittests/Frontend/CMakeLists.txt
+++ b/llvm/unittests/Frontend/CMakeLists.txt
@@ -1,10 +1,10 @@
set(LLVM_LINK_COMPONENTS
Analysis
Core
- FrontendOpenMP
FrontendOpenACC
- Support
+ FrontendOpenMP
Passes
+ Support
TargetParser
TransformUtils
)
diff --git a/llvm/unittests/Target/AArch64/CMakeLists.txt b/llvm/unittests/Target/AArch64/CMakeLists.txt
index cdb307baa1491..4a719aa37c4d1 100644
--- a/llvm/unittests/Target/AArch64/CMakeLists.txt
+++ b/llvm/unittests/Target/AArch64/CMakeLists.txt
@@ -5,9 +5,9 @@ include_directories(
set(LLVM_LINK_COMPONENTS
AArch64CodeGen
- AArch64Utils
AArch64Desc
AArch64Info
+ AArch64Utils
AsmParser
CodeGen
Core
diff --git a/llvm/unittests/Target/ARM/CMakeLists.txt b/llvm/unittests/Target/ARM/CMakeLists.txt
index cd52263c7d1ba..7167b70536094 100644
--- a/llvm/unittests/Target/ARM/CMakeLists.txt
+++ b/llvm/unittests/Target/ARM/CMakeLists.txt
@@ -16,7 +16,7 @@ set(LLVM_LINK_COMPONENTS
Support
Target
TargetParser
-)
+ )
add_llvm_target_unittest(ARMTests
MachineInstrTest.cpp
diff --git a/llvm/unittests/Target/LoongArch/CMakeLists.txt b/llvm/unittests/Target/LoongArch/CMakeLists.txt
index 91dc838761f67..44d695f9caba8 100644
--- a/llvm/unittests/Target/LoongArch/CMakeLists.txt
+++ b/llvm/unittests/Target/LoongArch/CMakeLists.txt
@@ -4,11 +4,11 @@ include_directories(
)
set(LLVM_LINK_COMPONENTS
+ CodeGen
+ Core
LoongArchCodeGen
LoongArchDesc
LoongArchInfo
- CodeGen
- Core
MC
MIRParser
SelectionDAG
diff --git a/llvm/unittests/Target/X86/CMakeLists.txt b/llvm/unittests/Target/X86/CMakeLists.txt
index db597730f8e4c..ff39b0739a6e5 100644
--- a/llvm/unittests/Target/X86/CMakeLists.txt
+++ b/llvm/unittests/Target/X86/CMakeLists.txt
@@ -8,10 +8,10 @@ set(LLVM_LINK_COMPONENTS
AsmParser
CodeGen
Core
- Passes
InstCombine
MC
MIRParser
+ Passes
Support
Target
TargetParser
diff --git a/llvm/unittests/TextAPI/CMakeLists.txt b/llvm/unittests/TextAPI/CMakeLists.txt
index 2cb5be6feb1ec..aeda32da5ca24 100644
--- a/llvm/unittests/TextAPI/CMakeLists.txt
+++ b/llvm/unittests/TextAPI/CMakeLists.txt
@@ -1,6 +1,6 @@
set(LLVM_LINK_COMPONENTS
TextAPI
-)
+ )
add_llvm_unittest(TextAPITests
TextStubV1Tests.cpp
@@ -8,6 +8,6 @@ add_llvm_unittest(TextAPITests
TextStubV3Tests.cpp
TextStubV4Tests.cpp
TextStubV5Tests.cpp
-)
+ )
target_link_libraries(TextAPITests PRIVATE LLVMTestingSupport)
More information about the llvm-commits
mailing list