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,
64 TimeAttr::get(
unwrap(ctx), seconds,
unwrap(timeUnit), delta, epsilon));
69 return wrap(cast<TimeAttr>(
unwrap(attr)).getTimeUnit());
74 return cast<TimeAttr>(
unwrap(attr)).getTime();
79 return cast<TimeAttr>(
unwrap(attr)).getDelta();
84 return cast<TimeAttr>(
unwrap(attr)).getEpsilon();
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.
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.
bool llhdTypeIsATimeType(MlirType type)
Check if a type is a time type.
MlirType llhdRefTypeGet(MlirType element)
Create a reference type.
MlirAttribute llhdTimeAttrGet(MlirContext ctx, MlirStringRef timeUnit, uint64_t seconds, uint64_t delta, uint64_t epsilon)
Create a time attribute.
uint64_t llhdTimeAttrGetEpsilon(MlirAttribute attr)
Get the epsilon component of a time attribute.
bool llhdTypeIsARefType(MlirType type)
Check if a type is a reference type.
static EvaluatorValuePtr unwrap(OMEvaluatorValue c)
The InstanceGraph op interface, see InstanceGraphInterface.td for more details.