14 #include "mlir/CAPI/Registration.h"
return wrap(CMemoryType::get(unwrap(ctx), baseType, numElements))
MLIR_DEFINE_CAPI_DIALECT_REGISTRATION(CHIRRTL, chirrtl, circt::chirrtl::CHIRRTLDialect) MlirType chirrtlTypeGetCMemory(MlirContext ctx
static void registerPasses()
static EvaluatorValuePtr unwrap(OMEvaluatorValue c)
MlirType seqClockTypeGet(MlirContext ctx)
Creates an seq clock type.
bool seqTypeIsAClock(MlirType type)
If the type is an clock type.
Direction get(bool isOutput)
Returns an output direction if isOutput is true, otherwise returns an input direction.