@@ -6486,6 +6486,7 @@ cc_library(
6486
6486
":Pass" ,
6487
6487
":SPIRVCommonAttrToLLVMConversion" ,
6488
6488
":SPIRVDialect" ,
6489
+ ":SPIRVImageInterfaces" ,
6489
6490
":SPIRVUtils" ,
6490
6491
":Support" ,
6491
6492
":TransformUtils" ,
@@ -7389,14 +7390,16 @@ cc_library(
7389
7390
],
7390
7391
)
7391
7392
7393
+ td_library (
7394
+ name = "SPIRVImageInterfacesTdFiles" ,
7395
+ srcs = ["include/mlir/Dialect/SPIRV/Interfaces/SPIRVImageInterfaces.td" ],
7396
+ includes = ["include" ],
7397
+ deps = [":OpBaseTdFiles" ],
7398
+ )
7399
+
7392
7400
td_library (
7393
7401
name = "SPIRVOpsTdFiles" ,
7394
- srcs = glob (["include/mlir/Dialect/SPIRV/IR/*.td" ]) + [
7395
- # TODO: resolve circular dep, e.g.
7396
- # * SPIRVImageInterfaces.td uses SPIRVBase.td
7397
- # * SPIRVOps.h uses SPIRVImageInterfaces.h
7398
- "include/mlir/Dialect/SPIRV/Interfaces/SPIRVImageInterfaces.td" ,
7399
- ],
7402
+ srcs = glob (["include/mlir/Dialect/SPIRV/IR/*.td" ]),
7400
7403
includes = ["include" ],
7401
7404
deps = [
7402
7405
":BuiltinDialectTdFiles" ,
@@ -7405,10 +7408,43 @@ td_library(
7405
7408
":FunctionInterfacesTdFiles" ,
7406
7409
":InferTypeOpInterfaceTdFiles" ,
7407
7410
":OpBaseTdFiles" ,
7411
+ ":SPIRVImageInterfacesTdFiles" ,
7408
7412
":SideEffectInterfacesTdFiles" ,
7409
7413
],
7410
7414
)
7411
7415
7416
+ gentbl_cc_library (
7417
+ name = "SPIRVImageInterfacesIncGen" ,
7418
+ tbl_outs = [
7419
+ (
7420
+ ["-gen-op-interface-decls" ],
7421
+ "include/mlir/Dialect/SPIRV/Interfaces/SPIRVImageInterfaces.h.inc" ,
7422
+ ),
7423
+ (
7424
+ ["-gen-op-interface-defs" ],
7425
+ "include/mlir/Dialect/SPIRV/Interfaces/SPIRVImageInterfaces.cpp.inc" ,
7426
+ ),
7427
+ ],
7428
+ tblgen = ":mlir-tblgen" ,
7429
+ td_file = "include/mlir/Dialect/SPIRV/Interfaces/SPIRVImageInterfaces.td" ,
7430
+ deps = [
7431
+ ":SPIRVImageInterfacesTdFiles" ,
7432
+ ":SPIRVOpsTdFiles" ,
7433
+ ],
7434
+ )
7435
+
7436
+ cc_library (
7437
+ name = "SPIRVImageInterfaces" ,
7438
+ srcs = ["lib/Dialect/SPIRV/Interfaces/SPIRVImageInterfaces.cpp" ],
7439
+ hdrs = ["include/mlir/Dialect/SPIRV/Interfaces/SPIRVImageInterfaces.h" ],
7440
+ includes = ["include" ],
7441
+ deps = [
7442
+ ":IR" ,
7443
+ ":SPIRVImageInterfacesIncGen" ,
7444
+ "//llvm:Support" ,
7445
+ ],
7446
+ )
7447
+
7412
7448
gentbl_cc_library (
7413
7449
name = "SPIRVOpsIncGen" ,
7414
7450
tbl_outs = [
@@ -7536,33 +7572,14 @@ gentbl_cc_library(
7536
7572
deps = [":SPIRVOpsTdFiles" ],
7537
7573
)
7538
7574
7539
- gentbl_cc_library (
7540
- name = "SPIRVImageInterfacesIncGen" ,
7541
- tbl_outs = [
7542
- (
7543
- ["-gen-op-interface-decls" ],
7544
- "include/mlir/Dialect/SPIRV/Interfaces/SPIRVImageInterfaces.h.inc" ,
7545
- ),
7546
- (
7547
- ["-gen-op-interface-defs" ],
7548
- "include/mlir/Dialect/SPIRV/Interfaces/SPIRVImageInterfaces.cpp.inc" ,
7549
- ),
7550
- ],
7551
- tblgen = ":mlir-tblgen" ,
7552
- td_file = "include/mlir/Dialect/SPIRV/Interfaces/SPIRVImageInterfaces.td" ,
7553
- deps = [":SPIRVOpsTdFiles" ],
7554
- )
7555
-
7556
7575
cc_library (
7557
7576
name = "SPIRVDialect" ,
7558
7577
srcs = glob ([
7559
7578
"lib/Dialect/SPIRV/IR/*.cpp" ,
7560
7579
"lib/Dialect/SPIRV/IR/*.h" ,
7561
- "lib/Dialect/SPIRV/Interfaces/*.cpp" ,
7562
7580
]),
7563
7581
hdrs = glob ([
7564
7582
"include/mlir/Dialect/SPIRV/IR/*.h" ,
7565
- "include/mlir/Dialect/SPIRV/Interfaces/*.h" ,
7566
7583
]),
7567
7584
includes = ["include" ],
7568
7585
deps = [
@@ -7580,7 +7597,7 @@ cc_library(
7580
7597
":SPIRVAttributesIncGen" ,
7581
7598
":SPIRVAvailabilityIncGen" ,
7582
7599
":SPIRVCanonicalizationIncGen" ,
7583
- ":SPIRVImageInterfacesIncGen " ,
7600
+ ":SPIRVImageInterfaces " ,
7584
7601
":SPIRVOpsIncGen" ,
7585
7602
":SideEffectInterfaces" ,
7586
7603
":Support" ,
0 commit comments