Skip to content

Commit

Permalink
Fix missing CMake deps for THLO
Browse files Browse the repository at this point in the history
Fixes the immediate problem behind #45 using patches by Stella.

This CL doesn't aim to address the layering part of the issue, e.g. MHLO passes depending on the THLO dialect. For now, it just fixed the blocker on the IREE side where a symbol in a shared library (the THLO type descriptor) is failing to resolve at runtime.

PiperOrigin-RevId: 467966552
  • Loading branch information
Eugene Burmako authored and TensorFlow MLIR Team committed Aug 16, 2022
1 parent 282ffc2 commit 3771b40
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/CAPI/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ add_mlir_public_c_api_library(MLIRHLOCAPIDialects
LINK_LIBS PUBLIC
ChloDialect
MhloDialect
THLODialect
# For AllMhLoPasses:
ChloPasses
MhloPasses
Expand Down
1 change: 1 addition & 0 deletions lib/Dialect/mhlo/transforms/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ add_mlir_library(MhloPasses
MLIRMhloUtils
MLIRPass
MLIRTransformUtils
THLODialect
)

add_mlir_library(MhloToLhloConversion
Expand Down
1 change: 1 addition & 0 deletions lib/Dialect/thlo/IR/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ add_mlir_dialect_library(THLODialect
MLIRGmlStFusionInterfaceIncGen

LINK_LIBS PUBLIC
GmlStDialect
MLIRIR
MLIRMemRefDialect
MLIRSideEffectInterfaces
Expand Down

0 comments on commit 3771b40

Please sign in to comment.