From: Oleg Shyshkov Date: Wed, 19 Jul 2023 09:10:53 +0000 (+0200) Subject: [mlir][bazel] Fix build. X-Git-Tag: upstream/17.0.6~1192 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c425cfa98ec9ec0df4f5d21882f6d16674e115a9;p=platform%2Fupstream%2Fllvm.git [mlir][bazel] Fix build. --- diff --git a/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel b/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel index c252efc..e6b24a1 100644 --- a/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel +++ b/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel @@ -9023,6 +9023,7 @@ td_library( srcs = [ "include/mlir/Dialect/Linalg/IR/LinalgBase.td", "include/mlir/Dialect/Linalg/IR/LinalgEnums.td", + "include/mlir/Dialect/Linalg/IR/LinalgInterfaces.td", "include/mlir/Dialect/Linalg/IR/LinalgOps.td", ], includes = ["include"], diff --git a/utils/bazel/llvm-project-overlay/mlir/test/BUILD.bazel b/utils/bazel/llvm-project-overlay/mlir/test/BUILD.bazel index ac811b2..7a2e1c9 100644 --- a/utils/bazel/llvm-project-overlay/mlir/test/BUILD.bazel +++ b/utils/bazel/llvm-project-overlay/mlir/test/BUILD.bazel @@ -3,6 +3,7 @@ # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception load("@bazel_skylib//rules:expand_template.bzl", "expand_template") +load("//mlir:build_defs.bzl", "if_cuda_available") load("//mlir:tblgen.bzl", "gentbl_cc_library", "td_library") load("//llvm:lit_test.bzl", "package_path") @@ -593,7 +594,9 @@ cc_library( cc_library( name = "TestGPU", srcs = glob(["lib/Dialect/GPU/*.cpp"]), - defines = ["MLIR_CUDA_CONVERSIONS_ENABLED"], + defines = ["MLIR_CUDA_CONVERSIONS_ENABLED"] + if_cuda_available([ + "MLIR_GPU_TO_CUBIN_PASS_ENABLE", + ]), includes = ["lib/Dialect/Test"], deps = [ "//llvm:NVPTXCodeGen",