14 #include "mlir/CAPI/Registration.h"
23 return llvm::isa<ClockType>(
unwrap(type));
31 return llvm::isa<ImmutableType>(
unwrap(type));
39 return wrap(llvm::cast<ImmutableType>(
unwrap(type)).getInnerType());
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 seqImmutableTypeGet(MlirType innerType)
Creates a seq immutable type.
MlirType seqImmutableTypeGetInnerType(MlirType type)
Creates a seq immutable type.
MlirType seqClockTypeGet(MlirContext ctx)
Creates an seq clock type.
bool seqTypeIsAImmutable(MlirType type)
If the type is an immutable 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.
mlir::Type innerType(mlir::Type type)