CIRCT 24.0.0git
Loading...
Searching...
No Matches
ESI.h File Reference
#include "mlir-c/IR.h"
Include dependency graph for ESI.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  CirctESIBundleTypeBundleChannel
struct  CirctESIAppIDIndex

Typedefs

typedef MlirLogicalResult(* CirctESIServiceGeneratorFunc) (MlirOperation serviceImplementReqOp, MlirOperation declOp, MlirOperation recordOp, void *userData)

Functions

 MLIR_DECLARE_CAPI_DIALECT_REGISTRATION (ESI, esi)
MLIR_CAPI_EXPORTED void registerESIPasses (void)
MLIR_CAPI_EXPORTED bool circtESITypeIsAChannelType (MlirType type)
MLIR_CAPI_EXPORTED MlirType circtESIChannelTypeGet (MlirType inner, uint32_t signaling, uint64_t dataDelay)
MLIR_CAPI_EXPORTED MlirType circtESIChannelGetInner (MlirType channelType)
MLIR_CAPI_EXPORTED uint32_t circtESIChannelGetSignaling (MlirType channelType)
MLIR_CAPI_EXPORTED uint64_t circtESIChannelGetDataDelay (MlirType channelType)
MLIR_CAPI_EXPORTED bool circtESITypeIsAnAnyType (MlirType type)
MLIR_CAPI_EXPORTED MlirType circtESIAnyTypeGet (MlirContext)
MLIR_CAPI_EXPORTED bool circtESITypeIsAListType (MlirType type)
MLIR_CAPI_EXPORTED MlirType circtESIListTypeGet (MlirType inner)
MLIR_CAPI_EXPORTED MlirType circtESIListTypeGetElementType (MlirType channelType)
MLIR_CAPI_EXPORTED void circtESIAppendMlirFile (MlirModule, MlirStringRef fileName)
MLIR_CAPI_EXPORTED MlirOperation circtESILookup (MlirModule, MlirStringRef symbol)
MLIR_CAPI_EXPORTED bool circtESICheckInnerTypeMatch (MlirType to, MlirType from)
MLIR_CAPI_EXPORTED bool circtESITypeIsABundleType (MlirType type)
MLIR_CAPI_EXPORTED MlirType circtESIBundleTypeGet (MlirContext, size_t numChannels, const CirctESIBundleTypeBundleChannel *channels, bool resettable)
MLIR_CAPI_EXPORTED bool circtESIBundleTypeGetResettable (MlirType bundle)
MLIR_CAPI_EXPORTED size_t circtESIBundleTypeGetNumChannels (MlirType bundle)
MLIR_CAPI_EXPORTED CirctESIBundleTypeBundleChannel circtESIBundleTypeGetChannel (MlirType bundle, size_t idx)
MLIR_CAPI_EXPORTED bool circtESITypeIsAWindowType (MlirType type)
MLIR_CAPI_EXPORTED MlirType circtESIWindowTypeGet (MlirContext cctxt, MlirAttribute name, MlirType into, size_t numFrames, const MlirType *frames)
MLIR_CAPI_EXPORTED MlirAttribute circtESIWindowTypeGetName (MlirType window)
MLIR_CAPI_EXPORTED MlirType circtESIWindowTypeGetInto (MlirType window)
MLIR_CAPI_EXPORTED size_t circtESIWindowTypeGetNumFrames (MlirType window)
MLIR_CAPI_EXPORTED MlirType circtESIWindowTypeGetFrame (MlirType window, size_t idx)
MLIR_CAPI_EXPORTED MlirType circtESIWindowTypeGetLoweredType (MlirType window)
MLIR_CAPI_EXPORTED bool circtESITypeIsAWindowFrameType (MlirType type)
MLIR_CAPI_EXPORTED MlirType circtESIWindowFrameTypeGet (MlirContext cctxt, MlirAttribute name, size_t numMembers, const MlirType *members)
MLIR_CAPI_EXPORTED MlirAttribute circtESIWindowFrameTypeGetName (MlirType frame)
MLIR_CAPI_EXPORTED size_t circtESIWindowFrameTypeGetNumMembers (MlirType frame)
MLIR_CAPI_EXPORTED MlirType circtESIWindowFrameTypeGetMember (MlirType frame, size_t idx)
MLIR_CAPI_EXPORTED bool circtESITypeIsAWindowFieldType (MlirType type)
MLIR_CAPI_EXPORTED MlirType circtESIWindowFieldTypeGet (MlirContext cctxt, MlirAttribute fieldName, uint64_t numItems, uint64_t bulkCountWidth)
MLIR_CAPI_EXPORTED MlirAttribute circtESIWindowFieldTypeGetFieldName (MlirType field)
MLIR_CAPI_EXPORTED uint64_t circtESIWindowFieldTypeGetNumItems (MlirType field)
MLIR_CAPI_EXPORTED uint64_t circtESIWindowFieldTypeGetBulkCountWidth (MlirType field)
MLIR_CAPI_EXPORTED void circtESIRegisterGlobalServiceGenerator (MlirStringRef impl_type, CirctESIServiceGeneratorFunc, void *userData)
MLIR_CAPI_EXPORTED bool circtESIAttributeIsAnAppIDAttr (MlirAttribute)
MLIR_CAPI_EXPORTED MlirAttribute circtESIAppIDAttrGet (MlirContext, MlirStringRef name, uint64_t index)
MLIR_CAPI_EXPORTED MlirAttribute circtESIAppIDAttrGetNoIdx (MlirContext ctxt, MlirStringRef name)
MLIR_CAPI_EXPORTED MlirStringRef circtESIAppIDAttrGetName (MlirAttribute attr)
MLIR_CAPI_EXPORTED bool circtESIAppIDAttrGetIndex (MlirAttribute attr, uint64_t *index)
MLIR_CAPI_EXPORTED bool circtESIAttributeIsAnAppIDPathAttr (MlirAttribute)
MLIR_CAPI_EXPORTED MlirAttribute circtESIAppIDAttrPathGet (MlirContext, MlirAttribute root, intptr_t numElements, MlirAttribute const *elements)
MLIR_CAPI_EXPORTED MlirAttribute circtESIAppIDAttrPathGetRoot (MlirAttribute attr)
MLIR_CAPI_EXPORTED uint64_t circtESIAppIDAttrPathGetNumComponents (MlirAttribute attr)
MLIR_CAPI_EXPORTED MlirAttribute circtESIAppIDAttrPathGetComponent (MlirAttribute attr, uint64_t index)
MLIR_CAPI_EXPORTED CirctESIAppIDIndex circtESIAppIDIndexGet (MlirOperation root)
 Create an index of appids through which to do appid lookups efficiently.
MLIR_CAPI_EXPORTED void circtESIAppIDIndexFree (CirctESIAppIDIndex)
 Free an AppIDIndex.
MLIR_CAPI_EXPORTED MlirAttribute circtESIAppIDIndexGetChildAppIDsOf (CirctESIAppIDIndex, MlirOperation)
MLIR_CAPI_EXPORTED MlirAttribute circtESIAppIDIndexGetAppIDPath (CirctESIAppIDIndex, MlirOperation fromMod, MlirAttribute appid, MlirLocation loc)

Typedef Documentation

◆ CirctESIServiceGeneratorFunc

typedef MlirLogicalResult(* CirctESIServiceGeneratorFunc) (MlirOperation serviceImplementReqOp, MlirOperation declOp, MlirOperation recordOp, void *userData)

Definition at line 106 of file ESI.h.

Function Documentation

◆ circtESIAnyTypeGet()

MLIR_CAPI_EXPORTED MlirType circtESIAnyTypeGet ( MlirContext ctxt)

Definition at line 56 of file ESI.cpp.

References unwrap(), and wrap().

◆ circtESIAppendMlirFile()

MLIR_CAPI_EXPORTED void circtESIAppendMlirFile ( MlirModule cMod,
MlirStringRef fileName )

Definition at line 77 of file ESI.cpp.

References assert(), and unwrap().

◆ circtESIAppIDAttrGet()

MLIR_CAPI_EXPORTED MlirAttribute circtESIAppIDAttrGet ( MlirContext ctxt,
MlirStringRef name,
uint64_t index )

Definition at line 238 of file ESI.cpp.

References unwrap(), and wrap().

◆ circtESIAppIDAttrGetIndex()

MLIR_CAPI_EXPORTED bool circtESIAppIDAttrGetIndex ( MlirAttribute attr,
uint64_t * index )

Definition at line 250 of file ESI.cpp.

References unwrap().

◆ circtESIAppIDAttrGetName()

MLIR_CAPI_EXPORTED MlirStringRef circtESIAppIDAttrGetName ( MlirAttribute attr)

Definition at line 247 of file ESI.cpp.

References unwrap(), and wrap().

◆ circtESIAppIDAttrGetNoIdx()

MLIR_CAPI_EXPORTED MlirAttribute circtESIAppIDAttrGetNoIdx ( MlirContext ctxt,
MlirStringRef name )

Definition at line 243 of file ESI.cpp.

References unwrap(), and wrap().

◆ circtESIAppIDAttrPathGet()

MLIR_CAPI_EXPORTED MlirAttribute circtESIAppIDAttrPathGet ( MlirContext ctxt,
MlirAttribute root,
intptr_t numElements,
MlirAttribute const * elements )

Definition at line 262 of file ESI.cpp.

References numElements, unwrap(), and wrap().

◆ circtESIAppIDAttrPathGetComponent()

MLIR_CAPI_EXPORTED MlirAttribute circtESIAppIDAttrPathGetComponent ( MlirAttribute attr,
uint64_t index )

Definition at line 277 of file ESI.cpp.

References unwrap(), and wrap().

◆ circtESIAppIDAttrPathGetNumComponents()

MLIR_CAPI_EXPORTED uint64_t circtESIAppIDAttrPathGetNumComponents ( MlirAttribute attr)

Definition at line 274 of file ESI.cpp.

References unwrap().

◆ circtESIAppIDAttrPathGetRoot()

MLIR_CAPI_EXPORTED MlirAttribute circtESIAppIDAttrPathGetRoot ( MlirAttribute attr)

Definition at line 271 of file ESI.cpp.

References unwrap(), and wrap().

◆ circtESIAppIDIndexFree()

MLIR_CAPI_EXPORTED void circtESIAppIDIndexFree ( CirctESIAppIDIndex index)

Free an AppIDIndex.

Definition at line 294 of file ESI.cpp.

References unwrap().

Referenced by PyAppIDIndex::~PyAppIDIndex().

◆ circtESIAppIDIndexGet()

MLIR_CAPI_EXPORTED CirctESIAppIDIndex circtESIAppIDIndexGet ( MlirOperation root)

Create an index of appids through which to do appid lookups efficiently.

Definition at line 286 of file ESI.cpp.

References unwrap(), and wrap().

Referenced by PyAppIDIndex::PyAppIDIndex().

◆ circtESIAppIDIndexGetAppIDPath()

MLIR_CAPI_EXPORTED MlirAttribute circtESIAppIDIndexGetAppIDPath ( CirctESIAppIDIndex idx,
MlirOperation fromMod,
MlirAttribute appid,
MlirLocation loc )

Definition at line 305 of file ESI.cpp.

References unwrap(), and wrap().

Referenced by PyAppIDIndex::getAppIDPathAttr().

◆ circtESIAppIDIndexGetChildAppIDsOf()

MLIR_CAPI_EXPORTED MlirAttribute circtESIAppIDIndexGetChildAppIDsOf ( CirctESIAppIDIndex idx,
MlirOperation op )

Definition at line 299 of file ESI.cpp.

References unwrap(), and wrap().

Referenced by PyAppIDIndex::getChildAppIDsOf().

◆ circtESIAttributeIsAnAppIDAttr()

MLIR_CAPI_EXPORTED bool circtESIAttributeIsAnAppIDAttr ( MlirAttribute attr)

Definition at line 234 of file ESI.cpp.

References unwrap().

◆ circtESIAttributeIsAnAppIDPathAttr()

MLIR_CAPI_EXPORTED bool circtESIAttributeIsAnAppIDPathAttr ( MlirAttribute attr)

Definition at line 258 of file ESI.cpp.

References unwrap().

◆ circtESIBundleTypeGet()

MLIR_CAPI_EXPORTED MlirType circtESIBundleTypeGet ( MlirContext cctxt,
size_t numChannels,
const CirctESIBundleTypeBundleChannel * channels,
bool resettable )

Definition at line 112 of file ESI.cpp.

References unwrap(), and wrap().

◆ circtESIBundleTypeGetChannel()

MLIR_CAPI_EXPORTED CirctESIBundleTypeBundleChannel circtESIBundleTypeGetChannel ( MlirType bundle,
size_t idx )

◆ circtESIBundleTypeGetNumChannels()

MLIR_CAPI_EXPORTED size_t circtESIBundleTypeGetNumChannels ( MlirType bundle)

Definition at line 129 of file ESI.cpp.

References unwrap().

◆ circtESIBundleTypeGetResettable()

MLIR_CAPI_EXPORTED bool circtESIBundleTypeGetResettable ( MlirType bundle)

Definition at line 126 of file ESI.cpp.

References unwrap().

◆ circtESIChannelGetDataDelay()

MLIR_CAPI_EXPORTED uint64_t circtESIChannelGetDataDelay ( MlirType channelType)

Definition at line 49 of file ESI.cpp.

References unwrap().

◆ circtESIChannelGetInner()

MLIR_CAPI_EXPORTED MlirType circtESIChannelGetInner ( MlirType channelType)

Definition at line 43 of file ESI.cpp.

References unwrap(), and wrap().

◆ circtESIChannelGetSignaling()

MLIR_CAPI_EXPORTED uint32_t circtESIChannelGetSignaling ( MlirType channelType)

Definition at line 46 of file ESI.cpp.

References unwrap().

◆ circtESIChannelTypeGet()

MLIR_CAPI_EXPORTED MlirType circtESIChannelTypeGet ( MlirType inner,
uint32_t signaling,
uint64_t dataDelay )

Definition at line 33 of file ESI.cpp.

References unwrap(), and wrap().

◆ circtESICheckInnerTypeMatch()

MLIR_CAPI_EXPORTED bool circtESICheckInnerTypeMatch ( MlirType to,
MlirType from )

Definition at line 73 of file ESI.cpp.

References circt::esi::checkInnerTypeMatch(), and unwrap().

◆ circtESIListTypeGet()

MLIR_CAPI_EXPORTED MlirType circtESIListTypeGet ( MlirType inner)

Definition at line 64 of file ESI.cpp.

References unwrap(), and wrap().

◆ circtESIListTypeGetElementType()

MLIR_CAPI_EXPORTED MlirType circtESIListTypeGetElementType ( MlirType channelType)

Definition at line 69 of file ESI.cpp.

References unwrap(), and wrap().

◆ circtESILookup()

MLIR_CAPI_EXPORTED MlirOperation circtESILookup ( MlirModule mod,
MlirStringRef symbol )

Definition at line 90 of file ESI.cpp.

References unwrap(), and wrap().

◆ circtESIRegisterGlobalServiceGenerator()

MLIR_CAPI_EXPORTED void circtESIRegisterGlobalServiceGenerator ( MlirStringRef impl_type,
CirctESIServiceGeneratorFunc genFunc,
void * userData )

◆ circtESITypeIsABundleType()

MLIR_CAPI_EXPORTED bool circtESITypeIsABundleType ( MlirType type)

Definition at line 109 of file ESI.cpp.

References unwrap().

◆ circtESITypeIsAChannelType()

MLIR_CAPI_EXPORTED bool circtESITypeIsAChannelType ( MlirType type)

Definition at line 29 of file ESI.cpp.

References unwrap().

◆ circtESITypeIsAListType()

MLIR_CAPI_EXPORTED bool circtESITypeIsAListType ( MlirType type)

Definition at line 60 of file ESI.cpp.

References unwrap().

◆ circtESITypeIsAnAnyType()

MLIR_CAPI_EXPORTED bool circtESITypeIsAnAnyType ( MlirType type)

Definition at line 53 of file ESI.cpp.

References unwrap().

◆ circtESITypeIsAWindowFieldType()

MLIR_CAPI_EXPORTED bool circtESITypeIsAWindowFieldType ( MlirType type)

Definition at line 206 of file ESI.cpp.

References unwrap().

◆ circtESITypeIsAWindowFrameType()

MLIR_CAPI_EXPORTED bool circtESITypeIsAWindowFrameType ( MlirType type)

Definition at line 179 of file ESI.cpp.

References unwrap().

◆ circtESITypeIsAWindowType()

MLIR_CAPI_EXPORTED bool circtESITypeIsAWindowType ( MlirType type)

Definition at line 144 of file ESI.cpp.

References unwrap().

◆ circtESIWindowFieldTypeGet()

MLIR_CAPI_EXPORTED MlirType circtESIWindowFieldTypeGet ( MlirContext cctxt,
MlirAttribute fieldName,
uint64_t numItems,
uint64_t bulkCountWidth )

Definition at line 210 of file ESI.cpp.

References unwrap(), and wrap().

◆ circtESIWindowFieldTypeGetBulkCountWidth()

MLIR_CAPI_EXPORTED uint64_t circtESIWindowFieldTypeGetBulkCountWidth ( MlirType field)

Definition at line 226 of file ESI.cpp.

References unwrap().

◆ circtESIWindowFieldTypeGetFieldName()

MLIR_CAPI_EXPORTED MlirAttribute circtESIWindowFieldTypeGetFieldName ( MlirType field)

Definition at line 218 of file ESI.cpp.

References getFieldName(), unwrap(), and wrap().

◆ circtESIWindowFieldTypeGetNumItems()

MLIR_CAPI_EXPORTED uint64_t circtESIWindowFieldTypeGetNumItems ( MlirType field)

Definition at line 222 of file ESI.cpp.

References unwrap().

◆ circtESIWindowFrameTypeGet()

MLIR_CAPI_EXPORTED MlirType circtESIWindowFrameTypeGet ( MlirContext cctxt,
MlirAttribute name,
size_t numMembers,
const MlirType * members )

Definition at line 183 of file ESI.cpp.

References unwrap(), and wrap().

◆ circtESIWindowFrameTypeGetMember()

MLIR_CAPI_EXPORTED MlirType circtESIWindowFrameTypeGetMember ( MlirType frame,
size_t idx )

Definition at line 202 of file ESI.cpp.

References unwrap(), and wrap().

◆ circtESIWindowFrameTypeGetName()

MLIR_CAPI_EXPORTED MlirAttribute circtESIWindowFrameTypeGetName ( MlirType frame)

Definition at line 194 of file ESI.cpp.

References unwrap(), and wrap().

◆ circtESIWindowFrameTypeGetNumMembers()

MLIR_CAPI_EXPORTED size_t circtESIWindowFrameTypeGetNumMembers ( MlirType frame)

Definition at line 198 of file ESI.cpp.

References unwrap().

◆ circtESIWindowTypeGet()

MLIR_CAPI_EXPORTED MlirType circtESIWindowTypeGet ( MlirContext cctxt,
MlirAttribute name,
MlirType into,
size_t numFrames,
const MlirType * frames )

Definition at line 148 of file ESI.cpp.

References unwrap(), and wrap().

◆ circtESIWindowTypeGetFrame()

MLIR_CAPI_EXPORTED MlirType circtESIWindowTypeGetFrame ( MlirType window,
size_t idx )

Definition at line 171 of file ESI.cpp.

References unwrap(), and wrap().

◆ circtESIWindowTypeGetInto()

MLIR_CAPI_EXPORTED MlirType circtESIWindowTypeGetInto ( MlirType window)

Definition at line 163 of file ESI.cpp.

References unwrap(), and wrap().

◆ circtESIWindowTypeGetLoweredType()

MLIR_CAPI_EXPORTED MlirType circtESIWindowTypeGetLoweredType ( MlirType window)

Definition at line 175 of file ESI.cpp.

References unwrap(), and wrap().

◆ circtESIWindowTypeGetName()

MLIR_CAPI_EXPORTED MlirAttribute circtESIWindowTypeGetName ( MlirType window)

Definition at line 159 of file ESI.cpp.

References unwrap(), and wrap().

◆ circtESIWindowTypeGetNumFrames()

MLIR_CAPI_EXPORTED size_t circtESIWindowTypeGetNumFrames ( MlirType window)

Definition at line 167 of file ESI.cpp.

References unwrap().

◆ MLIR_DECLARE_CAPI_DIALECT_REGISTRATION()

MLIR_DECLARE_CAPI_DIALECT_REGISTRATION ( ESI ,
esi  )

◆ registerESIPasses()

MLIR_CAPI_EXPORTED void registerESIPasses ( void )

Definition at line 27 of file ESI.cpp.

References circt::esi::registerESIPasses(), and registerESIPasses().

Referenced by registerESIPasses().