13#include "mlir/Bindings/Python/NanobindAdaptors.h"
15#include <nanobind/nanobind.h>
19using namespace mlir::python::nanobind_adaptors;
22void circt::python::populateDialectRTGTestSubmodule(nb::module_ &m) {
23 m.doc() =
"RTGTest dialect Python native extension";
28 [](nb::object cls, MlirContext ctxt) {
31 nb::arg(
"self"), nb::arg(
"ctxt") =
nullptr);
36 [](nb::object cls, MlirContext ctxt) {
39 nb::arg(
"self"), nb::arg(
"ctxt") =
nullptr);
44 [](nb::object cls, MlirContext ctxt) {
47 nb::arg(
"self"), nb::arg(
"ctxt") =
nullptr);
52 [](nb::object cls, MlirContext ctxt) {
55 nb::arg(
"self"), nb::arg(
"ctxt") =
nullptr);
60 [](nb::object cls, MlirContext ctxt) {
63 nb::arg(
"self"), nb::arg(
"ctxt") =
nullptr);
68 [](nb::object cls, MlirContext ctxt) {
71 nb::arg(
"self"), nb::arg(
"ctxt") =
nullptr);
76 [](nb::object cls, MlirContext ctxt) {
79 nb::arg(
"self"), nb::arg(
"ctxt") =
nullptr);
84 [](nb::object cls,
unsigned id, MlirContext ctxt) {
87 nb::arg(
"self"), nb::arg(
"id"), nb::arg(
"ctxt") =
nullptr)
88 .def_property_readonly(
94 [](nb::object cls, MlirContext ctxt) {
97 nb::arg(
"self"), nb::arg(
"ctxt") =
nullptr);
102 [](nb::object cls, MlirContext ctxt) {
105 nb::arg(
"self"), nb::arg(
"ctxt") =
nullptr);
110 [](nb::object cls, MlirContext ctxt) {
113 nb::arg(
"self"), nb::arg(
"ctxt") =
nullptr);
118 [](nb::object cls, MlirContext ctxt) {
121 nb::arg(
"self"), nb::arg(
"ctxt") =
nullptr);
126 [](nb::object cls, MlirContext ctxt) {
129 nb::arg(
"self"), nb::arg(
"ctxt") =
nullptr);
134 [](nb::object cls, MlirContext ctxt) {
137 nb::arg(
"self"), nb::arg(
"ctxt") =
nullptr);
142 [](nb::object cls, MlirContext ctxt) {
145 nb::arg(
"self"), nb::arg(
"ctxt") =
nullptr);
150 [](nb::object cls, MlirContext ctxt) {
153 nb::arg(
"self"), nb::arg(
"ctxt") =
nullptr);
158 [](nb::object cls, MlirContext ctxt) {
161 nb::arg(
"self"), nb::arg(
"ctxt") =
nullptr);
166 [](nb::object cls, MlirContext ctxt) {
169 nb::arg(
"self"), nb::arg(
"ctxt") =
nullptr);
174 [](nb::object cls, MlirContext ctxt) {
177 nb::arg(
"self"), nb::arg(
"ctxt") =
nullptr);
182 [](nb::object cls, MlirContext ctxt) {
185 nb::arg(
"self"), nb::arg(
"ctxt") =
nullptr);
190 [](nb::object cls, MlirContext ctxt) {
193 nb::arg(
"self"), nb::arg(
"ctxt") =
nullptr);
198 [](nb::object cls, MlirContext ctxt) {
201 nb::arg(
"self"), nb::arg(
"ctxt") =
nullptr);
206 [](nb::object cls, MlirContext ctxt) {
209 nb::arg(
"self"), nb::arg(
"ctxt") =
nullptr);
214 [](nb::object cls, MlirContext ctxt) {
217 nb::arg(
"self"), nb::arg(
"ctxt") =
nullptr);
222 [](nb::object cls, MlirContext ctxt) {
225 nb::arg(
"self"), nb::arg(
"ctxt") =
nullptr);
230 [](nb::object cls, MlirContext ctxt) {
233 nb::arg(
"self"), nb::arg(
"ctxt") =
nullptr);
238 [](nb::object cls, MlirContext ctxt) {
241 nb::arg(
"self"), nb::arg(
"ctxt") =
nullptr);
246 [](nb::object cls, MlirContext ctxt) {
249 nb::arg(
"self"), nb::arg(
"ctxt") =
nullptr);
254 [](nb::object cls, MlirContext ctxt) {
257 nb::arg(
"self"), nb::arg(
"ctxt") =
nullptr);
262 [](nb::object cls, MlirContext ctxt) {
265 nb::arg(
"self"), nb::arg(
"ctxt") =
nullptr);
270 [](nb::object cls, MlirContext ctxt) {
273 nb::arg(
"self"), nb::arg(
"ctxt") =
nullptr);
278 [](nb::object cls, MlirContext ctxt) {
281 nb::arg(
"self"), nb::arg(
"ctxt") =
nullptr);
286 [](nb::object cls, MlirContext ctxt) {
289 nb::arg(
"self"), nb::arg(
"ctxt") =
nullptr);
294 [](nb::object cls, MlirContext ctxt) {
297 nb::arg(
"self"), nb::arg(
"ctxt") =
nullptr);
302 [](nb::object cls, MlirContext ctxt) {
305 nb::arg(
"self"), nb::arg(
"ctxt") =
nullptr);
310 [](nb::object cls, MlirContext ctxt) {
313 nb::arg(
"self"), nb::arg(
"ctxt") =
nullptr);
318 [](nb::object cls, MlirContext ctxt) {
321 nb::arg(
"self"), nb::arg(
"ctxt") =
nullptr);
326 [](nb::object cls, MlirContext ctxt) {
329 nb::arg(
"self"), nb::arg(
"ctxt") =
nullptr);
334 [](nb::object cls, MlirContext ctxt) {
337 nb::arg(
"self"), nb::arg(
"ctxt") =
nullptr);
342 [](nb::object cls, MlirContext ctxt) {
345 nb::arg(
"self"), nb::arg(
"ctxt") =
nullptr);
350 [](nb::object cls,
unsigned value, MlirContext ctxt) {
353 nb::arg(
"self"), nb::arg(
"value"), nb::arg(
"ctxt") =
nullptr)
354 .def_property_readonly(
"value", [](MlirAttribute self) {
361 [](nb::object cls,
unsigned value, MlirContext ctxt) {
364 nb::arg(
"self"), nb::arg(
"value"), nb::arg(
"ctxt") =
nullptr)
365 .def_property_readonly(
"value", [](MlirAttribute self) {
372 [](nb::object cls,
unsigned value, MlirContext ctxt) {
375 nb::arg(
"self"), nb::arg(
"value"), nb::arg(
"ctxt") =
nullptr)
376 .def_property_readonly(
"value", [](MlirAttribute self) {
383 [](nb::object cls,
unsigned value, MlirContext ctxt) {
386 nb::arg(
"self"), nb::arg(
"value"), nb::arg(
"ctxt") =
nullptr)
387 .def_property_readonly(
"value", [](MlirAttribute self) {
394 [](nb::object cls,
unsigned value, MlirContext ctxt) {
397 nb::arg(
"self"), nb::arg(
"value"), nb::arg(
"ctxt") =
nullptr)
398 .def_property_readonly(
"value", [](MlirAttribute self) {
MLIR_CAPI_EXPORTED MlirAttribute rtgtestRegGpAttrGet(MlirContext ctxt)
Creates an RTGTest RegGp attribute in the context.
MLIR_CAPI_EXPORTED MlirType rtgtestImm13TypeGet(MlirContext ctxt)
Creates an RTGTest Imm13 type in the context.
MLIR_CAPI_EXPORTED MlirAttribute rtgtestRegT5AttrGet(MlirContext ctxt)
Creates an RTGTest RegT5 attribute in the context.
MLIR_CAPI_EXPORTED MlirAttribute rtgtestRegA2AttrGet(MlirContext ctxt)
Creates an RTGTest RegA2 attribute in the context.
MLIR_CAPI_EXPORTED bool rtgtestTypeIsAIntegerRegister(MlirType type)
If the type is an RTGTest IntegerRegisterType.
MLIR_CAPI_EXPORTED MlirType rtgtestImm32TypeGet(MlirContext ctxt)
Creates an RTGTest Imm32 type in the context.
MLIR_CAPI_EXPORTED MlirAttribute rtgtestRegT2AttrGet(MlirContext ctxt)
Creates an RTGTest RegT2 attribute in the context.
MLIR_CAPI_EXPORTED MlirAttribute rtgtestRegS10AttrGet(MlirContext ctxt)
Creates an RTGTest RegS10 attribute in the context.
MLIR_CAPI_EXPORTED MlirAttribute rtgtestRegT4AttrGet(MlirContext ctxt)
Creates an RTGTest RegT4 attribute in the context.
MLIR_CAPI_EXPORTED MlirAttribute rtgtestRegS11AttrGet(MlirContext ctxt)
Creates an RTGTest RegS11 attribute in the context.
MLIR_CAPI_EXPORTED bool rtgtestAttrIsARegS4(MlirAttribute attr)
If the attribute is an RTGTest RegS4Attr.
MLIR_CAPI_EXPORTED MlirType rtgtestImm12TypeGet(MlirContext ctxt)
Creates an RTGTest Imm12 type in the context.
MLIR_CAPI_EXPORTED bool rtgtestAttrIsARegT1(MlirAttribute attr)
If the attribute is an RTGTest RegT1Attr.
MLIR_CAPI_EXPORTED bool rtgtestTypeIsAImm5(MlirType type)
If the type is an RTGTest Imm5Type.
MLIR_CAPI_EXPORTED bool rtgtestTypeIsAImm13(MlirType type)
If the type is an RTGTest Imm13Type.
MLIR_CAPI_EXPORTED MlirAttribute rtgtestRegS0AttrGet(MlirContext ctxt)
Creates an RTGTest RegS0 attribute in the context.
MLIR_CAPI_EXPORTED unsigned rtgtestImm12AttrGetValue(MlirAttribute attr)
Returns the value represented by the Imm12 attribute.
MLIR_CAPI_EXPORTED MlirAttribute rtgtestRegSpAttrGet(MlirContext ctxt)
Creates an RTGTest RegSp attribute in the context.
MLIR_CAPI_EXPORTED bool rtgtestAttrIsAImm12(MlirAttribute attr)
If the attribute is an RTGTest Imm12Attr.
MLIR_CAPI_EXPORTED MlirAttribute rtgtestImm13AttrGet(MlirContext ctxt, unsigned value)
Creates an RTGTest Imm13 attribute in the context.
MLIR_CAPI_EXPORTED bool rtgtestAttrIsARegS8(MlirAttribute attr)
If the attribute is an RTGTest RegS8Attr.
MLIR_CAPI_EXPORTED bool rtgtestAttrIsACPU(MlirAttribute attr)
If the type is an RTGTest CPUAttr.
MLIR_CAPI_EXPORTED bool rtgtestAttrIsARegA0(MlirAttribute attr)
If the attribute is an RTGTest RegA0Attr.
MLIR_CAPI_EXPORTED bool rtgtestAttrIsARegS10(MlirAttribute attr)
If the attribute is an RTGTest RegS10Attr.
MLIR_CAPI_EXPORTED bool rtgtestAttrIsARegT3(MlirAttribute attr)
If the attribute is an RTGTest RegT3Attr.
MLIR_CAPI_EXPORTED bool rtgtestAttrIsARegA3(MlirAttribute attr)
If the attribute is an RTGTest RegA3Attr.
MLIR_CAPI_EXPORTED MlirAttribute rtgtestRegT0AttrGet(MlirContext ctxt)
Creates an RTGTest RegT0 attribute in the context.
MLIR_CAPI_EXPORTED MlirAttribute rtgtestRegS2AttrGet(MlirContext ctxt)
Creates an RTGTest RegS2 attribute in the context.
MLIR_CAPI_EXPORTED bool rtgtestAttrIsARegS0(MlirAttribute attr)
If the attribute is an RTGTest RegS0Attr.
MLIR_CAPI_EXPORTED bool rtgtestAttrIsARegS3(MlirAttribute attr)
If the attribute is an RTGTest RegS3Attr.
MLIR_CAPI_EXPORTED MlirAttribute rtgtestImm32AttrGet(MlirContext ctxt, unsigned value)
Creates an RTGTest Imm32 attribute in the context.
MLIR_CAPI_EXPORTED bool rtgtestAttrIsARegA7(MlirAttribute attr)
If the attribute is an RTGTest RegA7Attr.
MLIR_CAPI_EXPORTED MlirType rtgtestImm21TypeGet(MlirContext ctxt)
Creates an RTGTest Imm21 type in the context.
MLIR_CAPI_EXPORTED bool rtgtestAttrIsARegGp(MlirAttribute attr)
If the attribute is an RTGTest RegGpAttr.
MLIR_CAPI_EXPORTED unsigned rtgtestImm32AttrGetValue(MlirAttribute attr)
Returns the value represented by the Imm32 attribute.
MLIR_CAPI_EXPORTED bool rtgtestTypeIsAImm21(MlirType type)
If the type is an RTGTest Imm21Type.
MLIR_CAPI_EXPORTED MlirAttribute rtgtestRegS1AttrGet(MlirContext ctxt)
Creates an RTGTest RegS1 attribute in the context.
MLIR_CAPI_EXPORTED bool rtgtestAttrIsARegA1(MlirAttribute attr)
If the attribute is an RTGTest RegA1Attr.
MLIR_CAPI_EXPORTED unsigned rtgtestCPUAttrGetId(MlirAttribute attr)
Returns the core ID represented by the CPU attribute.
MLIR_CAPI_EXPORTED MlirAttribute rtgtestImm21AttrGet(MlirContext ctxt, unsigned value)
Creates an RTGTest Imm21 attribute in the context.
MLIR_CAPI_EXPORTED unsigned rtgtestImm5AttrGetValue(MlirAttribute attr)
Returns the value represented by the Imm5 attribute.
MLIR_CAPI_EXPORTED bool rtgtestAttrIsARegZero(MlirAttribute attr)
If the type is an RTGTest RegZeroAttr.
MLIR_CAPI_EXPORTED MlirAttribute rtgtestRegT1AttrGet(MlirContext ctxt)
Creates an RTGTest RegT1 attribute in the context.
MLIR_CAPI_EXPORTED MlirAttribute rtgtestRegA7AttrGet(MlirContext ctxt)
Creates an RTGTest RegA7 attribute in the context.
MLIR_CAPI_EXPORTED MlirAttribute rtgtestImm12AttrGet(MlirContext ctxt, unsigned value)
Creates an RTGTest Imm12 attribute in the context.
MLIR_CAPI_EXPORTED MlirAttribute rtgtestRegS8AttrGet(MlirContext ctxt)
Creates an RTGTest RegS8 attribute in the context.
MLIR_CAPI_EXPORTED bool rtgtestAttrIsARegTp(MlirAttribute attr)
If the attribute is an RTGTest RegTpAttr.
MLIR_CAPI_EXPORTED MlirAttribute rtgtestRegA3AttrGet(MlirContext ctxt)
Creates an RTGTest RegA3 attribute in the context.
MLIR_CAPI_EXPORTED MlirType rtgtestIntegerRegisterTypeGet(MlirContext ctxt)
Creates an RTGTest IntegerRegisterType in the context.
MLIR_CAPI_EXPORTED bool rtgtestAttrIsARegS1(MlirAttribute attr)
If the attribute is an RTGTest RegS1Attr.
MLIR_CAPI_EXPORTED bool rtgtestAttrIsARegA6(MlirAttribute attr)
If the attribute is an RTGTest RegA6Attr.
MLIR_CAPI_EXPORTED MlirAttribute rtgtestCPUAttrGet(MlirContext ctxt, unsigned id)
Creates an RTGTest CPU attribute in the context.
MLIR_CAPI_EXPORTED bool rtgtestAttrIsAImm5(MlirAttribute attr)
If the attribute is an RTGTest Imm5Attr.
MLIR_CAPI_EXPORTED bool rtgtestAttrIsARegA5(MlirAttribute attr)
If the attribute is an RTGTest RegA5Attr.
MLIR_CAPI_EXPORTED bool rtgtestAttrIsARegS7(MlirAttribute attr)
If the attribute is an RTGTest RegS7Attr.
MLIR_CAPI_EXPORTED bool rtgtestAttrIsARegT2(MlirAttribute attr)
If the attribute is an RTGTest RegT2Attr.
MLIR_CAPI_EXPORTED MlirType rtgtestImm5TypeGet(MlirContext ctxt)
Creates an RTGTest Imm5 type in the context.
MLIR_CAPI_EXPORTED MlirAttribute rtgtestRegA4AttrGet(MlirContext ctxt)
Creates an RTGTest RegA4 attribute in the context.
MLIR_CAPI_EXPORTED MlirType rtgtestCPUTypeGet(MlirContext ctxt)
Creates an RTGTest CPU type in the context.
MLIR_CAPI_EXPORTED bool rtgtestTypeIsACPU(MlirType type)
If the type is an RTGTest CPUType.
MLIR_CAPI_EXPORTED bool rtgtestAttrIsARegS6(MlirAttribute attr)
If the attribute is an RTGTest RegS6Attr.
MLIR_CAPI_EXPORTED bool rtgtestAttrIsAImm21(MlirAttribute attr)
If the attribute is an RTGTest Imm21Attr.
MLIR_CAPI_EXPORTED MlirAttribute rtgtestRegT3AttrGet(MlirContext ctxt)
Creates an RTGTest RegT3 attribute in the context.
MLIR_CAPI_EXPORTED MlirAttribute rtgtestRegTpAttrGet(MlirContext ctxt)
Creates an RTGTest RegTp attribute in the context.
MLIR_CAPI_EXPORTED bool rtgtestAttrIsARegA2(MlirAttribute attr)
If the attribute is an RTGTest RegA2Attr.
MLIR_CAPI_EXPORTED bool rtgtestAttrIsARegT4(MlirAttribute attr)
If the attribute is an RTGTest RegT4Attr.
MLIR_CAPI_EXPORTED bool rtgtestAttrIsARegT5(MlirAttribute attr)
If the attribute is an RTGTest RegT5Attr.
MLIR_CAPI_EXPORTED bool rtgtestAttrIsARegS5(MlirAttribute attr)
If the attribute is an RTGTest RegS5Attr.
MLIR_CAPI_EXPORTED MlirAttribute rtgtestRegS6AttrGet(MlirContext ctxt)
Creates an RTGTest RegS6 attribute in the context.
MLIR_CAPI_EXPORTED MlirAttribute rtgtestRegS3AttrGet(MlirContext ctxt)
Creates an RTGTest RegS3 attribute in the context.
MLIR_CAPI_EXPORTED bool rtgtestTypeIsAImm12(MlirType type)
If the type is an RTGTest Imm12Type.
MLIR_CAPI_EXPORTED unsigned rtgtestImm13AttrGetValue(MlirAttribute attr)
Returns the value represented by the Imm13 attribute.
MLIR_CAPI_EXPORTED MlirAttribute rtgtestRegRaAttrGet(MlirContext ctxt)
Creates an RTGTest RegRa attribute in the context.
MLIR_CAPI_EXPORTED bool rtgtestAttrIsARegT0(MlirAttribute attr)
If the attribute is an RTGTest RegT0Attr.
MLIR_CAPI_EXPORTED MlirAttribute rtgtestRegS5AttrGet(MlirContext ctxt)
Creates an RTGTest RegS5 attribute in the context.
MLIR_CAPI_EXPORTED bool rtgtestAttrIsARegSp(MlirAttribute attr)
If the attribute is an RTGTest RegSpAttr.
MLIR_CAPI_EXPORTED MlirAttribute rtgtestRegA0AttrGet(MlirContext ctxt)
Creates an RTGTest RegA0 attribute in the context.
MLIR_CAPI_EXPORTED bool rtgtestAttrIsAImm13(MlirAttribute attr)
If the attribute is an RTGTest Imm13Attr.
MLIR_CAPI_EXPORTED bool rtgtestTypeIsAImm32(MlirType type)
If the type is an RTGTest Imm32Type.
MLIR_CAPI_EXPORTED bool rtgtestAttrIsARegS11(MlirAttribute attr)
If the attribute is an RTGTest RegS11Attr.
MLIR_CAPI_EXPORTED unsigned rtgtestImm21AttrGetValue(MlirAttribute attr)
Returns the value represented by the Imm21 attribute.
MLIR_CAPI_EXPORTED bool rtgtestAttrIsARegS2(MlirAttribute attr)
If the attribute is an RTGTest RegS2Attr.
MLIR_CAPI_EXPORTED bool rtgtestAttrIsARegS9(MlirAttribute attr)
If the attribute is an RTGTest RegS9Attr.
MLIR_CAPI_EXPORTED MlirAttribute rtgtestRegA6AttrGet(MlirContext ctxt)
Creates an RTGTest RegA6 attribute in the context.
MLIR_CAPI_EXPORTED MlirAttribute rtgtestRegA1AttrGet(MlirContext ctxt)
Creates an RTGTest RegA1 attribute in the context.
MLIR_CAPI_EXPORTED MlirAttribute rtgtestRegS4AttrGet(MlirContext ctxt)
Creates an RTGTest RegS4 attribute in the context.
MLIR_CAPI_EXPORTED bool rtgtestAttrIsARegRa(MlirAttribute attr)
If the attribute is an RTGTest RegRaAttr.
MLIR_CAPI_EXPORTED MlirAttribute rtgtestRegT6AttrGet(MlirContext ctxt)
Creates an RTGTest RegT6 attribute in the context.
MLIR_CAPI_EXPORTED MlirAttribute rtgtestRegS9AttrGet(MlirContext ctxt)
Creates an RTGTest RegS9 attribute in the context.
MLIR_CAPI_EXPORTED MlirAttribute rtgtestImm5AttrGet(MlirContext ctxt, unsigned value)
Creates an RTGTest Imm5 attribute in the context.
MLIR_CAPI_EXPORTED bool rtgtestAttrIsARegA4(MlirAttribute attr)
If the attribute is an RTGTest RegA4Attr.
MLIR_CAPI_EXPORTED MlirAttribute rtgtestRegA5AttrGet(MlirContext ctxt)
Creates an RTGTest RegA5 attribute in the context.
MLIR_CAPI_EXPORTED bool rtgtestAttrIsARegT6(MlirAttribute attr)
If the attribute is an RTGTest RegT6Attr.
MLIR_CAPI_EXPORTED bool rtgtestAttrIsAImm32(MlirAttribute attr)
If the attribute is an RTGTest Imm32Attr.
MLIR_CAPI_EXPORTED MlirAttribute rtgtestRegZeroAttrGet(MlirContext ctxt)
Creates an RTGTest RegZero attribute in the context.
MLIR_CAPI_EXPORTED MlirAttribute rtgtestRegS7AttrGet(MlirContext ctxt)
Creates an RTGTest RegS7 attribute in the context.
The InstanceGraph op interface, see InstanceGraphInterface.td for more details.