File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed
utils/bazel/llvm-project-overlay/mlir/python Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change @@ -1057,6 +1057,37 @@ filegroup(
1057
1057
],
1058
1058
)
1059
1059
1060
+ ##---------------------------------------------------------------------------##
1061
+ # SPIRV dialect.
1062
+ ##---------------------------------------------------------------------------##
1063
+
1064
+ gentbl_filegroup (
1065
+ name = "SPIRVOpsPyGen" ,
1066
+ tbl_outs = [
1067
+ (
1068
+ [
1069
+ "-gen-python-op-bindings" ,
1070
+ "-bind-dialect=spirv" ,
1071
+ ],
1072
+ "mlir/dialects/_spirv_ops_gen.py" ,
1073
+ ),
1074
+ ],
1075
+ tblgen = "//mlir:mlir-tblgen" ,
1076
+ td_file = "mlir/dialects/SPIRVOps.td" ,
1077
+ deps = [
1078
+ "//mlir:OpBaseTdFiles" ,
1079
+ "//mlir:SPIRVOpsTdFiles" ,
1080
+ ],
1081
+ )
1082
+
1083
+ filegroup (
1084
+ name = "SPIRVOpsPyFiles" ,
1085
+ srcs = [
1086
+ "mlir/dialects/spirv.py" ,
1087
+ ":SPIRVOpsPyGen" ,
1088
+ ],
1089
+ )
1090
+
1060
1091
##---------------------------------------------------------------------------##
1061
1092
# Tensor dialect.
1062
1093
##---------------------------------------------------------------------------##
You can’t perform that action at this time.
0 commit comments