Skip to content

Commit 6676f67

Browse files
committed
[mlir][Bazel] Remove stub target which is not needed anymore.
1 parent 6757913 commit 6676f67

File tree

1 file changed

+0
-40
lines changed

1 file changed

+0
-40
lines changed

utils/bazel/llvm-project-overlay/mlir/BUILD.bazel

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -5540,7 +5540,6 @@ cc_library(
55405540
":SCFDialect",
55415541
":SPIRVDialect",
55425542
":SPIRVTarget",
5543-
":SerializeToCubin_stub",
55445543
":SideEffectInterfaces",
55455544
":Support",
55465545
":ToLLVMIRTranslation",
@@ -5579,44 +5578,6 @@ cc_library(
55795578
]),
55805579
)
55815580

5582-
write_file(
5583-
name = "SerializeToCubin_stub_cc",
5584-
out = "SerializeToCubin_stub.cc",
5585-
content = [
5586-
"""
5587-
#include "mlir/Dialect/GPU/Transforms/Passes.h"
5588-
5589-
// Provide a weak registration stub in case the real SerializeToCubin is not
5590-
// linked in.
5591-
5592-
#if defined(_MSC_VER)
5593-
// This might not work correctly, but it avoids a compilation error because
5594-
// MSVC does not support __attribute__((weak)).
5595-
void mlir::registerGpuSerializeToCubinPass() {}
5596-
#else
5597-
__attribute__((weak)) void mlir::registerGpuSerializeToCubinPass() {}
5598-
#endif
5599-
""",
5600-
],
5601-
)
5602-
5603-
cc_library(
5604-
name = "SerializeToCubin_stub",
5605-
srcs = [":SerializeToCubin_stub_cc"],
5606-
hdrs = glob(["include/mlir/Dialect/GPU/Transforms/*.h"]),
5607-
includes = ["include"],
5608-
deps = [
5609-
":GPUDialect",
5610-
":GPUPassIncGen",
5611-
":IR",
5612-
":Pass",
5613-
":SPIRVDialect",
5614-
":Support",
5615-
":VectorDialect",
5616-
"//llvm:Support",
5617-
],
5618-
)
5619-
56205581
td_library(
56215582
name = "GPUTransformOpsTdFiles",
56225583
srcs = [
@@ -13193,7 +13154,6 @@ cc_library(
1319313154
],
1319413155
)
1319513156

13196-
1319713157
##---------------------------------------------------------------------------##
1319813158
# Allocation interfaces
1319913159
##---------------------------------------------------------------------------##

0 commit comments

Comments
 (0)