diff --git a/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel b/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel index b5be59051cdfa..b9ee2e4436fc5 100644 --- a/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel +++ b/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel @@ -5167,6 +5167,7 @@ cc_library( ":FuncDialect", ":FunctionInterfaces", ":GPUDialect", + ":GPUUtils", ":IR", ":LinalgDialect", ":MemRefDialect", @@ -5795,6 +5796,7 @@ cc_library( ":ExecutionEngineUtils", ":FuncDialect", ":GPUDialect", + ":GPUUtils", ":GPUPassIncGen", ":GPUToLLVMIRTranslation", ":IR", @@ -5829,6 +5831,26 @@ cc_library( ]), ) +cc_library( + name = "GPUUtils", + srcs = glob( + [ + "lib/Dialect/GPU/Utils/*.cpp", + ], + ), + hdrs = glob(["include/mlir/Dialect/GPU/Utils/*.h"]), + includes = ["include"], + deps = [ + ":AffineDialect", + ":ArithDialect", + ":GPUDialect", + ":IR", + ":Support", + ":VectorDialect", + "//llvm:Support", + ], +) + td_library( name = "GPUTransformOpsTdFiles", srcs = [ @@ -6188,6 +6210,7 @@ cc_library( ":FuncToLLVM", ":GPUCommonTransforms", ":GPUDialect", + ":GPUUtils", ":GPUTransforms", ":IR", ":LLVMCommonConversion",