Skip to content

Commit 61c6543

Browse files
authored
[SYCL][Native CPU] Add missing components. (#20068)
In the default configuration, effectively components would be linked in implicitly, but with --shared-libs, that is not the case and we need to make sure to list all components we use. Fixes #20061
1 parent 9eaa344 commit 61c6543

File tree

3 files changed

+19
-12
lines changed

3 files changed

+19
-12
lines changed

llvm/lib/SYCLNativeCPUUtils/CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,17 @@ add_llvm_component_library(LLVMSYCLNativeCPUUtils
2121
${LLVM_MAIN_INCLUDE_DIR}/llvm/SYCLLowerIR
2222

2323
LINK_COMPONENTS
24+
AggressiveInstCombine
2425
Analysis
2526
Core
26-
Support
27+
IPO
2728
Passes
29+
ScalarOpts
30+
Support
2831
SYCLLowerIR
2932
Target
3033
TargetParser
3134
TransformUtils
32-
ipo
3335
${OCK_LIBS}
3436
)
3537

llvm/lib/SYCLNativeCPUUtils/compiler_passes/compiler_pipeline/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,11 @@ add_llvm_component_library(LLVMNativeCPUPipeline
2121
${CMAKE_CURRENT_SOURCE_DIR}/source/work_item_loops_pass.cpp
2222

2323
LINK_COMPONENTS
24-
Passes
24+
Analysis
2525
Core
26+
Passes
27+
Support
28+
TransformUtils
2629
)
2730

2831
# TODO: Move to under LLVM include and work out why ADDITIONAL_HEADER_DIRS

llvm/lib/SYCLNativeCPUUtils/compiler_passes/vecz/CMakeLists.txt

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -106,16 +106,18 @@ endif()
106106
add_llvm_component_library(LLVMNativeCPUVecz
107107
${COMMON_SRCS}
108108
LINK_COMPONENTS
109+
AggressiveInstCombine
110+
Analysis
111+
Core
112+
InstCombine
113+
IPO
109114
NativeCPUPipeline
110-
support
111-
core
112-
analysis
113-
instcombine
114-
aggressiveinstcombine
115-
transformutils
116-
scalaropts
117-
ipo
118-
passes
115+
Passes
116+
ScalarOpts
117+
Support
118+
Target
119+
TargetParser
120+
TransformUtils
119121
)
120122

121123
target_include_directories(LLVMNativeCPUVecz

0 commit comments

Comments
 (0)