9 #ifndef CIRCT_C_DIALECT_ESI_H
10 #define CIRCT_C_DIALECT_ESI_H
12 #include "mlir-c/IR.h"
34 MLIR_CAPI_EXPORTED MlirType
38 MlirStringRef fileName);
40 MlirStringRef symbol);
55 MlirContext,
size_t numChannels,
67 MlirOperation serviceImplementReqOp, MlirOperation declOp,
68 MlirOperation recordOp,
void *userData);
90 MlirAttribute
const *elements);
91 MLIR_CAPI_EXPORTED MlirAttribute
93 MLIR_CAPI_EXPORTED uint64_t
95 MLIR_CAPI_EXPORTED MlirAttribute
109 MLIR_CAPI_EXPORTED MlirAttribute
114 MlirOperation fromMod,
MlirType uint64_t numElements
MLIR_CAPI_EXPORTED uint32_t circtESIChannelGetSignaling(MlirType channelType)
MLIR_CAPI_EXPORTED MlirType circtESIBundleTypeGet(MlirContext, size_t numChannels, const CirctESIBundleTypeBundleChannel *channels, bool resettable)
MLIR_CAPI_EXPORTED MlirAttribute circtESIAppIDAttrGet(MlirContext, MlirStringRef name, uint64_t index)
MLIR_CAPI_EXPORTED bool circtESIBundleTypeGetResettable(MlirType bundle)
MLIR_CAPI_EXPORTED bool circtESITypeIsAnAnyType(MlirType type)
MLIR_CAPI_EXPORTED void circtESIRegisterGlobalServiceGenerator(MlirStringRef impl_type, CirctESIServiceGeneratorFunc, void *userData)
MlirLogicalResult(* CirctESIServiceGeneratorFunc)(MlirOperation serviceImplementReqOp, MlirOperation declOp, MlirOperation recordOp, void *userData)
MLIR_CAPI_EXPORTED MlirOperation circtESILookup(MlirModule, MlirStringRef symbol)
MLIR_CAPI_EXPORTED MlirAttribute circtESIAppIDIndexGetChildAppIDsOf(CirctESIAppIDIndex, MlirOperation)
MLIR_CAPI_EXPORTED MlirType circtESIChannelGetInner(MlirType channelType)
MLIR_CAPI_EXPORTED CirctESIBundleTypeBundleChannel circtESIBundleTypeGetChannel(MlirType bundle, size_t idx)
MLIR_CAPI_EXPORTED void registerESIPasses(void)
MLIR_CAPI_EXPORTED void circtESIAppIDIndexFree(CirctESIAppIDIndex)
Free an AppIDIndex.
MLIR_CAPI_EXPORTED MlirAttribute circtESIAppIDAttrGetNoIdx(MlirContext ctxt, MlirStringRef name)
MLIR_CAPI_EXPORTED uint64_t circtESIAppIDAttrPathGetNumComponents(MlirAttribute attr)
MLIR_CAPI_EXPORTED void circtESIAppendMlirFile(MlirModule, MlirStringRef fileName)
MLIR_CAPI_EXPORTED MlirAttribute circtESIAppIDIndexGetAppIDPath(CirctESIAppIDIndex, MlirOperation fromMod, MlirAttribute appid, MlirLocation loc)
MLIR_CAPI_EXPORTED MlirStringRef circtESIAppIDAttrGetName(MlirAttribute attr)
MLIR_CAPI_EXPORTED MlirType circtESIChannelTypeGet(MlirType inner, uint32_t signaling, uint64_t dataDelay)
MLIR_CAPI_EXPORTED bool circtESITypeIsAChannelType(MlirType type)
MLIR_CAPI_EXPORTED size_t circtESIBundleTypeGetNumChannels(MlirType bundle)
MLIR_CAPI_EXPORTED MlirType circtESIListTypeGetElementType(MlirType channelType)
MLIR_CAPI_EXPORTED MlirType circtESIAnyTypeGet(MlirContext)
MLIR_CAPI_EXPORTED MlirAttribute circtESIAppIDAttrPathGetComponent(MlirAttribute attr, uint64_t index)
MLIR_DECLARE_CAPI_DIALECT_REGISTRATION(ESI, esi)
MLIR_CAPI_EXPORTED uint64_t circtESIChannelGetDataDelay(MlirType channelType)
MLIR_CAPI_EXPORTED MlirAttribute circtESIAppIDAttrPathGet(MlirContext, MlirAttribute root, intptr_t numElements, MlirAttribute const *elements)
MLIR_CAPI_EXPORTED MlirType circtESIListTypeGet(MlirType inner)
MLIR_CAPI_EXPORTED bool circtESITypeIsABundleType(MlirType type)
MLIR_CAPI_EXPORTED bool circtESIAppIDAttrGetIndex(MlirAttribute attr, uint64_t *index)
MLIR_CAPI_EXPORTED MlirAttribute circtESIAppIDAttrPathGetRoot(MlirAttribute attr)
MLIR_CAPI_EXPORTED bool circtESIAttributeIsAnAppIDPathAttr(MlirAttribute)
MLIR_CAPI_EXPORTED CirctESIAppIDIndex circtESIAppIDIndexGet(MlirOperation root)
Create an index of appids through which to do appid lookups efficiently.
MLIR_CAPI_EXPORTED bool circtESIAttributeIsAnAppIDAttr(MlirAttribute)
MLIR_CAPI_EXPORTED bool circtESITypeIsAListType(MlirType type)