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