diff --git a/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel b/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel --- a/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel +++ b/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel @@ -3263,6 +3263,7 @@ ":MemRefToLLVM", ":MemRefToSPIRV", ":NVGPUToNVVM", + ":NVVMToLLVM", ":OpenACCToLLVM", ":OpenACCToSCF", ":OpenMPToLLVM", @@ -5268,6 +5269,20 @@ ], "include/mlir/Dialect/LLVMIR/NVVMOpsAttributes.cpp.inc", ), + ( + [ + "-gen-op-interface-decls", + "-attrdefs-dialect=nvvm", + ], + "include/mlir/Dialect/LLVMIR/NVVMOpsInterface.h.inc", + ), + ( + [ + "-gen-op-interface-defs", + "-attrdefs-dialect=nvvm", + ], + "include/mlir/Dialect/LLVMIR/NVVMOpsInterface.cpp.inc", + ), ], tblgen = ":mlir-tblgen", td_file = "include/mlir/Dialect/LLVMIR/NVVMOps.td", @@ -5288,6 +5303,27 @@ deps = [":NVVMOpsTdFiles"], ) +cc_library( + name = "NVVMToLLVM", + srcs = glob(["lib/Conversion/NVVMToLLVM/NVVMToLLVM.cpp"]), + hdrs = glob(["include/mlir/Conversion/NVVMToLLVM/*.h"]), + includes = ["include"], + deps = [ + ":ConversionPassIncGen", + ":FuncDialect", + ":GPUDialect", + ":IR", + ":LLVMCommonConversion", + ":LLVMDialect", + ":MemRefDialect", + ":NVVMDialect", + ":NVVMOpsIncGen", + ":Pass", + ":Support", + "//llvm:Support", + ], +) + cc_library( name = "ROCDLDialect", srcs = ["lib/Dialect/LLVMIR/IR/ROCDLDialect.cpp"],