Loading [MathJax]/extensions/tex2jax.js
CIRCT 21.0.0git
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
RTGTestModule.cpp
Go to the documentation of this file.
1//===- RTGTestModule.cpp - RTGTest API nanobind module --------------------===//
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#include "CIRCTModules.h"
10
12
13#include "mlir/Bindings/Python/NanobindAdaptors.h"
14
15#include <nanobind/nanobind.h>
16namespace nb = nanobind;
17
18using namespace circt;
19using namespace mlir::python::nanobind_adaptors;
20
21/// Populate the rtgtest python module.
22void circt::python::populateDialectRTGTestSubmodule(nb::module_ &m) {
23 m.doc() = "RTGTest dialect Python native extension";
24
25 mlir_type_subclass(m, "CPUType", rtgtestTypeIsACPU)
26 .def_classmethod(
27 "get",
28 [](nb::object cls, MlirContext ctxt) {
29 return cls(rtgtestCPUTypeGet(ctxt));
30 },
31 nb::arg("self"), nb::arg("ctxt") = nullptr);
32
33 mlir_type_subclass(m, "IntegerRegisterType", rtgtestTypeIsAIntegerRegister)
34 .def_classmethod(
35 "get",
36 [](nb::object cls, MlirContext ctxt) {
37 return cls(rtgtestIntegerRegisterTypeGet(ctxt));
38 },
39 nb::arg("self"), nb::arg("ctxt") = nullptr);
40
41 mlir_type_subclass(m, "Imm5Type", rtgtestTypeIsAImm5)
42 .def_classmethod(
43 "get",
44 [](nb::object cls, MlirContext ctxt) {
45 return cls(rtgtestImm5TypeGet(ctxt));
46 },
47 nb::arg("self"), nb::arg("ctxt") = nullptr);
48
49 mlir_type_subclass(m, "Imm12Type", rtgtestTypeIsAImm12)
50 .def_classmethod(
51 "get",
52 [](nb::object cls, MlirContext ctxt) {
53 return cls(rtgtestImm12TypeGet(ctxt));
54 },
55 nb::arg("self"), nb::arg("ctxt") = nullptr);
56
57 mlir_type_subclass(m, "Imm13Type", rtgtestTypeIsAImm13)
58 .def_classmethod(
59 "get",
60 [](nb::object cls, MlirContext ctxt) {
61 return cls(rtgtestImm13TypeGet(ctxt));
62 },
63 nb::arg("self"), nb::arg("ctxt") = nullptr);
64
65 mlir_type_subclass(m, "Imm21Type", rtgtestTypeIsAImm21)
66 .def_classmethod(
67 "get",
68 [](nb::object cls, MlirContext ctxt) {
69 return cls(rtgtestImm21TypeGet(ctxt));
70 },
71 nb::arg("self"), nb::arg("ctxt") = nullptr);
72
73 mlir_type_subclass(m, "Imm32Type", rtgtestTypeIsAImm32)
74 .def_classmethod(
75 "get",
76 [](nb::object cls, MlirContext ctxt) {
77 return cls(rtgtestImm32TypeGet(ctxt));
78 },
79 nb::arg("self"), nb::arg("ctxt") = nullptr);
80
81 mlir_attribute_subclass(m, "CPUAttr", rtgtestAttrIsACPU)
82 .def_classmethod(
83 "get",
84 [](nb::object cls, unsigned id, MlirContext ctxt) {
85 return cls(rtgtestCPUAttrGet(ctxt, id));
86 },
87 nb::arg("self"), nb::arg("id"), nb::arg("ctxt") = nullptr)
88 .def_property_readonly(
89 "id", [](MlirAttribute self) { return rtgtestCPUAttrGetId(self); });
90
91 mlir_attribute_subclass(m, "RegZeroAttr", rtgtestAttrIsARegZero)
92 .def_classmethod(
93 "get",
94 [](nb::object cls, MlirContext ctxt) {
95 return cls(rtgtestRegZeroAttrGet(ctxt));
96 },
97 nb::arg("self"), nb::arg("ctxt") = nullptr);
98
99 mlir_attribute_subclass(m, "RegRaAttr", rtgtestAttrIsARegRa)
100 .def_classmethod(
101 "get",
102 [](nb::object cls, MlirContext ctxt) {
103 return cls(rtgtestRegRaAttrGet(ctxt));
104 },
105 nb::arg("self"), nb::arg("ctxt") = nullptr);
106
107 mlir_attribute_subclass(m, "RegSpAttr", rtgtestAttrIsARegSp)
108 .def_classmethod(
109 "get",
110 [](nb::object cls, MlirContext ctxt) {
111 return cls(rtgtestRegSpAttrGet(ctxt));
112 },
113 nb::arg("self"), nb::arg("ctxt") = nullptr);
114
115 mlir_attribute_subclass(m, "RegGpAttr", rtgtestAttrIsARegGp)
116 .def_classmethod(
117 "get",
118 [](nb::object cls, MlirContext ctxt) {
119 return cls(rtgtestRegGpAttrGet(ctxt));
120 },
121 nb::arg("self"), nb::arg("ctxt") = nullptr);
122
123 mlir_attribute_subclass(m, "RegTpAttr", rtgtestAttrIsARegTp)
124 .def_classmethod(
125 "get",
126 [](nb::object cls, MlirContext ctxt) {
127 return cls(rtgtestRegTpAttrGet(ctxt));
128 },
129 nb::arg("self"), nb::arg("ctxt") = nullptr);
130
131 mlir_attribute_subclass(m, "RegT0Attr", rtgtestAttrIsARegT0)
132 .def_classmethod(
133 "get",
134 [](nb::object cls, MlirContext ctxt) {
135 return cls(rtgtestRegT0AttrGet(ctxt));
136 },
137 nb::arg("self"), nb::arg("ctxt") = nullptr);
138
139 mlir_attribute_subclass(m, "RegT1Attr", rtgtestAttrIsARegT1)
140 .def_classmethod(
141 "get",
142 [](nb::object cls, MlirContext ctxt) {
143 return cls(rtgtestRegT1AttrGet(ctxt));
144 },
145 nb::arg("self"), nb::arg("ctxt") = nullptr);
146
147 mlir_attribute_subclass(m, "RegT2Attr", rtgtestAttrIsARegT2)
148 .def_classmethod(
149 "get",
150 [](nb::object cls, MlirContext ctxt) {
151 return cls(rtgtestRegT2AttrGet(ctxt));
152 },
153 nb::arg("self"), nb::arg("ctxt") = nullptr);
154
155 mlir_attribute_subclass(m, "RegS0Attr", rtgtestAttrIsARegS0)
156 .def_classmethod(
157 "get",
158 [](nb::object cls, MlirContext ctxt) {
159 return cls(rtgtestRegS0AttrGet(ctxt));
160 },
161 nb::arg("self"), nb::arg("ctxt") = nullptr);
162
163 mlir_attribute_subclass(m, "RegS1Attr", rtgtestAttrIsARegS1)
164 .def_classmethod(
165 "get",
166 [](nb::object cls, MlirContext ctxt) {
167 return cls(rtgtestRegS1AttrGet(ctxt));
168 },
169 nb::arg("self"), nb::arg("ctxt") = nullptr);
170
171 mlir_attribute_subclass(m, "RegA0Attr", rtgtestAttrIsARegA0)
172 .def_classmethod(
173 "get",
174 [](nb::object cls, MlirContext ctxt) {
175 return cls(rtgtestRegA0AttrGet(ctxt));
176 },
177 nb::arg("self"), nb::arg("ctxt") = nullptr);
178
179 mlir_attribute_subclass(m, "RegA1Attr", rtgtestAttrIsARegA1)
180 .def_classmethod(
181 "get",
182 [](nb::object cls, MlirContext ctxt) {
183 return cls(rtgtestRegA1AttrGet(ctxt));
184 },
185 nb::arg("self"), nb::arg("ctxt") = nullptr);
186
187 mlir_attribute_subclass(m, "RegA2Attr", rtgtestAttrIsARegA2)
188 .def_classmethod(
189 "get",
190 [](nb::object cls, MlirContext ctxt) {
191 return cls(rtgtestRegA2AttrGet(ctxt));
192 },
193 nb::arg("self"), nb::arg("ctxt") = nullptr);
194
195 mlir_attribute_subclass(m, "RegA3Attr", rtgtestAttrIsARegA3)
196 .def_classmethod(
197 "get",
198 [](nb::object cls, MlirContext ctxt) {
199 return cls(rtgtestRegA3AttrGet(ctxt));
200 },
201 nb::arg("self"), nb::arg("ctxt") = nullptr);
202
203 mlir_attribute_subclass(m, "RegA4Attr", rtgtestAttrIsARegA4)
204 .def_classmethod(
205 "get",
206 [](nb::object cls, MlirContext ctxt) {
207 return cls(rtgtestRegA4AttrGet(ctxt));
208 },
209 nb::arg("self"), nb::arg("ctxt") = nullptr);
210
211 mlir_attribute_subclass(m, "RegA5Attr", rtgtestAttrIsARegA5)
212 .def_classmethod(
213 "get",
214 [](nb::object cls, MlirContext ctxt) {
215 return cls(rtgtestRegA5AttrGet(ctxt));
216 },
217 nb::arg("self"), nb::arg("ctxt") = nullptr);
218
219 mlir_attribute_subclass(m, "RegA6Attr", rtgtestAttrIsARegA6)
220 .def_classmethod(
221 "get",
222 [](nb::object cls, MlirContext ctxt) {
223 return cls(rtgtestRegA6AttrGet(ctxt));
224 },
225 nb::arg("self"), nb::arg("ctxt") = nullptr);
226
227 mlir_attribute_subclass(m, "RegA7Attr", rtgtestAttrIsARegA7)
228 .def_classmethod(
229 "get",
230 [](nb::object cls, MlirContext ctxt) {
231 return cls(rtgtestRegA7AttrGet(ctxt));
232 },
233 nb::arg("self"), nb::arg("ctxt") = nullptr);
234
235 mlir_attribute_subclass(m, "RegS2Attr", rtgtestAttrIsARegS2)
236 .def_classmethod(
237 "get",
238 [](nb::object cls, MlirContext ctxt) {
239 return cls(rtgtestRegS2AttrGet(ctxt));
240 },
241 nb::arg("self"), nb::arg("ctxt") = nullptr);
242
243 mlir_attribute_subclass(m, "RegS3Attr", rtgtestAttrIsARegS3)
244 .def_classmethod(
245 "get",
246 [](nb::object cls, MlirContext ctxt) {
247 return cls(rtgtestRegS3AttrGet(ctxt));
248 },
249 nb::arg("self"), nb::arg("ctxt") = nullptr);
250
251 mlir_attribute_subclass(m, "RegS4Attr", rtgtestAttrIsARegS4)
252 .def_classmethod(
253 "get",
254 [](nb::object cls, MlirContext ctxt) {
255 return cls(rtgtestRegS4AttrGet(ctxt));
256 },
257 nb::arg("self"), nb::arg("ctxt") = nullptr);
258
259 mlir_attribute_subclass(m, "RegS5Attr", rtgtestAttrIsARegS5)
260 .def_classmethod(
261 "get",
262 [](nb::object cls, MlirContext ctxt) {
263 return cls(rtgtestRegS5AttrGet(ctxt));
264 },
265 nb::arg("self"), nb::arg("ctxt") = nullptr);
266
267 mlir_attribute_subclass(m, "RegS6Attr", rtgtestAttrIsARegS6)
268 .def_classmethod(
269 "get",
270 [](nb::object cls, MlirContext ctxt) {
271 return cls(rtgtestRegS6AttrGet(ctxt));
272 },
273 nb::arg("self"), nb::arg("ctxt") = nullptr);
274
275 mlir_attribute_subclass(m, "RegS7Attr", rtgtestAttrIsARegS7)
276 .def_classmethod(
277 "get",
278 [](nb::object cls, MlirContext ctxt) {
279 return cls(rtgtestRegS7AttrGet(ctxt));
280 },
281 nb::arg("self"), nb::arg("ctxt") = nullptr);
282
283 mlir_attribute_subclass(m, "RegS8Attr", rtgtestAttrIsARegS8)
284 .def_classmethod(
285 "get",
286 [](nb::object cls, MlirContext ctxt) {
287 return cls(rtgtestRegS8AttrGet(ctxt));
288 },
289 nb::arg("self"), nb::arg("ctxt") = nullptr);
290
291 mlir_attribute_subclass(m, "RegS9Attr", rtgtestAttrIsARegS9)
292 .def_classmethod(
293 "get",
294 [](nb::object cls, MlirContext ctxt) {
295 return cls(rtgtestRegS9AttrGet(ctxt));
296 },
297 nb::arg("self"), nb::arg("ctxt") = nullptr);
298
299 mlir_attribute_subclass(m, "RegS10Attr", rtgtestAttrIsARegS10)
300 .def_classmethod(
301 "get",
302 [](nb::object cls, MlirContext ctxt) {
303 return cls(rtgtestRegS10AttrGet(ctxt));
304 },
305 nb::arg("self"), nb::arg("ctxt") = nullptr);
306
307 mlir_attribute_subclass(m, "RegS11Attr", rtgtestAttrIsARegS11)
308 .def_classmethod(
309 "get",
310 [](nb::object cls, MlirContext ctxt) {
311 return cls(rtgtestRegS11AttrGet(ctxt));
312 },
313 nb::arg("self"), nb::arg("ctxt") = nullptr);
314
315 mlir_attribute_subclass(m, "RegT3Attr", rtgtestAttrIsARegT3)
316 .def_classmethod(
317 "get",
318 [](nb::object cls, MlirContext ctxt) {
319 return cls(rtgtestRegT3AttrGet(ctxt));
320 },
321 nb::arg("self"), nb::arg("ctxt") = nullptr);
322
323 mlir_attribute_subclass(m, "RegT4Attr", rtgtestAttrIsARegT4)
324 .def_classmethod(
325 "get",
326 [](nb::object cls, MlirContext ctxt) {
327 return cls(rtgtestRegT4AttrGet(ctxt));
328 },
329 nb::arg("self"), nb::arg("ctxt") = nullptr);
330
331 mlir_attribute_subclass(m, "RegT5Attr", rtgtestAttrIsARegT5)
332 .def_classmethod(
333 "get",
334 [](nb::object cls, MlirContext ctxt) {
335 return cls(rtgtestRegT5AttrGet(ctxt));
336 },
337 nb::arg("self"), nb::arg("ctxt") = nullptr);
338
339 mlir_attribute_subclass(m, "RegT6Attr", rtgtestAttrIsARegT6)
340 .def_classmethod(
341 "get",
342 [](nb::object cls, MlirContext ctxt) {
343 return cls(rtgtestRegT6AttrGet(ctxt));
344 },
345 nb::arg("self"), nb::arg("ctxt") = nullptr);
346
347 mlir_attribute_subclass(m, "Imm5Attr", rtgtestAttrIsAImm5)
348 .def_classmethod(
349 "get",
350 [](nb::object cls, unsigned value, MlirContext ctxt) {
351 return cls(rtgtestImm5AttrGet(ctxt, value));
352 },
353 nb::arg("self"), nb::arg("value"), nb::arg("ctxt") = nullptr)
354 .def_property_readonly("value", [](MlirAttribute self) {
355 return rtgtestImm5AttrGetValue(self);
356 });
357
358 mlir_attribute_subclass(m, "Imm12Attr", rtgtestAttrIsAImm12)
359 .def_classmethod(
360 "get",
361 [](nb::object cls, unsigned value, MlirContext ctxt) {
362 return cls(rtgtestImm12AttrGet(ctxt, value));
363 },
364 nb::arg("self"), nb::arg("value"), nb::arg("ctxt") = nullptr)
365 .def_property_readonly("value", [](MlirAttribute self) {
366 return rtgtestImm12AttrGetValue(self);
367 });
368
369 mlir_attribute_subclass(m, "Imm13Attr", rtgtestAttrIsAImm13)
370 .def_classmethod(
371 "get",
372 [](nb::object cls, unsigned value, MlirContext ctxt) {
373 return cls(rtgtestImm13AttrGet(ctxt, value));
374 },
375 nb::arg("self"), nb::arg("value"), nb::arg("ctxt") = nullptr)
376 .def_property_readonly("value", [](MlirAttribute self) {
377 return rtgtestImm13AttrGetValue(self);
378 });
379
380 mlir_attribute_subclass(m, "Imm21Attr", rtgtestAttrIsAImm21)
381 .def_classmethod(
382 "get",
383 [](nb::object cls, unsigned value, MlirContext ctxt) {
384 return cls(rtgtestImm21AttrGet(ctxt, value));
385 },
386 nb::arg("self"), nb::arg("value"), nb::arg("ctxt") = nullptr)
387 .def_property_readonly("value", [](MlirAttribute self) {
388 return rtgtestImm21AttrGetValue(self);
389 });
390
391 mlir_attribute_subclass(m, "Imm32Attr", rtgtestAttrIsAImm32)
392 .def_classmethod(
393 "get",
394 [](nb::object cls, unsigned value, MlirContext ctxt) {
395 return cls(rtgtestImm32AttrGet(ctxt, value));
396 },
397 nb::arg("self"), nb::arg("value"), nb::arg("ctxt") = nullptr)
398 .def_property_readonly("value", [](MlirAttribute self) {
399 return rtgtestImm32AttrGetValue(self);
400 });
401}
MLIR_CAPI_EXPORTED MlirAttribute rtgtestRegGpAttrGet(MlirContext ctxt)
Creates an RTGTest RegGp attribute in the context.
Definition RTGTest.cpp:123
MLIR_CAPI_EXPORTED MlirType rtgtestImm13TypeGet(MlirContext ctxt)
Creates an RTGTest Imm13 type in the context.
Definition RTGTest.cpp:60
MLIR_CAPI_EXPORTED MlirAttribute rtgtestRegT5AttrGet(MlirContext ctxt)
Creates an RTGTest RegT5 attribute in the context.
Definition RTGTest.cpp:339
MLIR_CAPI_EXPORTED MlirAttribute rtgtestRegA2AttrGet(MlirContext ctxt)
Creates an RTGTest RegA2 attribute in the context.
Definition RTGTest.cpp:195
MLIR_CAPI_EXPORTED bool rtgtestTypeIsAIntegerRegister(MlirType type)
If the type is an RTGTest IntegerRegisterType.
Definition RTGTest.cpp:35
MLIR_CAPI_EXPORTED MlirType rtgtestImm32TypeGet(MlirContext ctxt)
Creates an RTGTest Imm32 type in the context.
Definition RTGTest.cpp:72
MLIR_CAPI_EXPORTED MlirAttribute rtgtestRegT2AttrGet(MlirContext ctxt)
Creates an RTGTest RegT2 attribute in the context.
Definition RTGTest.cpp:155
MLIR_CAPI_EXPORTED MlirAttribute rtgtestRegS10AttrGet(MlirContext ctxt)
Creates an RTGTest RegS10 attribute in the context.
Definition RTGTest.cpp:307
MLIR_CAPI_EXPORTED MlirAttribute rtgtestRegT4AttrGet(MlirContext ctxt)
Creates an RTGTest RegT4 attribute in the context.
Definition RTGTest.cpp:331
MLIR_CAPI_EXPORTED MlirAttribute rtgtestRegS11AttrGet(MlirContext ctxt)
Creates an RTGTest RegS11 attribute in the context.
Definition RTGTest.cpp:315
MLIR_CAPI_EXPORTED bool rtgtestAttrIsARegS4(MlirAttribute attr)
If the attribute is an RTGTest RegS4Attr.
Definition RTGTest.cpp:255
MLIR_CAPI_EXPORTED MlirType rtgtestImm12TypeGet(MlirContext ctxt)
Creates an RTGTest Imm12 type in the context.
Definition RTGTest.cpp:54
MLIR_CAPI_EXPORTED bool rtgtestAttrIsARegT1(MlirAttribute attr)
If the attribute is an RTGTest RegT1Attr.
Definition RTGTest.cpp:143
MLIR_CAPI_EXPORTED bool rtgtestTypeIsAImm5(MlirType type)
If the type is an RTGTest Imm5Type.
Definition RTGTest.cpp:46
MLIR_CAPI_EXPORTED bool rtgtestTypeIsAImm13(MlirType type)
If the type is an RTGTest Imm13Type.
Definition RTGTest.cpp:58
MLIR_CAPI_EXPORTED MlirAttribute rtgtestRegS0AttrGet(MlirContext ctxt)
Creates an RTGTest RegS0 attribute in the context.
Definition RTGTest.cpp:163
MLIR_CAPI_EXPORTED unsigned rtgtestImm12AttrGetValue(MlirAttribute attr)
Returns the value represented by the Imm12 attribute.
Definition RTGTest.cpp:374
MLIR_CAPI_EXPORTED MlirAttribute rtgtestRegSpAttrGet(MlirContext ctxt)
Creates an RTGTest RegSp attribute in the context.
Definition RTGTest.cpp:115
MLIR_CAPI_EXPORTED bool rtgtestAttrIsAImm12(MlirAttribute attr)
If the attribute is an RTGTest Imm12Attr.
Definition RTGTest.cpp:366
MLIR_CAPI_EXPORTED MlirAttribute rtgtestImm13AttrGet(MlirContext ctxt, unsigned value)
Creates an RTGTest Imm13 attribute in the context.
Definition RTGTest.cpp:382
MLIR_CAPI_EXPORTED bool rtgtestAttrIsARegS8(MlirAttribute attr)
If the attribute is an RTGTest RegS8Attr.
Definition RTGTest.cpp:287
MLIR_CAPI_EXPORTED bool rtgtestAttrIsACPU(MlirAttribute attr)
If the type is an RTGTest CPUAttr.
Definition RTGTest.cpp:80
MLIR_CAPI_EXPORTED bool rtgtestAttrIsARegA0(MlirAttribute attr)
If the attribute is an RTGTest RegA0Attr.
Definition RTGTest.cpp:175
MLIR_CAPI_EXPORTED bool rtgtestAttrIsARegS10(MlirAttribute attr)
If the attribute is an RTGTest RegS10Attr.
Definition RTGTest.cpp:303
MLIR_CAPI_EXPORTED bool rtgtestAttrIsARegT3(MlirAttribute attr)
If the attribute is an RTGTest RegT3Attr.
Definition RTGTest.cpp:319
MLIR_CAPI_EXPORTED bool rtgtestAttrIsARegA3(MlirAttribute attr)
If the attribute is an RTGTest RegA3Attr.
Definition RTGTest.cpp:199
MLIR_CAPI_EXPORTED MlirAttribute rtgtestRegT0AttrGet(MlirContext ctxt)
Creates an RTGTest RegT0 attribute in the context.
Definition RTGTest.cpp:139
MLIR_CAPI_EXPORTED MlirAttribute rtgtestRegS2AttrGet(MlirContext ctxt)
Creates an RTGTest RegS2 attribute in the context.
Definition RTGTest.cpp:243
MLIR_CAPI_EXPORTED bool rtgtestAttrIsARegS0(MlirAttribute attr)
If the attribute is an RTGTest RegS0Attr.
Definition RTGTest.cpp:159
MLIR_CAPI_EXPORTED bool rtgtestAttrIsARegS3(MlirAttribute attr)
If the attribute is an RTGTest RegS3Attr.
Definition RTGTest.cpp:247
MLIR_CAPI_EXPORTED MlirAttribute rtgtestImm32AttrGet(MlirContext ctxt, unsigned value)
Creates an RTGTest Imm32 attribute in the context.
Definition RTGTest.cpp:406
MLIR_CAPI_EXPORTED bool rtgtestAttrIsARegA7(MlirAttribute attr)
If the attribute is an RTGTest RegA7Attr.
Definition RTGTest.cpp:231
MLIR_CAPI_EXPORTED MlirType rtgtestImm21TypeGet(MlirContext ctxt)
Creates an RTGTest Imm21 type in the context.
Definition RTGTest.cpp:66
MLIR_CAPI_EXPORTED bool rtgtestAttrIsARegGp(MlirAttribute attr)
If the attribute is an RTGTest RegGpAttr.
Definition RTGTest.cpp:119
MLIR_CAPI_EXPORTED unsigned rtgtestImm32AttrGetValue(MlirAttribute attr)
Returns the value represented by the Imm32 attribute.
Definition RTGTest.cpp:410
MLIR_CAPI_EXPORTED bool rtgtestTypeIsAImm21(MlirType type)
If the type is an RTGTest Imm21Type.
Definition RTGTest.cpp:64
MLIR_CAPI_EXPORTED MlirAttribute rtgtestRegS1AttrGet(MlirContext ctxt)
Creates an RTGTest RegS1 attribute in the context.
Definition RTGTest.cpp:171
MLIR_CAPI_EXPORTED bool rtgtestAttrIsARegA1(MlirAttribute attr)
If the attribute is an RTGTest RegA1Attr.
Definition RTGTest.cpp:183
MLIR_CAPI_EXPORTED unsigned rtgtestCPUAttrGetId(MlirAttribute attr)
Returns the core ID represented by the CPU attribute.
Definition RTGTest.cpp:88
MLIR_CAPI_EXPORTED MlirAttribute rtgtestImm21AttrGet(MlirContext ctxt, unsigned value)
Creates an RTGTest Imm21 attribute in the context.
Definition RTGTest.cpp:394
MLIR_CAPI_EXPORTED unsigned rtgtestImm5AttrGetValue(MlirAttribute attr)
Returns the value represented by the Imm5 attribute.
Definition RTGTest.cpp:362
MLIR_CAPI_EXPORTED bool rtgtestAttrIsARegZero(MlirAttribute attr)
If the type is an RTGTest RegZeroAttr.
Definition RTGTest.cpp:95
MLIR_CAPI_EXPORTED MlirAttribute rtgtestRegT1AttrGet(MlirContext ctxt)
Creates an RTGTest RegT1 attribute in the context.
Definition RTGTest.cpp:147
MLIR_CAPI_EXPORTED MlirAttribute rtgtestRegA7AttrGet(MlirContext ctxt)
Creates an RTGTest RegA7 attribute in the context.
Definition RTGTest.cpp:235
MLIR_CAPI_EXPORTED MlirAttribute rtgtestImm12AttrGet(MlirContext ctxt, unsigned value)
Creates an RTGTest Imm12 attribute in the context.
Definition RTGTest.cpp:370
MLIR_CAPI_EXPORTED MlirAttribute rtgtestRegS8AttrGet(MlirContext ctxt)
Creates an RTGTest RegS8 attribute in the context.
Definition RTGTest.cpp:291
MLIR_CAPI_EXPORTED bool rtgtestAttrIsARegTp(MlirAttribute attr)
If the attribute is an RTGTest RegTpAttr.
Definition RTGTest.cpp:127
MLIR_CAPI_EXPORTED MlirAttribute rtgtestRegA3AttrGet(MlirContext ctxt)
Creates an RTGTest RegA3 attribute in the context.
Definition RTGTest.cpp:203
MLIR_CAPI_EXPORTED MlirType rtgtestIntegerRegisterTypeGet(MlirContext ctxt)
Creates an RTGTest IntegerRegisterType in the context.
Definition RTGTest.cpp:39
MLIR_CAPI_EXPORTED bool rtgtestAttrIsARegS1(MlirAttribute attr)
If the attribute is an RTGTest RegS1Attr.
Definition RTGTest.cpp:167
MLIR_CAPI_EXPORTED bool rtgtestAttrIsARegA6(MlirAttribute attr)
If the attribute is an RTGTest RegA6Attr.
Definition RTGTest.cpp:223
MLIR_CAPI_EXPORTED MlirAttribute rtgtestCPUAttrGet(MlirContext ctxt, unsigned id)
Creates an RTGTest CPU attribute in the context.
Definition RTGTest.cpp:84
MLIR_CAPI_EXPORTED bool rtgtestAttrIsAImm5(MlirAttribute attr)
If the attribute is an RTGTest Imm5Attr.
Definition RTGTest.cpp:354
MLIR_CAPI_EXPORTED bool rtgtestAttrIsARegA5(MlirAttribute attr)
If the attribute is an RTGTest RegA5Attr.
Definition RTGTest.cpp:215
MLIR_CAPI_EXPORTED bool rtgtestAttrIsARegS7(MlirAttribute attr)
If the attribute is an RTGTest RegS7Attr.
Definition RTGTest.cpp:279
MLIR_CAPI_EXPORTED bool rtgtestAttrIsARegT2(MlirAttribute attr)
If the attribute is an RTGTest RegT2Attr.
Definition RTGTest.cpp:151
MLIR_CAPI_EXPORTED MlirType rtgtestImm5TypeGet(MlirContext ctxt)
Creates an RTGTest Imm5 type in the context.
Definition RTGTest.cpp:48
MLIR_CAPI_EXPORTED MlirAttribute rtgtestRegA4AttrGet(MlirContext ctxt)
Creates an RTGTest RegA4 attribute in the context.
Definition RTGTest.cpp:211
MLIR_CAPI_EXPORTED MlirType rtgtestCPUTypeGet(MlirContext ctxt)
Creates an RTGTest CPU type in the context.
Definition RTGTest.cpp:31
MLIR_CAPI_EXPORTED bool rtgtestTypeIsACPU(MlirType type)
If the type is an RTGTest CPUType.
Definition RTGTest.cpp:29
MLIR_CAPI_EXPORTED bool rtgtestAttrIsARegS6(MlirAttribute attr)
If the attribute is an RTGTest RegS6Attr.
Definition RTGTest.cpp:271
MLIR_CAPI_EXPORTED bool rtgtestAttrIsAImm21(MlirAttribute attr)
If the attribute is an RTGTest Imm21Attr.
Definition RTGTest.cpp:390
MLIR_CAPI_EXPORTED MlirAttribute rtgtestRegT3AttrGet(MlirContext ctxt)
Creates an RTGTest RegT3 attribute in the context.
Definition RTGTest.cpp:323
MLIR_CAPI_EXPORTED MlirAttribute rtgtestRegTpAttrGet(MlirContext ctxt)
Creates an RTGTest RegTp attribute in the context.
Definition RTGTest.cpp:131
MLIR_CAPI_EXPORTED bool rtgtestAttrIsARegA2(MlirAttribute attr)
If the attribute is an RTGTest RegA2Attr.
Definition RTGTest.cpp:191
MLIR_CAPI_EXPORTED bool rtgtestAttrIsARegT4(MlirAttribute attr)
If the attribute is an RTGTest RegT4Attr.
Definition RTGTest.cpp:327
MLIR_CAPI_EXPORTED bool rtgtestAttrIsARegT5(MlirAttribute attr)
If the attribute is an RTGTest RegT5Attr.
Definition RTGTest.cpp:335
MLIR_CAPI_EXPORTED bool rtgtestAttrIsARegS5(MlirAttribute attr)
If the attribute is an RTGTest RegS5Attr.
Definition RTGTest.cpp:263
MLIR_CAPI_EXPORTED MlirAttribute rtgtestRegS6AttrGet(MlirContext ctxt)
Creates an RTGTest RegS6 attribute in the context.
Definition RTGTest.cpp:275
MLIR_CAPI_EXPORTED MlirAttribute rtgtestRegS3AttrGet(MlirContext ctxt)
Creates an RTGTest RegS3 attribute in the context.
Definition RTGTest.cpp:251
MLIR_CAPI_EXPORTED bool rtgtestTypeIsAImm12(MlirType type)
If the type is an RTGTest Imm12Type.
Definition RTGTest.cpp:52
MLIR_CAPI_EXPORTED unsigned rtgtestImm13AttrGetValue(MlirAttribute attr)
Returns the value represented by the Imm13 attribute.
Definition RTGTest.cpp:386
MLIR_CAPI_EXPORTED MlirAttribute rtgtestRegRaAttrGet(MlirContext ctxt)
Creates an RTGTest RegRa attribute in the context.
Definition RTGTest.cpp:107
MLIR_CAPI_EXPORTED bool rtgtestAttrIsARegT0(MlirAttribute attr)
If the attribute is an RTGTest RegT0Attr.
Definition RTGTest.cpp:135
MLIR_CAPI_EXPORTED MlirAttribute rtgtestRegS5AttrGet(MlirContext ctxt)
Creates an RTGTest RegS5 attribute in the context.
Definition RTGTest.cpp:267
MLIR_CAPI_EXPORTED bool rtgtestAttrIsARegSp(MlirAttribute attr)
If the attribute is an RTGTest RegSpAttr.
Definition RTGTest.cpp:111
MLIR_CAPI_EXPORTED MlirAttribute rtgtestRegA0AttrGet(MlirContext ctxt)
Creates an RTGTest RegA0 attribute in the context.
Definition RTGTest.cpp:179
MLIR_CAPI_EXPORTED bool rtgtestAttrIsAImm13(MlirAttribute attr)
If the attribute is an RTGTest Imm13Attr.
Definition RTGTest.cpp:378
MLIR_CAPI_EXPORTED bool rtgtestTypeIsAImm32(MlirType type)
If the type is an RTGTest Imm32Type.
Definition RTGTest.cpp:70
MLIR_CAPI_EXPORTED bool rtgtestAttrIsARegS11(MlirAttribute attr)
If the attribute is an RTGTest RegS11Attr.
Definition RTGTest.cpp:311
MLIR_CAPI_EXPORTED unsigned rtgtestImm21AttrGetValue(MlirAttribute attr)
Returns the value represented by the Imm21 attribute.
Definition RTGTest.cpp:398
MLIR_CAPI_EXPORTED bool rtgtestAttrIsARegS2(MlirAttribute attr)
If the attribute is an RTGTest RegS2Attr.
Definition RTGTest.cpp:239
MLIR_CAPI_EXPORTED bool rtgtestAttrIsARegS9(MlirAttribute attr)
If the attribute is an RTGTest RegS9Attr.
Definition RTGTest.cpp:295
MLIR_CAPI_EXPORTED MlirAttribute rtgtestRegA6AttrGet(MlirContext ctxt)
Creates an RTGTest RegA6 attribute in the context.
Definition RTGTest.cpp:227
MLIR_CAPI_EXPORTED MlirAttribute rtgtestRegA1AttrGet(MlirContext ctxt)
Creates an RTGTest RegA1 attribute in the context.
Definition RTGTest.cpp:187
MLIR_CAPI_EXPORTED MlirAttribute rtgtestRegS4AttrGet(MlirContext ctxt)
Creates an RTGTest RegS4 attribute in the context.
Definition RTGTest.cpp:259
MLIR_CAPI_EXPORTED bool rtgtestAttrIsARegRa(MlirAttribute attr)
If the attribute is an RTGTest RegRaAttr.
Definition RTGTest.cpp:103
MLIR_CAPI_EXPORTED MlirAttribute rtgtestRegT6AttrGet(MlirContext ctxt)
Creates an RTGTest RegT6 attribute in the context.
Definition RTGTest.cpp:347
MLIR_CAPI_EXPORTED MlirAttribute rtgtestRegS9AttrGet(MlirContext ctxt)
Creates an RTGTest RegS9 attribute in the context.
Definition RTGTest.cpp:299
MLIR_CAPI_EXPORTED MlirAttribute rtgtestImm5AttrGet(MlirContext ctxt, unsigned value)
Creates an RTGTest Imm5 attribute in the context.
Definition RTGTest.cpp:358
MLIR_CAPI_EXPORTED bool rtgtestAttrIsARegA4(MlirAttribute attr)
If the attribute is an RTGTest RegA4Attr.
Definition RTGTest.cpp:207
MLIR_CAPI_EXPORTED MlirAttribute rtgtestRegA5AttrGet(MlirContext ctxt)
Creates an RTGTest RegA5 attribute in the context.
Definition RTGTest.cpp:219
MLIR_CAPI_EXPORTED bool rtgtestAttrIsARegT6(MlirAttribute attr)
If the attribute is an RTGTest RegT6Attr.
Definition RTGTest.cpp:343
MLIR_CAPI_EXPORTED bool rtgtestAttrIsAImm32(MlirAttribute attr)
If the attribute is an RTGTest Imm32Attr.
Definition RTGTest.cpp:402
MLIR_CAPI_EXPORTED MlirAttribute rtgtestRegZeroAttrGet(MlirContext ctxt)
Creates an RTGTest RegZero attribute in the context.
Definition RTGTest.cpp:99
MLIR_CAPI_EXPORTED MlirAttribute rtgtestRegS7AttrGet(MlirContext ctxt)
Creates an RTGTest RegS7 attribute in the context.
Definition RTGTest.cpp:283
The InstanceGraph op interface, see InstanceGraphInterface.td for more details.