@@ -5540,7 +5540,6 @@ cc_library(
5540
5540
":SCFDialect" ,
5541
5541
":SPIRVDialect" ,
5542
5542
":SPIRVTarget" ,
5543
- ":SerializeToCubin_stub" ,
5544
5543
":SideEffectInterfaces" ,
5545
5544
":Support" ,
5546
5545
":ToLLVMIRTranslation" ,
@@ -5579,44 +5578,6 @@ cc_library(
5579
5578
]),
5580
5579
)
5581
5580
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
-
5620
5581
td_library (
5621
5582
name = "GPUTransformOpsTdFiles" ,
5622
5583
srcs = [
@@ -13193,7 +13154,6 @@ cc_library(
13193
13154
],
13194
13155
)
13195
13156
13196
-
13197
13157
##---------------------------------------------------------------------------##
13198
13158
# Allocation interfaces
13199
13159
##---------------------------------------------------------------------------##
0 commit comments