13 #include "mlir/CAPI/Registration.h"
15 using namespace circt;
32 return isa<SequenceType>(
unwrap(type));
74 MlirAttribute
const *entryNames,
75 MlirType
const *entryTypes) {
76 SmallVector<DictEntry> entries;
77 for (
unsigned i = 0; i < numEntries; ++i) {
79 entry.
name = cast<StringAttr>(
unwrap(entryNames[i]));
81 entries.emplace_back(entry);
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 rtgTypeIsABag(MlirType type)
If the type is an RTG bag.
MlirType rtgSetTypeGet(MlirType elementType)
Creates an RTG set type in the context.
MlirType rtgSequenceTypeGet(MlirContext ctxt)
Creates an RTG sequence type in the context.
bool rtgTypeIsASet(MlirType type)
If the type is an RTG set.
bool rtgTypeIsADict(MlirType type)
If the type is an RTG dict.
bool rtgTypeIsALabel(MlirType type)
If the type is an RTG label.
MlirType rtgDictTypeGet(MlirContext ctxt, intptr_t numEntries, MlirAttribute const *entryNames, MlirType const *entryTypes)
Creates an RTG dict type in the context.
bool rtgTypeIsASequence(MlirType type)
If the type is an RTG sequence.
MlirType rtgBagTypeGet(MlirType elementType)
Creates an RTG bag type in the context.
MlirType rtgLabelTypeGet(MlirContext ctxt)
Creates an RTG mode type in the context.
Direction get(bool isOutput)
Returns an output direction if isOutput is true, otherwise returns an input direction.
The InstanceGraph op interface, see InstanceGraphInterface.td for more details.
Defines an entry in an !rtg.dict.