MLIR 24.0.0git
IRTypes.h
Go to the documentation of this file.
1//===- IRTypes.h - Type Interfaces ----------------------------------------===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
9#ifndef MLIR_BINDINGS_PYTHON_IRTYPES_H
10#define MLIR_BINDINGS_PYTHON_IRTYPES_H
11
12#include "mlir-c/BuiltinTypes.h"
14
15namespace mlir {
16namespace python {
18
20
22 : public PyConcreteType<PyIntegerType> {
23public:
27 static constexpr const char *pyClassName = "IntegerType";
28 static inline const MlirStringRef name = mlirIntegerTypeGetName();
30
32
33 static void bindDerived(ClassTy &c);
34};
35
36/// Index Type subclass - IndexType.
38 : public PyConcreteType<PyIndexType> {
39public:
43 static constexpr const char *pyClassName = "IndexType";
44 static inline const MlirStringRef name = mlirIndexTypeGetName();
46
47 static void bindDerived(ClassTy &c);
48};
49
51 : public PyConcreteType<PyFloatType> {
52public:
54 static constexpr const char *pyClassName = "FloatType";
56
57 static void bindDerived(ClassTy &c);
58};
59
60/// Floating Point Type subclass - Float4E2M1FNType.
62 : public PyConcreteType<PyFloat4E2M1FNType, PyFloatType> {
63public:
67 static constexpr const char *pyClassName = "Float4E2M1FNType";
70
71 static void bindDerived(ClassTy &c);
72};
73
74/// Floating Point Type subclass - Float6E2M3FNType.
76 : public PyConcreteType<PyFloat6E2M3FNType, PyFloatType> {
77public:
81 static constexpr const char *pyClassName = "Float6E2M3FNType";
84
85 static void bindDerived(ClassTy &c);
86};
87
88/// Floating Point Type subclass - Float6E3M2FNType.
90 : public PyConcreteType<PyFloat6E3M2FNType, PyFloatType> {
91public:
95 static constexpr const char *pyClassName = "Float6E3M2FNType";
98
99 static void bindDerived(ClassTy &c);
100};
101
102/// Floating Point Type subclass - Float8E4M3FNType.
104 : public PyConcreteType<PyFloat8E4M3FNType, PyFloatType> {
105public:
109 static constexpr const char *pyClassName = "Float8E4M3FNType";
112
113 static void bindDerived(ClassTy &c);
114};
115
116/// Floating Point Type subclass - Float8E5M2Type.
118 : public PyConcreteType<PyFloat8E5M2Type, PyFloatType> {
119public:
123 static constexpr const char *pyClassName = "Float8E5M2Type";
126
127 static void bindDerived(ClassTy &c);
128};
129
130/// Floating Point Type subclass - Float8E4M3Type.
132 : public PyConcreteType<PyFloat8E4M3Type, PyFloatType> {
133public:
137 static constexpr const char *pyClassName = "Float8E4M3Type";
140
141 static void bindDerived(ClassTy &c);
142};
143
144/// Floating Point Type subclass - Float8E4M3FNUZ.
146 : public PyConcreteType<PyFloat8E4M3FNUZType, PyFloatType> {
147public:
151 static constexpr const char *pyClassName = "Float8E4M3FNUZType";
154
155 static void bindDerived(ClassTy &c);
156};
157
158/// Floating Point Type subclass - Float8E4M3B11FNUZ.
160 : public PyConcreteType<PyFloat8E4M3B11FNUZType, PyFloatType> {
161public:
165 static constexpr const char *pyClassName = "Float8E4M3B11FNUZType";
168
169 static void bindDerived(ClassTy &c);
170};
171
172/// Floating Point Type subclass - Float8E5M2FNUZ.
174 : public PyConcreteType<PyFloat8E5M2FNUZType, PyFloatType> {
175public:
179 static constexpr const char *pyClassName = "Float8E5M2FNUZType";
182
183 static void bindDerived(ClassTy &c);
184};
185
186/// Floating Point Type subclass - Float8E3M4Type.
188 : public PyConcreteType<PyFloat8E3M4Type, PyFloatType> {
189public:
193 static constexpr const char *pyClassName = "Float8E3M4Type";
196
197 static void bindDerived(ClassTy &c);
198};
199
200/// Floating Point Type subclass - Float8E8M0FNUType.
202 : public PyConcreteType<PyFloat8E8M0FNUType, PyFloatType> {
203public:
207 static constexpr const char *pyClassName = "Float8E8M0FNUType";
210
211 static void bindDerived(ClassTy &c);
212};
213
214/// Floating Point Type subclass - Float8E5M3FNUType.
216 : public PyConcreteType<PyFloat8E5M3FNUType, PyFloatType> {
217public:
221 static constexpr const char *pyClassName = "Float8E5M3FNUType";
223
224 static void bindDerived(ClassTy &c);
225};
226
227/// Floating Point Type subclass - BF16Type.
229 : public PyConcreteType<PyBF16Type, PyFloatType> {
230public:
234 static constexpr const char *pyClassName = "BF16Type";
235 static inline const MlirStringRef name = mlirBF16TypeGetName();
237
238 static void bindDerived(ClassTy &c);
239};
240
241/// Floating Point Type subclass - F16Type.
243 : public PyConcreteType<PyF16Type, PyFloatType> {
244public:
248 static constexpr const char *pyClassName = "F16Type";
249 static inline const MlirStringRef name = mlirF16TypeGetName();
251
252 static void bindDerived(ClassTy &c);
253};
254
255/// Floating Point Type subclass - TF32Type.
257 : public PyConcreteType<PyTF32Type, PyFloatType> {
258public:
262 static constexpr const char *pyClassName = "FloatTF32Type";
263 static inline const MlirStringRef name = mlirTF32TypeGetName();
265
266 static void bindDerived(ClassTy &c);
267};
268
269/// Floating Point Type subclass - F32Type.
271 : public PyConcreteType<PyF32Type, PyFloatType> {
272public:
276 static constexpr const char *pyClassName = "F32Type";
277 static inline const MlirStringRef name = mlirF32TypeGetName();
279
280 static void bindDerived(ClassTy &c);
281};
282
283/// Floating Point Type subclass - F64Type.
285 : public PyConcreteType<PyF64Type, PyFloatType> {
286public:
290 static constexpr const char *pyClassName = "F64Type";
291 static inline const MlirStringRef name = mlirF64TypeGetName();
293
294 static void bindDerived(ClassTy &c);
295};
296
297/// None Type subclass - NoneType.
299public:
303 static constexpr const char *pyClassName = "NoneType";
304 static inline const MlirStringRef name = mlirNoneTypeGetName();
306
307 static void bindDerived(ClassTy &c);
308};
309
310/// Complex Type subclass - ComplexType.
312 : public PyConcreteType<PyComplexType> {
313public:
317 static constexpr const char *pyClassName = "ComplexType";
320
321 static void bindDerived(ClassTy &c);
322};
323
324/// Shaped Type Interface - ShapedType
326 : public PyConcreteType<PyShapedType> {
327public:
329 static constexpr const char *pyClassName = "ShapedType";
331
332 static void bindDerived(ClassTy &c);
333
334private:
335 void requireHasRank();
336};
337
338/// Vector Type subclass - VectorType.
340 : public PyConcreteType<PyVectorType, PyShapedType> {
341public:
345 static constexpr const char *pyClassName = "VectorType";
346 static inline const MlirStringRef name = mlirVectorTypeGetName();
348
349 static void bindDerived(ClassTy &c);
350
351private:
352 static PyVectorType
353 getChecked(std::vector<int64_t> shape, PyType &elementType,
354 std::optional<nanobind::sequence> scalable,
355 std::optional<std::vector<int64_t>> scalableDims,
357
358 static PyVectorType get(std::vector<int64_t> shape, PyType &elementType,
359 std::optional<nanobind::sequence> scalable,
360 std::optional<std::vector<int64_t>> scalableDims,
362};
363
364/// Ranked Tensor Type subclass - RankedTensorType.
366 : public PyConcreteType<PyRankedTensorType, PyShapedType> {
367public:
371 static constexpr const char *pyClassName = "RankedTensorType";
374
375 static void bindDerived(ClassTy &c);
376};
377
378/// Unranked Tensor Type subclass - UnrankedTensorType.
380 : public PyConcreteType<PyUnrankedTensorType, PyShapedType> {
381public:
385 static constexpr const char *pyClassName = "UnrankedTensorType";
388
389 static void bindDerived(ClassTy &c);
390};
391
392/// Ranked MemRef Type subclass - MemRefType.
394 : public PyConcreteType<PyMemRefType, PyShapedType> {
395public:
399 static constexpr const char *pyClassName = "MemRefType";
400 static inline const MlirStringRef name = mlirMemRefTypeGetName();
402
403 static void bindDerived(ClassTy &c);
404};
405
406/// Unranked MemRef Type subclass - UnrankedMemRefType.
408 : public PyConcreteType<PyUnrankedMemRefType, PyShapedType> {
409public:
413 static constexpr const char *pyClassName = "UnrankedMemRefType";
416
417 static void bindDerived(ClassTy &c);
418};
419
420/// Tuple Type subclass - TupleType.
422 : public PyConcreteType<PyTupleType> {
423public:
427 static constexpr const char *pyClassName = "TupleType";
428 static inline const MlirStringRef name = mlirTupleTypeGetName();
430
431 static void bindDerived(ClassTy &c);
432};
433
434/// Function type.
436 : public PyConcreteType<PyFunctionType> {
437public:
441 static constexpr const char *pyClassName = "FunctionType";
444
445 static void bindDerived(ClassTy &c);
446};
447
448/// Opaque Type subclass - OpaqueType.
450 : public PyConcreteType<PyOpaqueType> {
451public:
455 static constexpr const char *pyClassName = "OpaqueType";
456 static inline const MlirStringRef name = mlirOpaqueTypeGetName();
458
459 static void bindDerived(ClassTy &c);
460};
461
463 : public PyConcreteType<PyDynamicType> {
464public:
466 static constexpr const char *pyClassName = "DynamicType";
468
469 static void bindDerived(ClassTy &c);
470};
471
472MLIR_PYTHON_API_EXPORTED void populateIRTypes(nanobind::module_ &m);
473} // namespace MLIR_BINDINGS_PYTHON_DOMAIN
474} // namespace python
475} // namespace mlir
476
477#endif // MLIR_BINDINGS_PYTHON_IRTYPES_H
Used in function arguments when None should resolve to the current context manager set instance.
Definition IRCore.h:541
Used in function arguments when None should resolve to the current context manager set instance.
Definition IRCore.h:291
Floating Point Type subclass - BF16Type.
Definition IRTypes.h:229
static constexpr IsAFunctionTy isaFunction
Definition IRTypes.h:231
static constexpr GetTypeIDFunctionTy getTypeIdFunction
Definition IRTypes.h:232
Complex Type subclass - ComplexType.
Definition IRTypes.h:312
static constexpr GetTypeIDFunctionTy getTypeIdFunction
Definition IRTypes.h:315
Floating Point Type subclass - F16Type.
Definition IRTypes.h:243
static constexpr GetTypeIDFunctionTy getTypeIdFunction
Definition IRTypes.h:246
static constexpr IsAFunctionTy isaFunction
Definition IRTypes.h:245
static constexpr const char * pyClassName
Definition IRTypes.h:248
Floating Point Type subclass - F32Type.
Definition IRTypes.h:271
static constexpr const char * pyClassName
Definition IRTypes.h:276
static constexpr GetTypeIDFunctionTy getTypeIdFunction
Definition IRTypes.h:274
static constexpr IsAFunctionTy isaFunction
Definition IRTypes.h:273
Floating Point Type subclass - F64Type.
Definition IRTypes.h:285
static constexpr const char * pyClassName
Definition IRTypes.h:290
static constexpr GetTypeIDFunctionTy getTypeIdFunction
Definition IRTypes.h:288
static constexpr IsAFunctionTy isaFunction
Definition IRTypes.h:287
Floating Point Type subclass - Float4E2M1FNType.
Definition IRTypes.h:62
static constexpr GetTypeIDFunctionTy getTypeIdFunction
Definition IRTypes.h:65
Floating Point Type subclass - Float6E2M3FNType.
Definition IRTypes.h:76
static constexpr GetTypeIDFunctionTy getTypeIdFunction
Definition IRTypes.h:79
Floating Point Type subclass - Float6E3M2FNType.
Definition IRTypes.h:90
static constexpr GetTypeIDFunctionTy getTypeIdFunction
Definition IRTypes.h:93
Floating Point Type subclass - Float8E3M4Type.
Definition IRTypes.h:188
static constexpr GetTypeIDFunctionTy getTypeIdFunction
Definition IRTypes.h:191
Floating Point Type subclass - Float8E4M3B11FNUZ.
Definition IRTypes.h:160
Floating Point Type subclass - Float8E4M3FNType.
Definition IRTypes.h:104
static constexpr GetTypeIDFunctionTy getTypeIdFunction
Definition IRTypes.h:107
Floating Point Type subclass - Float8E4M3FNUZ.
Definition IRTypes.h:146
static constexpr GetTypeIDFunctionTy getTypeIdFunction
Definition IRTypes.h:149
Floating Point Type subclass - Float8E4M3Type.
Definition IRTypes.h:132
static constexpr GetTypeIDFunctionTy getTypeIdFunction
Definition IRTypes.h:135
Floating Point Type subclass - Float8E5M2FNUZ.
Definition IRTypes.h:174
static constexpr GetTypeIDFunctionTy getTypeIdFunction
Definition IRTypes.h:177
Floating Point Type subclass - Float8E5M2Type.
Definition IRTypes.h:118
static constexpr GetTypeIDFunctionTy getTypeIdFunction
Definition IRTypes.h:121
Floating Point Type subclass - Float8E5M3FNUType.
Definition IRTypes.h:216
static constexpr GetTypeIDFunctionTy getTypeIdFunction
Definition IRTypes.h:219
Floating Point Type subclass - Float8E8M0FNUType.
Definition IRTypes.h:202
static constexpr GetTypeIDFunctionTy getTypeIdFunction
Definition IRTypes.h:205
static constexpr IsAFunctionTy isaFunction
Definition IRTypes.h:53
static constexpr GetTypeIDFunctionTy getTypeIdFunction
Definition IRTypes.h:439
static constexpr GetTypeIDFunctionTy getTypeIdFunction
Definition IRTypes.h:41
static constexpr IsAFunctionTy isaFunction
Definition IRTypes.h:40
static constexpr GetTypeIDFunctionTy getTypeIdFunction
Definition IRTypes.h:25
Ranked MemRef Type subclass - MemRefType.
Definition IRTypes.h:394
static constexpr GetTypeIDFunctionTy getTypeIdFunction
Definition IRTypes.h:397
static constexpr GetTypeIDFunctionTy getTypeIdFunction
Definition IRTypes.h:301
static constexpr IsAFunctionTy isaFunction
Definition IRTypes.h:300
static constexpr GetTypeIDFunctionTy getTypeIdFunction
Definition IRTypes.h:453
Ranked Tensor Type subclass - RankedTensorType.
Definition IRTypes.h:366
static constexpr GetTypeIDFunctionTy getTypeIdFunction
Definition IRTypes.h:369
Shaped Type Interface - ShapedType.
Definition IRTypes.h:326
Floating Point Type subclass - TF32Type.
Definition IRTypes.h:257
static constexpr GetTypeIDFunctionTy getTypeIdFunction
Definition IRTypes.h:260
static constexpr IsAFunctionTy isaFunction
Definition IRTypes.h:259
static constexpr GetTypeIDFunctionTy getTypeIdFunction
Definition IRTypes.h:425
Wrapper around the generic MlirType.
Definition IRCore.h:891
Unranked MemRef Type subclass - UnrankedMemRefType.
Definition IRTypes.h:408
static constexpr GetTypeIDFunctionTy getTypeIdFunction
Definition IRTypes.h:411
Unranked Tensor Type subclass - UnrankedTensorType.
Definition IRTypes.h:380
static constexpr GetTypeIDFunctionTy getTypeIdFunction
Definition IRTypes.h:383
static constexpr GetTypeIDFunctionTy getTypeIdFunction
Definition IRTypes.h:343
MLIR_CAPI_EXPORTED MlirTypeID mlirFloat8E8M0FNUTypeGetTypeID(void)
Returns the typeID of an Float8E8M0FNU type.
MLIR_CAPI_EXPORTED MlirStringRef mlirF64TypeGetName(void)
MLIR_CAPI_EXPORTED bool mlirTypeIsAMemRef(MlirType type)
Checks whether the given type is a MemRef type.
MLIR_CAPI_EXPORTED MlirTypeID mlirFloat16TypeGetTypeID(void)
Returns the typeID of an Float16 type.
MLIR_CAPI_EXPORTED bool mlirTypeIsAInteger(MlirType type)
Checks whether the given type is an integer type.
MLIR_CAPI_EXPORTED MlirStringRef mlirUnrankedTensorTypeGetName(void)
MLIR_CAPI_EXPORTED MlirTypeID mlirFloat4E2M1FNTypeGetTypeID(void)
Returns the typeID of an Float4E2M1FN type.
MLIR_CAPI_EXPORTED MlirTypeID mlirFloatTF32TypeGetTypeID(void)
Returns the typeID of a TF32 type.
MLIR_CAPI_EXPORTED bool mlirTypeIsAFloat8E8M0FNU(MlirType type)
Checks whether the given type is an f8E8M0FNU type.
MLIR_CAPI_EXPORTED MlirTypeID mlirNoneTypeGetTypeID(void)
Returns the typeID of an None type.
MLIR_CAPI_EXPORTED MlirStringRef mlirMemRefTypeGetName(void)
MLIR_CAPI_EXPORTED MlirTypeID mlirFloat8E4M3FNUZTypeGetTypeID(void)
Returns the typeID of an Float8E4M3FNUZ type.
MLIR_CAPI_EXPORTED MlirStringRef mlirFloat8E4M3B11FNUZTypeGetName(void)
MLIR_CAPI_EXPORTED bool mlirTypeIsAVector(MlirType type)
Checks whether the given type is a Vector type.
MLIR_CAPI_EXPORTED MlirStringRef mlirBF16TypeGetName(void)
MLIR_CAPI_EXPORTED MlirTypeID mlirVectorTypeGetTypeID(void)
Returns the typeID of an Vector type.
MLIR_CAPI_EXPORTED bool mlirTypeIsAFloat6E3M2FN(MlirType type)
Checks whether the given type is an f6E3M2FN type.
MLIR_CAPI_EXPORTED bool mlirTypeIsAFunction(MlirType type)
Checks whether the given type is a function type.
MLIR_CAPI_EXPORTED MlirStringRef mlirFloat8E4M3FNTypeGetName(void)
MLIR_CAPI_EXPORTED bool mlirTypeIsAFloat8E3M4(MlirType type)
Checks whether the given type is an f8E3M4 type.
MLIR_CAPI_EXPORTED MlirStringRef mlirF16TypeGetName(void)
MLIR_CAPI_EXPORTED MlirTypeID mlirUnrankedTensorTypeGetTypeID(void)
Returns the typeID of an UnrankedTensor type.
MLIR_CAPI_EXPORTED MlirStringRef mlirIntegerTypeGetName(void)
MLIR_CAPI_EXPORTED MlirStringRef mlirNoneTypeGetName(void)
MLIR_CAPI_EXPORTED MlirStringRef mlirUnrankedMemRefTypeGetName(void)
MLIR_CAPI_EXPORTED MlirTypeID mlirMemRefTypeGetTypeID(void)
Returns the typeID of an MemRef type.
MLIR_CAPI_EXPORTED bool mlirTypeIsAFloat8E4M3(MlirType type)
Checks whether the given type is an f8E4M3 type.
MLIR_CAPI_EXPORTED bool mlirTypeIsAFloat8E5M2(MlirType type)
Checks whether the given type is an f8E5M2 type.
MLIR_CAPI_EXPORTED MlirStringRef mlirFloat6E3M2FNTypeGetName(void)
MLIR_CAPI_EXPORTED bool mlirTypeIsAF64(MlirType type)
Checks whether the given type is an f64 type.
MLIR_CAPI_EXPORTED bool mlirTypeIsAF16(MlirType type)
Checks whether the given type is an f16 type.
MLIR_CAPI_EXPORTED MlirStringRef mlirOpaqueTypeGetName(void)
MLIR_CAPI_EXPORTED MlirStringRef mlirF32TypeGetName(void)
MLIR_CAPI_EXPORTED bool mlirTypeIsAFloat8E5M3FNU(MlirType type)
Checks whether the given type is an f8E5M3FNU type.
MLIR_CAPI_EXPORTED MlirTypeID mlirFloat8E5M2FNUZTypeGetTypeID(void)
Returns the typeID of an Float8E5M2FNUZ type.
MLIR_CAPI_EXPORTED MlirTypeID mlirFloat64TypeGetTypeID(void)
Returns the typeID of an Float64 type.
MLIR_CAPI_EXPORTED bool mlirTypeIsATuple(MlirType type)
Checks whether the given type is a tuple type.
MLIR_CAPI_EXPORTED MlirStringRef mlirFloat8E5M2TypeGetName(void)
MLIR_CAPI_EXPORTED MlirStringRef mlirComplexTypeGetName(void)
MLIR_CAPI_EXPORTED MlirTypeID mlirFloat8E5M2TypeGetTypeID(void)
Returns the typeID of an Float8E5M2 type.
MLIR_CAPI_EXPORTED MlirStringRef mlirRankedTensorTypeGetName(void)
MLIR_CAPI_EXPORTED MlirStringRef mlirTupleTypeGetName(void)
MLIR_CAPI_EXPORTED MlirTypeID mlirTupleTypeGetTypeID(void)
Returns the typeID of an Tuple type.
MLIR_CAPI_EXPORTED MlirStringRef mlirFloat4E2M1FNTypeGetName(void)
MLIR_CAPI_EXPORTED bool mlirTypeIsAFloat8E4M3FN(MlirType type)
Checks whether the given type is an f8E4M3FN type.
MLIR_CAPI_EXPORTED MlirTypeID mlirFloat8E4M3FNTypeGetTypeID(void)
Returns the typeID of an Float8E4M3FN type.
MLIR_CAPI_EXPORTED bool mlirTypeIsAOpaque(MlirType type)
Checks whether the given type is an opaque type.
MLIR_CAPI_EXPORTED MlirTypeID mlirFloat6E2M3FNTypeGetTypeID(void)
Returns the typeID of an Float6E2M3FN type.
MLIR_CAPI_EXPORTED bool mlirTypeIsAFloat6E2M3FN(MlirType type)
Checks whether the given type is an f6E2M3FN type.
MLIR_CAPI_EXPORTED MlirStringRef mlirVectorTypeGetName(void)
MLIR_CAPI_EXPORTED MlirTypeID mlirFloat8E3M4TypeGetTypeID(void)
Returns the typeID of an Float8E3M4 type.
MLIR_CAPI_EXPORTED bool mlirTypeIsAFloat(MlirType type)
Checks whether the given type is a floating-point type.
MLIR_CAPI_EXPORTED bool mlirTypeIsAFloat8E4M3FNUZ(MlirType type)
Checks whether the given type is an f8E4M3FNUZ type.
MLIR_CAPI_EXPORTED MlirTypeID mlirBFloat16TypeGetTypeID(void)
Returns the typeID of an BFloat16 type.
MLIR_CAPI_EXPORTED bool mlirTypeIsAF32(MlirType type)
Checks whether the given type is an f32 type.
MLIR_CAPI_EXPORTED MlirTypeID mlirRankedTensorTypeGetTypeID(void)
Returns the typeID of an RankedTensor type.
MLIR_CAPI_EXPORTED MlirStringRef mlirTF32TypeGetName(void)
MLIR_CAPI_EXPORTED MlirStringRef mlirFloat8E4M3FNUZTypeGetName(void)
MLIR_CAPI_EXPORTED MlirStringRef mlirFloat8E4M3TypeGetName(void)
MLIR_CAPI_EXPORTED MlirStringRef mlirFloat8E5M2FNUZTypeGetName(void)
MLIR_CAPI_EXPORTED bool mlirTypeIsARankedTensor(MlirType type)
Checks whether the given type is a ranked tensor type.
MLIR_CAPI_EXPORTED bool mlirTypeIsATF32(MlirType type)
Checks whether the given type is an TF32 type.
MLIR_CAPI_EXPORTED MlirTypeID mlirComplexTypeGetTypeID(void)
Returns the typeID of an Complex type.
MLIR_CAPI_EXPORTED MlirStringRef mlirIndexTypeGetName(void)
MLIR_CAPI_EXPORTED MlirTypeID mlirIntegerTypeGetTypeID(void)
Returns the typeID of an Integer type.
MLIR_CAPI_EXPORTED MlirTypeID mlirFloat8E5M3FNUTypeGetTypeID(void)
Returns the typeID of a Float8E5M3FNU type.
MLIR_CAPI_EXPORTED MlirTypeID mlirOpaqueTypeGetTypeID(void)
Returns the typeID of an Opaque type.
MLIR_CAPI_EXPORTED MlirTypeID mlirIndexTypeGetTypeID(void)
Returns the typeID of an Index type.
MLIR_CAPI_EXPORTED MlirStringRef mlirFloat8E8M0FNUTypeGetName(void)
MLIR_CAPI_EXPORTED bool mlirTypeIsAComplex(MlirType type)
Checks whether the given type is a Complex type.
MLIR_CAPI_EXPORTED MlirTypeID mlirUnrankedMemRefTypeGetTypeID(void)
Returns the typeID of an UnrankedMemRef type.
MLIR_CAPI_EXPORTED bool mlirTypeIsABF16(MlirType type)
Checks whether the given type is a bf16 type.
MLIR_CAPI_EXPORTED bool mlirTypeIsAIndex(MlirType type)
Checks whether the given type is an index type.
MLIR_CAPI_EXPORTED bool mlirTypeIsAFloat8E4M3B11FNUZ(MlirType type)
Checks whether the given type is an f8E4M3B11FNUZ type.
MLIR_CAPI_EXPORTED MlirStringRef mlirFloat6E2M3FNTypeGetName(void)
MLIR_CAPI_EXPORTED bool mlirTypeIsAUnrankedMemRef(MlirType type)
Checks whether the given type is an UnrankedMemRef type.
MLIR_CAPI_EXPORTED bool mlirTypeIsAFloat8E5M2FNUZ(MlirType type)
Checks whether the given type is an f8E5M2FNUZ type.
MLIR_CAPI_EXPORTED MlirStringRef mlirFloat8E3M4TypeGetName(void)
MLIR_CAPI_EXPORTED bool mlirTypeIsAUnrankedTensor(MlirType type)
Checks whether the given type is an unranked tensor type.
MLIR_CAPI_EXPORTED MlirTypeID mlirFloat32TypeGetTypeID(void)
Returns the typeID of an Float32 type.
MLIR_CAPI_EXPORTED MlirStringRef mlirFunctionTypeGetName(void)
MLIR_CAPI_EXPORTED MlirTypeID mlirFloat8E4M3TypeGetTypeID(void)
Returns the typeID of an Float8E4M3 type.
MLIR_CAPI_EXPORTED bool mlirTypeIsAFloat4E2M1FN(MlirType type)
Checks whether the given type is an f4E2M1FN type.
MLIR_CAPI_EXPORTED bool mlirTypeIsANone(MlirType type)
Checks whether the given type is a None type.
MLIR_CAPI_EXPORTED MlirTypeID mlirFunctionTypeGetTypeID(void)
Returns the typeID of an Function type.
MLIR_CAPI_EXPORTED MlirTypeID mlirFloat6E3M2FNTypeGetTypeID(void)
Returns the typeID of an Float6E3M2FN type.
MLIR_CAPI_EXPORTED MlirTypeID mlirFloat8E4M3B11FNUZTypeGetTypeID(void)
Returns the typeID of an Float8E4M3B11FNUZ type.
MLIR_CAPI_EXPORTED bool mlirTypeIsADynamicType(MlirType type)
Check if the given type is a dynamic type.
#define MLIR_PYTHON_API_EXPORTED
Definition Support.h:49
MLIR_PYTHON_API_EXPORTED void populateIRTypes(nanobind::module_ &m)
MLIR_PYTHON_API_EXPORTED int mlirTypeIsAIntegerOrFloat(MlirType type)
Definition IRTypes.cpp:31
Include the generated interface declarations.
A pointer to a sized fragment of a string, not necessarily null-terminated.
Definition Support.h:78