14#include "mlir/CAPI/Registration.h"
23 return llvm::isa<ClockType>(
unwrap(type));
31 return llvm::isa<ImmutableType>(
unwrap(type));
35 return wrap(ImmutableType::get(
unwrap(innerType)));
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 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.