12#include "mlir/CAPI/IR.h"
13#include "mlir/CAPI/Registration.h"
14#include "mlir/CAPI/Support.h"
47 return wrap(cast<RefType>(
unwrap(type)).getNestedType());
56 return isa<TimeAttr>(
unwrap(attr));
61 uint64_t seconds, uint64_t delta) {
67 return wrap(cast<TimeAttr>(
unwrap(attr)).getTimeUnit());
72 return cast<TimeAttr>(
unwrap(attr)).getTime();
77 return cast<TimeAttr>(
unwrap(attr)).getDelta();
return wrap(CMemoryType::get(unwrap(ctx), baseType, numElements))
MLIR_DEFINE_CAPI_DIALECT_REGISTRATION(CHIRRTL, chirrtl, circt::chirrtl::CHIRRTLDialect) MlirType chirrtlTypeGetCMemory(MlirContext ctx
MlirType llhdTimeTypeGet(MlirContext ctx)
Create a time type.
uint64_t llhdTimeAttrGetSeconds(MlirAttribute attr)
Get the seconds component of a time attribute.
uint64_t llhdTimeAttrGetDelta(MlirAttribute attr)
Get the delta component of a time attribute.
MlirAttribute llhdTimeAttrGet(MlirContext ctx, MlirStringRef timeUnit, uint64_t seconds, uint64_t delta)
Create a time attribute.
MlirStringRef llhdTimeAttrGetTimeUnit(MlirAttribute attr)
Get the time unit of a time attribute.
MlirType llhdRefTypeGetNestedType(MlirType type)
Get the inner type of a reference.
bool llhdAttrIsATimeAttr(MlirAttribute attr)
Check if an attribute is a time attribute.
MlirType llhdRefTypeGet(MlirType element)
Create a reference type.
bool llhdTypeIsARefType(MlirType type)
Check if a type is a reference type.
MLIR_CAPI_EXPORTED bool llhdTypeIsATimeType(MlirType)
Check if a type is a time type.
static EvaluatorValuePtr unwrap(OMEvaluatorValue c)
The InstanceGraph op interface, see InstanceGraphInterface.td for more details.