Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing CMake link-time dependencies. #1654

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions lib/Analysis/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,7 @@ add_mlir_library(TritonAnalysis

LINK_LIBS PUBLIC
MLIRAnalysis
MLIRLLVMDialect
TritonIR
TritonGPUIR
)
1 change: 1 addition & 0 deletions lib/Conversion/TritonToTritonGPU/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ add_mlir_conversion_library(TritonToTritonGPU
LINK_LIBS PUBLIC
MLIRIR
MLIRPass
MLIRTransforms
TritonIR
TritonGPUIR
TritonGPUTransforms
Expand Down
1 change: 1 addition & 0 deletions lib/Dialect/Triton/IR/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@ add_mlir_dialect_library(TritonIR
LINK_LIBS PUBLIC
MLIRIR
MLIRArithDialect
MLIRMathDialect
MLIRSCFDialect
)
5 changes: 5 additions & 0 deletions lib/Dialect/Triton/Transforms/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,9 @@ add_mlir_dialect_library(TritonTransforms
DEPENDS
TritonTransformsIncGen
TritonCombineIncGen

LINK_LIBS PUBLIC
MLIRPass
MLIRTransformUtils
TritonIR
)
1 change: 1 addition & 0 deletions lib/Dialect/TritonGPU/IR/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ add_mlir_dialect_library(TritonGPUIR
TritonGPUAttrDefsIncGen

LINK_LIBS PUBLIC
MLIRGPUOps
TritonIR
)
4 changes: 3 additions & 1 deletion lib/Dialect/TritonGPU/Transforms/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ add_mlir_dialect_library(TritonGPUTransforms
TritonGPUTransformsIncGen

LINK_LIBS PUBLIC
MLIRTransforms
MLIRTransformUtils
TritonAnalysis
TritonIR
TritonGPUIR
MLIRTransformUtils
)
9 changes: 9 additions & 0 deletions lib/Target/LLVMIR/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,17 @@ add_mlir_translation_library(TritonLLVMIR
Core

LINK_LIBS PUBLIC
MLIRArithToLLVM
MLIRBuiltinToLLVMIRTranslation
MLIRExecutionEngineUtils
MLIRIndexToLLVM
MLIRIR
MLIRLLVMDialect
MLIRLLVMToLLVMIRTranslation
MLIRNVVMToLLVMIRTranslation
MLIRROCDLToLLVMIRTranslation
MLIRSCFToControlFlow
MLIRSupport
MLIRTargetLLVMIRExport
TritonGPUToLLVM
)
1 change: 1 addition & 0 deletions test/lib/Analysis/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ add_mlir_library(TritonTestAnalysis
TestMembar.cpp

LINK_LIBS PUBLIC
MLIRPass
TritonAnalysis
${dialect_libs}
)
5 changes: 4 additions & 1 deletion unittest/Analysis/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
add_triton_ut(
NAME TestTritonAnalysis
SRCS UtilityTest.cpp
LIBS TritonAnalysis
LIBS
TritonAnalysis
TritonIR
TritonGPUIR
)