11 #include "mlir/CAPI/IR.h"
12 #include "mlir/CAPI/Registration.h"
13 #include "mlir/CAPI/Support.h"
15 using namespace circt;
16 using namespace chirrtl;
23 circt::chirrtl::CHIRRTLDialect)
32 assert(baseType &&
"element must be base type");
assert(baseType &&"element must be base type")
return wrap(CMemoryType::get(unwrap(ctx), baseType, numElements))
MlirType uint64_t numElements
MlirType chirrtlTypeGetCMemoryPort(MlirContext ctx)
MLIR_DEFINE_CAPI_DIALECT_REGISTRATION(CHIRRTL, chirrtl, circt::chirrtl::CHIRRTLDialect) MlirType chirrtlTypeGetCMemory(MlirContext ctx
MLIR_CAPI_EXPORTED MlirType chirrtlTypeGetCMemory(MlirContext ctx, MlirType elementType, uint64_t numElements)
static EvaluatorValuePtr unwrap(OMEvaluatorValue c)
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.