@@ -89,9 +89,6 @@ class ScalarType : public SPIRVType {
89
89
// / Returns true if the given float type is valid for the SPIR-V dialect.
90
90
static bool isValid (IntegerType);
91
91
92
- void getCapabilities (SPIRVType::CapabilityArrayRefVector &capabilities,
93
- std::optional<StorageClass> storage = std::nullopt );
94
-
95
92
std::optional<int64_t > getSizeInBytes ();
96
93
};
97
94
@@ -116,9 +113,6 @@ class CompositeType : public SPIRVType {
116
113
// / implementation dependent.
117
114
bool hasCompileTimeKnownNumElements () const ;
118
115
119
- void getCapabilities (SPIRVType::CapabilityArrayRefVector &capabilities,
120
- std::optional<StorageClass> storage = std::nullopt );
121
-
122
116
std::optional<int64_t > getSizeInBytes ();
123
117
};
124
118
@@ -144,9 +138,6 @@ class ArrayType : public Type::TypeBase<ArrayType, CompositeType,
144
138
// / type.
145
139
unsigned getArrayStride () const ;
146
140
147
- void getCapabilities (SPIRVType::CapabilityArrayRefVector &capabilities,
148
- std::optional<StorageClass> storage = std::nullopt );
149
-
150
141
// / Returns the array size in bytes. Since array type may have an explicit
151
142
// / stride declaration (in bytes), we also include it in the calculation.
152
143
std::optional<int64_t > getSizeInBytes ();
@@ -186,9 +177,6 @@ class ImageType
186
177
ImageSamplerUseInfo getSamplerUseInfo () const ;
187
178
ImageFormat getImageFormat () const ;
188
179
// TODO: Add support for Access qualifier
189
-
190
- void getCapabilities (SPIRVType::CapabilityArrayRefVector &capabilities,
191
- std::optional<StorageClass> storage = std::nullopt );
192
180
};
193
181
194
182
// SPIR-V pointer type
@@ -204,9 +192,6 @@ class PointerType : public Type::TypeBase<PointerType, SPIRVType,
204
192
Type getPointeeType () const ;
205
193
206
194
StorageClass getStorageClass () const ;
207
-
208
- void getCapabilities (SPIRVType::CapabilityArrayRefVector &capabilities,
209
- std::optional<StorageClass> storage = std::nullopt );
210
195
};
211
196
212
197
// SPIR-V run-time array type
@@ -228,9 +213,6 @@ class RuntimeArrayType
228
213
// / Returns the array stride in bytes. 0 means no stride decorated on this
229
214
// / type.
230
215
unsigned getArrayStride () const ;
231
-
232
- void getCapabilities (SPIRVType::CapabilityArrayRefVector &capabilities,
233
- std::optional<StorageClass> storage = std::nullopt );
234
216
};
235
217
236
218
// SPIR-V sampled image type
@@ -252,10 +234,6 @@ class SampledImageType
252
234
Type imageType);
253
235
254
236
Type getImageType () const ;
255
-
256
- void
257
- getCapabilities (SPIRVType::CapabilityArrayRefVector &capabilities,
258
- std::optional<spirv::StorageClass> storage = std::nullopt );
259
237
};
260
238
261
239
// / SPIR-V struct type. Two kinds of struct types are supported:
@@ -405,9 +383,6 @@ class StructType
405
383
trySetBody (ArrayRef<Type> memberTypes, ArrayRef<OffsetInfo> offsetInfo = {},
406
384
ArrayRef<MemberDecorationInfo> memberDecorations = {},
407
385
ArrayRef<StructDecorationInfo> structDecorations = {});
408
-
409
- void getCapabilities (SPIRVType::CapabilityArrayRefVector &capabilities,
410
- std::optional<StorageClass> storage = std::nullopt );
411
386
};
412
387
413
388
llvm::hash_code
@@ -440,9 +415,6 @@ class CooperativeMatrixType
440
415
// / Returns the use parameter of the cooperative matrix.
441
416
CooperativeMatrixUseKHR getUse () const ;
442
417
443
- void getCapabilities (SPIRVType::CapabilityArrayRefVector &capabilities,
444
- std::optional<StorageClass> storage = std::nullopt );
445
-
446
418
operator ShapedType () const { return llvm::cast<ShapedType>(*this ); }
447
419
448
420
ArrayRef<int64_t > getShape () const ;
@@ -493,9 +465,6 @@ class MatrixType : public Type::TypeBase<MatrixType, CompositeType,
493
465
494
466
// / Returns the elements' type (i.e, single element type).
495
467
Type getElementType () const ;
496
-
497
- void getCapabilities (SPIRVType::CapabilityArrayRefVector &capabilities,
498
- std::optional<StorageClass> storage = std::nullopt );
499
468
};
500
469
501
470
// / SPIR-V TensorARM Type
@@ -531,9 +500,6 @@ class TensorArmType
531
500
ArrayRef<int64_t > getShape () const ;
532
501
bool hasRank () const { return !getShape ().empty (); }
533
502
operator ShapedType () const { return llvm::cast<ShapedType>(*this ); }
534
-
535
- void getCapabilities (SPIRVType::CapabilityArrayRefVector &capabilities,
536
- std::optional<StorageClass> storage = std::nullopt );
537
503
};
538
504
539
505
} // namespace spirv
0 commit comments