diff --git a/utils/bazel/llvm-project-overlay/mlir/test/BUILD.bazel b/utils/bazel/llvm-project-overlay/mlir/test/BUILD.bazel index fe0f44f1f792..bb5ff745076e 100644 --- a/utils/bazel/llvm-project-overlay/mlir/test/BUILD.bazel +++ b/utils/bazel/llvm-project-overlay/mlir/test/BUILD.bazel @@ -459,17 +459,42 @@ cc_library( ], ) +gentbl_cc_library( + name = "TestTilingInterfaceTransformOpsIncGen", + includes = ["lib/Interfaces/TilingInterface"], + strip_include_prefix = "lib", + tbl_outs = [ + ( + ["-gen-op-decls"], + "lib/Interfaces/TilingInterface/TestTilingInterfaceTransformOps.h.inc", + ), + ( + ["-gen-op-defs"], + "lib/Interfaces/TilingInterface/TestTilingInterfaceTransformOps.cpp.inc", + ), + ], + tblgen = "//mlir:mlir-tblgen", + td_file = "lib/Interfaces/TilingInterface/TestTilingInterfaceTransformOps.td", + deps = [ + "//mlir:SCFTdFiles", + "//mlir:TransformDialectTdFiles", + ], +) + cc_library( name = "TestTilingInterface", srcs = glob(["lib/Interfaces/TilingInterface/*.cpp"]), - includes = ["lib/Dialect/Test"], + includes = ["lib/Interfaces/TilingInterface"], deps = [ + ":TestTilingInterfaceTransformOpsIncGen", "//llvm:Support", "//mlir:AffineDialect", "//mlir:ArithDialect", + "//mlir:DialectUtils", "//mlir:FuncDialect", "//mlir:GPUDialect", "//mlir:IR", + "//mlir:IndexDialect", "//mlir:LinalgDialect", "//mlir:LinalgTransforms", "//mlir:MemRefDialect", @@ -479,6 +504,7 @@ cc_library( "//mlir:TensorDialect", "//mlir:TensorTilingInterfaceImpl", "//mlir:TilingInterface", + "//mlir:TransformDialect", "//mlir:Transforms", ], )