14#include "mlir/CAPI/Registration.h"
17using namespace circt::rtgtest;
36 return isa<IntegerRegisterType>(
unwrap(type));
40 return wrap(IntegerRegisterType::get(
unwrap(ctxt)));
81 return isa<CPUAttr>(
unwrap(attr));
89 return cast<CPUAttr>(
unwrap(attr)).getId();
96 return isa<RegZeroAttr>(
unwrap(attr));
104 return isa<RegRaAttr>(
unwrap(attr));
112 return isa<RegSpAttr>(
unwrap(attr));
120 return isa<RegGpAttr>(
unwrap(attr));
128 return isa<RegTpAttr>(
unwrap(attr));
136 return isa<RegT0Attr>(
unwrap(attr));
144 return isa<RegT1Attr>(
unwrap(attr));
152 return isa<RegT2Attr>(
unwrap(attr));
160 return isa<RegS0Attr>(
unwrap(attr));
168 return isa<RegS1Attr>(
unwrap(attr));
176 return isa<RegA0Attr>(
unwrap(attr));
184 return isa<RegA1Attr>(
unwrap(attr));
192 return isa<RegA2Attr>(
unwrap(attr));
200 return isa<RegA3Attr>(
unwrap(attr));
208 return isa<RegA4Attr>(
unwrap(attr));
216 return isa<RegA5Attr>(
unwrap(attr));
224 return isa<RegA6Attr>(
unwrap(attr));
232 return isa<RegA7Attr>(
unwrap(attr));
240 return isa<RegS2Attr>(
unwrap(attr));
248 return isa<RegS3Attr>(
unwrap(attr));
256 return isa<RegS4Attr>(
unwrap(attr));
264 return isa<RegS5Attr>(
unwrap(attr));
272 return isa<RegS6Attr>(
unwrap(attr));
280 return isa<RegS7Attr>(
unwrap(attr));
288 return isa<RegS8Attr>(
unwrap(attr));
296 return isa<RegS9Attr>(
unwrap(attr));
304 return isa<RegS10Attr>(
unwrap(attr));
312 return isa<RegS11Attr>(
unwrap(attr));
320 return isa<RegT3Attr>(
unwrap(attr));
328 return isa<RegT4Attr>(
unwrap(attr));
336 return isa<RegT5Attr>(
unwrap(attr));
344 return isa<RegT6Attr>(
unwrap(attr));
355 return isa<Imm5Attr>(
unwrap(attr));
359 return wrap(Imm5Attr::get(
unwrap(ctxt), value));
363 return cast<Imm5Attr>(
unwrap(attr)).getValue();
367 return isa<Imm12Attr>(
unwrap(attr));
371 return wrap(Imm12Attr::get(
unwrap(ctxt), value));
375 return cast<Imm12Attr>(
unwrap(attr)).getValue();
379 return isa<Imm13Attr>(
unwrap(attr));
383 return wrap(Imm13Attr::get(
unwrap(ctxt), value));
387 return cast<Imm13Attr>(
unwrap(attr)).getValue();
391 return isa<Imm21Attr>(
unwrap(attr));
395 return wrap(Imm21Attr::get(
unwrap(ctxt), value));
399 return cast<Imm21Attr>(
unwrap(attr)).getValue();
403 return isa<Imm32Attr>(
unwrap(attr));
407 return wrap(Imm32Attr::get(
unwrap(ctxt), value));
411 return cast<Imm32Attr>(
unwrap(attr)).getValue();
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)
bool rtgtestAttrIsARegS3(MlirAttribute attr)
If the attribute is an RTGTest RegS3Attr.
MlirAttribute rtgtestRegS9AttrGet(MlirContext ctxt)
Creates an RTGTest RegS9 attribute in the context.
bool rtgtestAttrIsARegT2(MlirAttribute attr)
If the attribute is an RTGTest RegT2Attr.
MlirAttribute rtgtestRegT0AttrGet(MlirContext ctxt)
Creates an RTGTest RegT0 attribute in the context.
MlirAttribute rtgtestImm12AttrGet(MlirContext ctxt, unsigned value)
Creates an RTGTest Imm12 attribute in the context.
MlirAttribute rtgtestRegSpAttrGet(MlirContext ctxt)
Creates an RTGTest RegSp attribute in the context.
bool rtgtestAttrIsAImm13(MlirAttribute attr)
If the attribute is an RTGTest Imm13Attr.
bool rtgtestAttrIsARegA6(MlirAttribute attr)
If the attribute is an RTGTest RegA6Attr.
MlirAttribute rtgtestRegA1AttrGet(MlirContext ctxt)
Creates an RTGTest RegA1 attribute in the context.
MlirAttribute rtgtestRegT5AttrGet(MlirContext ctxt)
Creates an RTGTest RegT5 attribute in the context.
MlirAttribute rtgtestRegZeroAttrGet(MlirContext ctxt)
Creates an RTGTest RegZero attribute in the context.
MlirAttribute rtgtestRegS1AttrGet(MlirContext ctxt)
Creates an RTGTest RegS1 attribute in the context.
bool rtgtestAttrIsARegS6(MlirAttribute attr)
If the attribute is an RTGTest RegS6Attr.
MlirAttribute rtgtestRegS7AttrGet(MlirContext ctxt)
Creates an RTGTest RegS7 attribute in the context.
bool rtgtestAttrIsARegS2(MlirAttribute attr)
If the attribute is an RTGTest RegS2Attr.
bool rtgtestAttrIsAImm21(MlirAttribute attr)
If the attribute is an RTGTest Imm21Attr.
MlirAttribute rtgtestRegT4AttrGet(MlirContext ctxt)
Creates an RTGTest RegT4 attribute in the context.
MlirAttribute rtgtestRegS8AttrGet(MlirContext ctxt)
Creates an RTGTest RegS8 attribute in the context.
bool rtgtestAttrIsARegA1(MlirAttribute attr)
If the attribute is an RTGTest RegA1Attr.
bool rtgtestAttrIsARegA3(MlirAttribute attr)
If the attribute is an RTGTest RegA3Attr.
bool rtgtestAttrIsARegZero(MlirAttribute attr)
If the type is an RTGTest RegZeroAttr.
MlirAttribute rtgtestRegA0AttrGet(MlirContext ctxt)
Creates an RTGTest RegA0 attribute in the context.
bool rtgtestAttrIsARegA0(MlirAttribute attr)
If the attribute is an RTGTest RegA0Attr.
bool rtgtestAttrIsARegS4(MlirAttribute attr)
If the attribute is an RTGTest RegS4Attr.
bool rtgtestAttrIsAImm12(MlirAttribute attr)
If the attribute is an RTGTest Imm12Attr.
MlirAttribute rtgtestRegT1AttrGet(MlirContext ctxt)
Creates an RTGTest RegT1 attribute in the context.
bool rtgtestAttrIsARegT0(MlirAttribute attr)
If the attribute is an RTGTest RegT0Attr.
bool rtgtestTypeIsAIntegerRegister(MlirType type)
If the type is an RTGTest IntegerRegisterType.
MlirAttribute rtgtestRegS3AttrGet(MlirContext ctxt)
Creates an RTGTest RegS3 attribute in the context.
bool rtgtestAttrIsARegS9(MlirAttribute attr)
If the attribute is an RTGTest RegS9Attr.
bool rtgtestAttrIsARegT4(MlirAttribute attr)
If the attribute is an RTGTest RegT4Attr.
bool rtgtestTypeIsAImm12(MlirType type)
If the type is an RTGTest Imm12Type.
MlirAttribute rtgtestImm21AttrGet(MlirContext ctxt, unsigned value)
Creates an RTGTest Imm21 attribute in the context.
MlirType rtgtestImm32TypeGet(MlirContext ctxt)
Creates an RTGTest Imm32 type in the context.
MlirAttribute rtgtestRegS2AttrGet(MlirContext ctxt)
Creates an RTGTest RegS2 attribute in the context.
MlirAttribute rtgtestRegT2AttrGet(MlirContext ctxt)
Creates an RTGTest RegT2 attribute in the context.
bool rtgtestTypeIsACPU(MlirType type)
If the type is an RTGTest CPUType.
bool rtgtestAttrIsARegS10(MlirAttribute attr)
If the attribute is an RTGTest RegS10Attr.
MlirType rtgtestImm5TypeGet(MlirContext ctxt)
Creates an RTGTest Imm5 type in the context.
MlirAttribute rtgtestRegA6AttrGet(MlirContext ctxt)
Creates an RTGTest RegA6 attribute in the context.
MlirAttribute rtgtestRegS10AttrGet(MlirContext ctxt)
Creates an RTGTest RegS10 attribute in the context.
MlirAttribute rtgtestCPUAttrGet(MlirContext ctxt, unsigned id)
Creates an RTGTest CPU attribute in the context.
MlirAttribute rtgtestRegS5AttrGet(MlirContext ctxt)
Creates an RTGTest RegS5 attribute in the context.
bool rtgtestAttrIsARegT6(MlirAttribute attr)
If the attribute is an RTGTest RegT6Attr.
bool rtgtestAttrIsARegS0(MlirAttribute attr)
If the attribute is an RTGTest RegS0Attr.
MlirType rtgtestIntegerRegisterTypeGet(MlirContext ctxt)
Creates an RTGTest IntegerRegisterType in the context.
MlirAttribute rtgtestRegT3AttrGet(MlirContext ctxt)
Creates an RTGTest RegT3 attribute in the context.
MlirAttribute rtgtestRegRaAttrGet(MlirContext ctxt)
Creates an RTGTest RegRa attribute in the context.
MlirAttribute rtgtestImm13AttrGet(MlirContext ctxt, unsigned value)
Creates an RTGTest Imm13 attribute in the context.
bool rtgtestAttrIsACPU(MlirAttribute attr)
If the type is an RTGTest CPUAttr.
bool rtgtestAttrIsAImm32(MlirAttribute attr)
If the attribute is an RTGTest Imm32Attr.
MlirType rtgtestCPUTypeGet(MlirContext ctxt)
Creates an RTGTest CPU type in the context.
bool rtgtestAttrIsARegSp(MlirAttribute attr)
If the attribute is an RTGTest RegSpAttr.
unsigned rtgtestImm5AttrGetValue(MlirAttribute attr)
Returns the value represented by the Imm5 attribute.
bool rtgtestAttrIsARegTp(MlirAttribute attr)
If the attribute is an RTGTest RegTpAttr.
bool rtgtestAttrIsARegGp(MlirAttribute attr)
If the attribute is an RTGTest RegGpAttr.
MlirAttribute rtgtestRegA2AttrGet(MlirContext ctxt)
Creates an RTGTest RegA2 attribute in the context.
unsigned rtgtestImm21AttrGetValue(MlirAttribute attr)
Returns the value represented by the Imm21 attribute.
bool rtgtestAttrIsARegA7(MlirAttribute attr)
If the attribute is an RTGTest RegA7Attr.
MlirAttribute rtgtestRegTpAttrGet(MlirContext ctxt)
Creates an RTGTest RegTp attribute in the context.
bool rtgtestAttrIsARegS5(MlirAttribute attr)
If the attribute is an RTGTest RegS5Attr.
MlirAttribute rtgtestRegT6AttrGet(MlirContext ctxt)
Creates an RTGTest RegT6 attribute in the context.
MlirType rtgtestImm12TypeGet(MlirContext ctxt)
Creates an RTGTest Imm12 type in the context.
bool rtgtestAttrIsARegA5(MlirAttribute attr)
If the attribute is an RTGTest RegA5Attr.
MlirType rtgtestImm21TypeGet(MlirContext ctxt)
Creates an RTGTest Imm21 type in the context.
MlirAttribute rtgtestRegS11AttrGet(MlirContext ctxt)
Creates an RTGTest RegS11 attribute in the context.
MlirAttribute rtgtestRegA5AttrGet(MlirContext ctxt)
Creates an RTGTest RegA5 attribute in the context.
MlirAttribute rtgtestRegGpAttrGet(MlirContext ctxt)
Creates an RTGTest RegGp attribute in the context.
bool rtgtestAttrIsARegS7(MlirAttribute attr)
If the attribute is an RTGTest RegS7Attr.
MlirAttribute rtgtestRegA7AttrGet(MlirContext ctxt)
Creates an RTGTest RegA7 attribute in the context.
unsigned rtgtestImm32AttrGetValue(MlirAttribute attr)
Returns the value represented by the Imm32 attribute.
bool rtgtestTypeIsAImm21(MlirType type)
If the type is an RTGTest Imm21Type.
unsigned rtgtestImm13AttrGetValue(MlirAttribute attr)
Returns the value represented by the Imm13 attribute.
MlirAttribute rtgtestRegS0AttrGet(MlirContext ctxt)
Creates an RTGTest RegS0 attribute in the context.
bool rtgtestAttrIsARegRa(MlirAttribute attr)
If the attribute is an RTGTest RegRaAttr.
MlirAttribute rtgtestRegA4AttrGet(MlirContext ctxt)
Creates an RTGTest RegA4 attribute in the context.
bool rtgtestAttrIsAImm5(MlirAttribute attr)
If the attribute is an RTGTest Imm5Attr.
unsigned rtgtestImm12AttrGetValue(MlirAttribute attr)
Returns the value represented by the Imm12 attribute.
MlirAttribute rtgtestRegA3AttrGet(MlirContext ctxt)
Creates an RTGTest RegA3 attribute in the context.
bool rtgtestTypeIsAImm32(MlirType type)
If the type is an RTGTest Imm32Type.
bool rtgtestAttrIsARegT1(MlirAttribute attr)
If the attribute is an RTGTest RegT1Attr.
MlirType rtgtestImm13TypeGet(MlirContext ctxt)
Creates an RTGTest Imm13 type in the context.
bool rtgtestAttrIsARegA2(MlirAttribute attr)
If the attribute is an RTGTest RegA2Attr.
MlirAttribute rtgtestRegS4AttrGet(MlirContext ctxt)
Creates an RTGTest RegS4 attribute in the context.
bool rtgtestTypeIsAImm5(MlirType type)
If the type is an RTGTest Imm5Type.
MlirAttribute rtgtestImm32AttrGet(MlirContext ctxt, unsigned value)
Creates an RTGTest Imm32 attribute in the context.
bool rtgtestAttrIsARegS11(MlirAttribute attr)
If the attribute is an RTGTest RegS11Attr.
bool rtgtestTypeIsAImm13(MlirType type)
If the type is an RTGTest Imm13Type.
bool rtgtestAttrIsARegS1(MlirAttribute attr)
If the attribute is an RTGTest RegS1Attr.
bool rtgtestAttrIsARegA4(MlirAttribute attr)
If the attribute is an RTGTest RegA4Attr.
bool rtgtestAttrIsARegT3(MlirAttribute attr)
If the attribute is an RTGTest RegT3Attr.
bool rtgtestAttrIsARegS8(MlirAttribute attr)
If the attribute is an RTGTest RegS8Attr.
MlirAttribute rtgtestRegS6AttrGet(MlirContext ctxt)
Creates an RTGTest RegS6 attribute in the context.
MlirAttribute rtgtestImm5AttrGet(MlirContext ctxt, unsigned value)
Creates an RTGTest Imm5 attribute in the context.
bool rtgtestAttrIsARegT5(MlirAttribute attr)
If the attribute is an RTGTest RegT5Attr.
unsigned rtgtestCPUAttrGetId(MlirAttribute attr)
Returns the core ID represented by the CPU attribute.
The InstanceGraph op interface, see InstanceGraphInterface.td for more details.