9 #ifndef CIRCT_C_DIALECT_LLHD_H
10 #define CIRCT_C_DIALECT_LLHD_H
12 #include "mlir-c/IR.h"
56 MlirStringRef timeUnit,
MLIR_CAPI_EXPORTED uint64_t llhdTimeAttrGetSeconds(MlirAttribute)
Get the seconds component of a time attribute.
MLIR_CAPI_EXPORTED MlirStringRef llhdTimeAttrGetTimeUnit(MlirAttribute)
Get the time unit of a time attribute.
MLIR_CAPI_EXPORTED MlirType llhdTimeTypeGet(MlirContext ctx)
Create a time type.
MLIR_CAPI_EXPORTED uint64_t llhdTimeAttrGetDelta(MlirAttribute)
Get the delta component of a time attribute.
MLIR_CAPI_EXPORTED MlirType llhdSignalTypeGet(MlirType element)
Create a signal type.
MLIR_CAPI_EXPORTED uint64_t llhdTimeAttrGetEpsilon(MlirAttribute)
Get the epsilon component of a time attribute.
MLIR_CAPI_EXPORTED bool llhdTypeIsAPointerType(MlirType)
Check if a type is a pointer type.
MLIR_CAPI_EXPORTED bool llhdTypeIsASignalType(MlirType)
Check if a type is a signal type.
MLIR_CAPI_EXPORTED MlirType llhdPointerTypeGet(MlirType element)
Create a pointer type.
MLIR_CAPI_EXPORTED MlirType llhdSignalTypeGetElementType(MlirType)
Get the inner type of a signal.
MLIR_CAPI_EXPORTED bool llhdTypeIsATimeType(MlirType)
Check if a type is a time type.
MLIR_CAPI_EXPORTED MlirType llhdPointerTypeGetElementType(MlirType)
Get the inner type of a pointer.
MLIR_DECLARE_CAPI_DIALECT_REGISTRATION(LLHD, llhd)
MLIR_CAPI_EXPORTED bool llhdAttrIsATimeAttr(MlirAttribute)
Check if an attribute is a time attribute.
MLIR_CAPI_EXPORTED MlirAttribute llhdTimeAttrGet(MlirContext ctx, MlirStringRef timeUnit, uint64_t seconds, uint64_t delta, uint64_t epsilon)
Create a time attribute.