@@ -687,7 +687,7 @@ def SYCLCallOp : SYCL_Op<"call", [CallOpInterface]> {
687
687
// accessor.subscript OPERATION
688
688
////////////////////////////////////////////////////////////////////////////////
689
689
690
- def SYCLAccessorSubscriptIndex : AnyTypeOf<[IndexType, SYCL_IDType ]>;
690
+ def SYCLAccessorSubscriptIndex : AnyTypeOf<[IndexType, IDMemRef ]>;
691
691
692
692
def SYCLAccessorSubscriptOp
693
693
: SYCLMethodOpInterfaceImpl<"accessor.subscript", "AccessorType",
@@ -697,8 +697,10 @@ def SYCLAccessorSubscriptOp
697
697
This operation represents a call to the accessor::operator[] function.
698
698
}];
699
699
700
- let arguments = (ins SYCL_AccessorType:$Acc,
701
- SYCLAccessorSubscriptIndex:$Index,
700
+ let arguments = (ins Arg<AccessorMemRef, "The offsetted accessor",
701
+ [MemRead]>:$Acc,
702
+ Arg<SYCLAccessorSubscriptIndex, "The offset",
703
+ [MemRead]>:$Index,
702
704
TypeArrayAttr:$ArgumentTypes,
703
705
FlatSymbolRefAttr:$FunctionName,
704
706
OptionalAttr<FlatSymbolRefAttr>:$MangledFunctionName,
@@ -726,7 +728,7 @@ def SYCLRangeGetOp
726
728
This operation represents a call to the range::get/operator[] functions.
727
729
}];
728
730
729
- let arguments = (ins SYCL_RangeType :$Range,
731
+ let arguments = (ins Arg<RangeMemRef, "The input range", [MemRead]> :$Range,
730
732
I32:$Index,
731
733
TypeArrayAttr:$ArgumentTypes,
732
734
FlatSymbolRefAttr:$FunctionName,
@@ -752,7 +754,7 @@ def SYCLRangeSizeOp
752
754
This operation represents a call to the range::size[] function.
753
755
}];
754
756
755
- let arguments = (ins SYCL_RangeType :$Range,
757
+ let arguments = (ins Arg<RangeMemRef, "The input range", [MemRead]> :$Range,
756
758
TypeArrayAttr:$ArgumentTypes,
757
759
FlatSymbolRefAttr:$FunctionName,
758
760
OptionalAttr<FlatSymbolRefAttr>:$MangledFunctionName,
@@ -773,7 +775,7 @@ def SYCLNdRangeGetGlobalRange
773
775
This operation represents a call to the nd_range::get_global_range function.
774
776
}];
775
777
776
- let arguments = (ins SYCL_NdRangeType :$ND,
778
+ let arguments = (ins Arg<NDRangeMemRef, "The input ND-range", [MemRead]> :$ND,
777
779
TypeArrayAttr:$ArgumentTypes,
778
780
FlatSymbolRefAttr:$FunctionName,
779
781
OptionalAttr<FlatSymbolRefAttr>:$MangledFunctionName,
@@ -794,7 +796,7 @@ def SYCLNdRangeGetLocalRange
794
796
This operation represents a call to the nd_range::get_local_range function.
795
797
}];
796
798
797
- let arguments = (ins SYCL_NdRangeType :$ND,
799
+ let arguments = (ins Arg<NDRangeMemRef, "The input ND-range", [MemRead]> :$ND,
798
800
TypeArrayAttr:$ArgumentTypes,
799
801
FlatSymbolRefAttr:$FunctionName,
800
802
OptionalAttr<FlatSymbolRefAttr>:$MangledFunctionName,
@@ -815,7 +817,7 @@ def SYCLNdRangeGetGroupRange
815
817
This operation represents a call to the nd_range::get_group_range function.
816
818
}];
817
819
818
- let arguments = (ins SYCL_NdRangeType :$ND,
820
+ let arguments = (ins Arg<NDRangeMemRef, "The input ND-range", [MemRead]> :$ND,
819
821
TypeArrayAttr:$ArgumentTypes,
820
822
FlatSymbolRefAttr:$FunctionName,
821
823
OptionalAttr<FlatSymbolRefAttr>:$MangledFunctionName,
@@ -837,7 +839,7 @@ def SYCLIDGetOp
837
839
This operation represents a call to the id::get/operator[]/operator size_t functions.
838
840
}];
839
841
840
- let arguments = (ins SYCL_IDType :$ID,
842
+ let arguments = (ins Arg<IDMemRef, "The input ID", [MemRead]> :$ID,
841
843
Optional<I32>:$Index,
842
844
TypeArrayAttr:$ArgumentTypes,
843
845
FlatSymbolRefAttr:$FunctionName,
@@ -864,7 +866,7 @@ def SYCLItemGetIDOp
864
866
This operation represents a call to the item::get_id/operator[]/operator size_t functions.
865
867
}];
866
868
867
- let arguments = (ins SYCL_ItemType :$Item,
869
+ let arguments = (ins Arg<ItemMemRef, "The input item", [MemRead]> :$Item,
868
870
Optional<I32>:$Index,
869
871
TypeArrayAttr:$ArgumentTypes,
870
872
FlatSymbolRefAttr:$FunctionName,
@@ -886,7 +888,7 @@ def SYCLItemGetRangeOp
886
888
This operation represents a call to the item::get_range function.
887
889
}];
888
890
889
- let arguments = (ins SYCL_ItemType :$Item,
891
+ let arguments = (ins Arg<ItemMemRef, "The input item", [MemRead]> :$Item,
890
892
Optional<I32>:$Index,
891
893
TypeArrayAttr:$ArgumentTypes,
892
894
FlatSymbolRefAttr:$FunctionName,
@@ -908,7 +910,7 @@ def SYCLItemGetLinearIDOp
908
910
This operation represents a call to the item::get_linear_id function.
909
911
}];
910
912
911
- let arguments = (ins SYCL_ItemType :$Item,
913
+ let arguments = (ins Arg<ItemMemRef, "The input item", [MemRead]> :$Item,
912
914
TypeArrayAttr:$ArgumentTypes,
913
915
FlatSymbolRefAttr:$FunctionName,
914
916
OptionalAttr<FlatSymbolRefAttr>:$MangledFunctionName,
@@ -929,7 +931,7 @@ def SYCLNDItemGetGlobalIDOp
929
931
This operation represents a call to the nd_item::get_global_id function.
930
932
}];
931
933
932
- let arguments = (ins SYCL_NdItemType :$NDItem,
934
+ let arguments = (ins Arg<NDItemMemRef, "The input ND-item", [MemRead]> :$NDItem,
933
935
Optional<I32>:$Index,
934
936
TypeArrayAttr:$ArgumentTypes,
935
937
FlatSymbolRefAttr:$FunctionName,
@@ -951,7 +953,7 @@ def SYCLNDItemGetGlobalLinearIDOp
951
953
This operation represents a call to the nd_item::get_global_linear_id function.
952
954
}];
953
955
954
- let arguments = (ins SYCL_NdItemType :$NDItem,
956
+ let arguments = (ins Arg<NDItemMemRef, "The input ND-item", [MemRead]> :$NDItem,
955
957
TypeArrayAttr:$ArgumentTypes,
956
958
FlatSymbolRefAttr:$FunctionName,
957
959
OptionalAttr<FlatSymbolRefAttr>:$MangledFunctionName,
@@ -972,7 +974,7 @@ def SYCLNDItemGetLocalIDOp
972
974
This operation represents a call to the nd_item::get_local_id function.
973
975
}];
974
976
975
- let arguments = (ins SYCL_NdItemType :$NDItem,
977
+ let arguments = (ins Arg<NDItemMemRef, "The input ND-item", [MemRead]> :$NDItem,
976
978
Optional<I32>:$Index,
977
979
TypeArrayAttr:$ArgumentTypes,
978
980
FlatSymbolRefAttr:$FunctionName,
@@ -994,7 +996,7 @@ def SYCLNDItemGetLocalLinearIDOp
994
996
This operation represents a call to the nd_item::get_local_linear_id function.
995
997
}];
996
998
997
- let arguments = (ins SYCL_NdItemType :$NDItem,
999
+ let arguments = (ins Arg<NDItemMemRef, "The input ND-item", [MemRead]> :$NDItem,
998
1000
TypeArrayAttr:$ArgumentTypes,
999
1001
FlatSymbolRefAttr:$FunctionName,
1000
1002
OptionalAttr<FlatSymbolRefAttr>:$MangledFunctionName,
@@ -1015,7 +1017,7 @@ def SYCLNDItemGetGroupOp
1015
1017
This operation represents a call to the nd_item::get_group function.
1016
1018
}];
1017
1019
1018
- let arguments = (ins SYCL_NdItemType :$NDItem,
1020
+ let arguments = (ins Arg<NDItemMemRef, "The input ND-item", [MemRead]> :$NDItem,
1019
1021
Optional<I32>:$Index,
1020
1022
TypeArrayAttr:$ArgumentTypes,
1021
1023
FlatSymbolRefAttr:$FunctionName,
@@ -1037,7 +1039,7 @@ def SYCLNDItemGetGroupLinearIDOp
1037
1039
This operation represents a call to the nd_item::get_group_linear_id function.
1038
1040
}];
1039
1041
1040
- let arguments = (ins SYCL_NdItemType :$NDItem,
1042
+ let arguments = (ins Arg<NDItemMemRef, "The input ND-item", [MemRead]> :$NDItem,
1041
1043
TypeArrayAttr:$ArgumentTypes,
1042
1044
FlatSymbolRefAttr:$FunctionName,
1043
1045
OptionalAttr<FlatSymbolRefAttr>:$MangledFunctionName,
@@ -1059,7 +1061,7 @@ def SYCLNDItemGetGroupRangeOp
1059
1061
This operation represents a call to the nd_item::get_group_range function.
1060
1062
}];
1061
1063
1062
- let arguments = (ins SYCL_NdItemType :$NDItem,
1064
+ let arguments = (ins Arg<NDItemMemRef, "The input ND-item", [MemRead]> :$NDItem,
1063
1065
Optional<I32>:$Index,
1064
1066
TypeArrayAttr:$ArgumentTypes,
1065
1067
FlatSymbolRefAttr:$FunctionName,
@@ -1082,7 +1084,7 @@ def SYCLNDItemGetGlobalRangeOp
1082
1084
This operation represents a call to the nd_item::get_global_range function.
1083
1085
}];
1084
1086
1085
- let arguments = (ins SYCL_NdItemType :$NDItem,
1087
+ let arguments = (ins Arg<NDItemMemRef, "The input ND-item", [MemRead]> :$NDItem,
1086
1088
Optional<I32>:$Index,
1087
1089
TypeArrayAttr:$ArgumentTypes,
1088
1090
FlatSymbolRefAttr:$FunctionName,
@@ -1105,7 +1107,7 @@ def SYCLNDItemGetLocalRangeOp
1105
1107
This operation represents a call to the nd_item::get_local_range function.
1106
1108
}];
1107
1109
1108
- let arguments = (ins SYCL_NdItemType :$NDItem,
1110
+ let arguments = (ins Arg<NDItemMemRef, "The input ND-item", [MemRead]> :$NDItem,
1109
1111
Optional<I32>:$Index,
1110
1112
TypeArrayAttr:$ArgumentTypes,
1111
1113
FlatSymbolRefAttr:$FunctionName,
@@ -1127,7 +1129,7 @@ def SYCLNDItemGetNdRangeOp
1127
1129
This operation represents a call to the nd_item::get_nd_range function.
1128
1130
}];
1129
1131
1130
- let arguments = (ins SYCL_NdItemType :$NDItem,
1132
+ let arguments = (ins Arg<NDItemMemRef, "The input ND-item", [MemRead]> :$NDItem,
1131
1133
TypeArrayAttr:$ArgumentTypes,
1132
1134
FlatSymbolRefAttr:$FunctionName,
1133
1135
OptionalAttr<FlatSymbolRefAttr>:$MangledFunctionName,
@@ -1149,7 +1151,7 @@ def SYCLGroupGetGroupIDOp
1149
1151
This operation represents a call to the group::get_group_id/operator[] functions.
1150
1152
}];
1151
1153
1152
- let arguments = (ins SYCL_GroupType :$Group,
1154
+ let arguments = (ins Arg<GroupMemRef, "The input group", [MemRead]> :$Group,
1153
1155
Optional<I32>:$Index,
1154
1156
TypeArrayAttr:$ArgumentTypes,
1155
1157
FlatSymbolRefAttr:$FunctionName,
@@ -1172,7 +1174,7 @@ def SYCLGroupGetLocalIDOp
1172
1174
This operation represents a call to the group::get_local_id function.
1173
1175
}];
1174
1176
1175
- let arguments = (ins SYCL_GroupType :$Group,
1177
+ let arguments = (ins Arg<GroupMemRef, "The input group", [MemRead]> :$Group,
1176
1178
Optional<I32>:$Index,
1177
1179
TypeArrayAttr:$ArgumentTypes,
1178
1180
FlatSymbolRefAttr:$FunctionName,
@@ -1195,7 +1197,7 @@ def SYCLGroupGetLocalRangeOp
1195
1197
This operation represents a call to the group::get_local_range function.
1196
1198
}];
1197
1199
1198
- let arguments = (ins SYCL_GroupType :$Group,
1200
+ let arguments = (ins Arg<GroupMemRef, "The input group", [MemRead]> :$Group,
1199
1201
Optional<I32>:$Index,
1200
1202
TypeArrayAttr:$ArgumentTypes,
1201
1203
FlatSymbolRefAttr:$FunctionName,
@@ -1218,7 +1220,7 @@ def SYCLGroupGetGroupRangeOp
1218
1220
This operation represents a call to the group::get_group_range function.
1219
1221
}];
1220
1222
1221
- let arguments = (ins SYCL_GroupType :$Group,
1223
+ let arguments = (ins Arg<GroupMemRef, "The input group", [MemRead]> :$Group,
1222
1224
Optional<I32>:$Index,
1223
1225
TypeArrayAttr:$ArgumentTypes,
1224
1226
FlatSymbolRefAttr:$FunctionName,
@@ -1240,7 +1242,7 @@ def SYCLGroupGetMaxLocalRangeOp
1240
1242
This operation represents a call to the group::get_max_local_range function.
1241
1243
}];
1242
1244
1243
- let arguments = (ins SYCL_GroupType :$Group,
1245
+ let arguments = (ins Arg<GroupMemRef, "The input group", [MemRead]> :$Group,
1244
1246
TypeArrayAttr:$ArgumentTypes,
1245
1247
FlatSymbolRefAttr:$FunctionName,
1246
1248
OptionalAttr<FlatSymbolRefAttr>:$MangledFunctionName,
@@ -1261,7 +1263,7 @@ def SYCLGroupGetGroupLinearIDOp
1261
1263
This operation represents a call to the group::get_group_linear_id function.
1262
1264
}];
1263
1265
1264
- let arguments = (ins SYCL_GroupType :$Group,
1266
+ let arguments = (ins Arg<GroupMemRef, "The input group", [MemRead]> :$Group,
1265
1267
TypeArrayAttr:$ArgumentTypes,
1266
1268
FlatSymbolRefAttr:$FunctionName,
1267
1269
OptionalAttr<FlatSymbolRefAttr>:$MangledFunctionName,
@@ -1282,7 +1284,7 @@ def SYCLGroupGetLocalLinearIDOp
1282
1284
This operation represents a call to the group::get_local_linear_id function.
1283
1285
}];
1284
1286
1285
- let arguments = (ins SYCL_GroupType :$Group,
1287
+ let arguments = (ins Arg<GroupMemRef, "The input group", [MemRead]> :$Group,
1286
1288
TypeArrayAttr:$ArgumentTypes,
1287
1289
FlatSymbolRefAttr:$FunctionName,
1288
1290
OptionalAttr<FlatSymbolRefAttr>:$MangledFunctionName,
@@ -1303,7 +1305,7 @@ def SYCLGroupGetLocalLinearIDOp
1303
1305
This operation represents a call to the group::get_group_linear_range function.
1304
1306
}];
1305
1307
1306
- let arguments = (ins SYCL_GroupType :$Group,
1308
+ let arguments = (ins Arg<GroupMemRef, "The input group", [MemRead]> :$Group,
1307
1309
TypeArrayAttr:$ArgumentTypes,
1308
1310
FlatSymbolRefAttr:$FunctionName,
1309
1311
OptionalAttr<FlatSymbolRefAttr>:$MangledFunctionName,
@@ -1324,7 +1326,7 @@ def SYCLGroupGetLocalLinearRangeOp
1324
1326
This operation represents a call to the group::get_local_linear_range function.
1325
1327
}];
1326
1328
1327
- let arguments = (ins SYCL_GroupType :$Group,
1329
+ let arguments = (ins Arg<GroupMemRef, "The input group", [MemRead]> :$Group,
1328
1330
TypeArrayAttr:$ArgumentTypes,
1329
1331
FlatSymbolRefAttr:$FunctionName,
1330
1332
OptionalAttr<FlatSymbolRefAttr>:$MangledFunctionName,
0 commit comments