Skip to content

Commit

Permalink
[SYCL] Make sure [AMDGPU|NVPTX]CodeGen links in lower SYCL IR passes (#…
Browse files Browse the repository at this point in the history
…5357)

Fixes undefined references to llvm::initializeLocalAccessorToSharedMemoryPass when creating shared libraries for AMDGPU and NVPTX codegen.
  • Loading branch information
jchlanda authored Jan 21, 2022
1 parent 1f8bcbb commit 02b7301
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions llvm/lib/Target/AMDGPU/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ add_llvm_target(AMDGPUCodeGen
GlobalISel
BinaryFormat
MIRParser
SYCLLowerIR

ADD_TO_COMPONENT
AMDGPU
Expand Down
1 change: 1 addition & 0 deletions llvm/lib/Target/NVPTX/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ add_llvm_target(NVPTXCodeGen
TransformUtils
Vectorize
Passes
SYCLLowerIR

ADD_TO_COMPONENT
NVPTX
Expand Down

0 comments on commit 02b7301

Please sign in to comment.