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,
unsigned id, MlirContext ctxt) {
47 nb::arg(
"self"), nb::arg(
"id"), nb::arg(
"ctxt") =
nullptr)
48 .def_property_readonly(
54 [](nb::object cls, MlirContext ctxt) {
57 nb::arg(
"self"), nb::arg(
"ctxt") =
nullptr);
62 [](nb::object cls, MlirContext ctxt) {
65 nb::arg(
"self"), nb::arg(
"ctxt") =
nullptr);
70 [](nb::object cls, MlirContext ctxt) {
73 nb::arg(
"self"), nb::arg(
"ctxt") =
nullptr);
78 [](nb::object cls, MlirContext ctxt) {
81 nb::arg(
"self"), nb::arg(
"ctxt") =
nullptr);
86 [](nb::object cls, MlirContext ctxt) {
89 nb::arg(
"self"), nb::arg(
"ctxt") =
nullptr);
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);
MLIR_CAPI_EXPORTED MlirAttribute rtgtestRegGpAttrGet(MlirContext ctxt)
Creates an RTGTest RegGp attribute 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 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 bool rtgtestAttrIsARegT1(MlirAttribute attr)
If the attribute is an RTGTest RegT1Attr.
MLIR_CAPI_EXPORTED MlirAttribute rtgtestRegS0AttrGet(MlirContext ctxt)
Creates an RTGTest RegS0 attribute in the context.
MLIR_CAPI_EXPORTED MlirAttribute rtgtestRegSpAttrGet(MlirContext ctxt)
Creates an RTGTest RegSp 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 bool rtgtestAttrIsARegA7(MlirAttribute attr)
If the attribute is an RTGTest RegA7Attr.
MLIR_CAPI_EXPORTED bool rtgtestAttrIsARegGp(MlirAttribute attr)
If the attribute is an RTGTest RegGpAttr.
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 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 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 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 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 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 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 rtgtestAttrIsARegS11(MlirAttribute attr)
If the attribute is an RTGTest RegS11Attr.
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 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 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.