CIRCT 20.0.0git
Loading...
Searching...
No Matches
Classes | Typedefs | Functions
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 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 68 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 148 of file ESI.cpp.

References unwrap(), and wrap().

◆ circtESIAppIDAttrGetIndex()

MLIR_CAPI_EXPORTED bool circtESIAppIDAttrGetIndex ( MlirAttribute  attr,
uint64_t *  index 
)

Definition at line 160 of file ESI.cpp.

References unwrap().

◆ circtESIAppIDAttrGetName()

MLIR_CAPI_EXPORTED MlirStringRef circtESIAppIDAttrGetName ( MlirAttribute  attr)

Definition at line 157 of file ESI.cpp.

References unwrap(), and wrap().

◆ circtESIAppIDAttrGetNoIdx()

MLIR_CAPI_EXPORTED MlirAttribute circtESIAppIDAttrGetNoIdx ( MlirContext  ctxt,
MlirStringRef  name 
)

Definition at line 153 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 172 of file ESI.cpp.

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

◆ circtESIAppIDAttrPathGetComponent()

MLIR_CAPI_EXPORTED MlirAttribute circtESIAppIDAttrPathGetComponent ( MlirAttribute  attr,
uint64_t  index 
)

Definition at line 187 of file ESI.cpp.

References unwrap(), and wrap().

◆ circtESIAppIDAttrPathGetNumComponents()

MLIR_CAPI_EXPORTED uint64_t circtESIAppIDAttrPathGetNumComponents ( MlirAttribute  attr)

Definition at line 184 of file ESI.cpp.

References unwrap().

◆ circtESIAppIDAttrPathGetRoot()

MLIR_CAPI_EXPORTED MlirAttribute circtESIAppIDAttrPathGetRoot ( MlirAttribute  attr)

Definition at line 181 of file ESI.cpp.

References unwrap(), and wrap().

◆ circtESIAppIDIndexFree()

MLIR_CAPI_EXPORTED void circtESIAppIDIndexFree ( CirctESIAppIDIndex  index)

Free an AppIDIndex.

Definition at line 204 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 196 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 215 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 209 of file ESI.cpp.

References unwrap(), and wrap().

Referenced by PyAppIDIndex::getChildAppIDsOf().

◆ circtESIAttributeIsAnAppIDAttr()

MLIR_CAPI_EXPORTED bool circtESIAttributeIsAnAppIDAttr ( MlirAttribute  attr)

Definition at line 144 of file ESI.cpp.

References unwrap().

◆ circtESIAttributeIsAnAppIDPathAttr()

MLIR_CAPI_EXPORTED bool circtESIAttributeIsAnAppIDPathAttr ( MlirAttribute  attr)

Definition at line 168 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 circt::esi::BundledChannel::direction, 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().

◆ 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().