CIRCT
20.0.0git
|
#include "mlir-c/IR.h"
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 | 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. More... | |
MLIR_CAPI_EXPORTED void | circtESIAppIDIndexFree (CirctESIAppIDIndex) |
Free an AppIDIndex. More... | |
MLIR_CAPI_EXPORTED MlirAttribute | circtESIAppIDIndexGetChildAppIDsOf (CirctESIAppIDIndex, MlirOperation) |
MLIR_CAPI_EXPORTED MlirAttribute | circtESIAppIDIndexGetAppIDPath (CirctESIAppIDIndex, MlirOperation fromMod, MlirAttribute appid, MlirLocation loc) |
typedef MlirLogicalResult(* CirctESIServiceGeneratorFunc) (MlirOperation serviceImplementReqOp, MlirOperation declOp, MlirOperation recordOp, void *userData) |
MLIR_CAPI_EXPORTED MlirType circtESIAnyTypeGet | ( | MlirContext | ctxt | ) |
Definition at line 56 of file ESI.cpp.
References esiaccel.accelerator::ctxt, circt::calyx::direction::get(), unwrap(), and wrap().
MLIR_CAPI_EXPORTED void circtESIAppendMlirFile | ( | MlirModule | cMod, |
MlirStringRef | fileName | ||
) |
MLIR_CAPI_EXPORTED MlirAttribute circtESIAppIDAttrGet | ( | MlirContext | ctxt, |
MlirStringRef | name, | ||
uint64_t | index | ||
) |
Definition at line 144 of file ESI.cpp.
References esiaccel.accelerator::ctxt, circt::calyx::direction::get(), unwrap(), and wrap().
MLIR_CAPI_EXPORTED bool circtESIAppIDAttrGetIndex | ( | MlirAttribute | attr, |
uint64_t * | index | ||
) |
MLIR_CAPI_EXPORTED MlirStringRef circtESIAppIDAttrGetName | ( | MlirAttribute | attr | ) |
Definition at line 153 of file ESI.cpp.
References circt::hw::instance_like_impl::getName(), unwrap(), and wrap().
MLIR_CAPI_EXPORTED MlirAttribute circtESIAppIDAttrGetNoIdx | ( | MlirContext | ctxt, |
MlirStringRef | name | ||
) |
Definition at line 149 of file ESI.cpp.
References esiaccel.accelerator::ctxt, circt::calyx::direction::get(), unwrap(), and wrap().
MLIR_CAPI_EXPORTED MlirAttribute circtESIAppIDAttrPathGet | ( | MlirContext | ctxt, |
MlirAttribute | root, | ||
intptr_t | numElements, | ||
MlirAttribute const * | elements | ||
) |
Definition at line 168 of file ESI.cpp.
References esiaccel.accelerator::ctxt, circt::calyx::direction::get(), numElements, unwrap(), and wrap().
MLIR_CAPI_EXPORTED MlirAttribute circtESIAppIDAttrPathGetComponent | ( | MlirAttribute | attr, |
uint64_t | index | ||
) |
MLIR_CAPI_EXPORTED uint64_t circtESIAppIDAttrPathGetNumComponents | ( | MlirAttribute | attr | ) |
MLIR_CAPI_EXPORTED MlirAttribute circtESIAppIDAttrPathGetRoot | ( | MlirAttribute | attr | ) |
MLIR_CAPI_EXPORTED void circtESIAppIDIndexFree | ( | CirctESIAppIDIndex | index | ) |
Free an AppIDIndex.
Definition at line 200 of file ESI.cpp.
References unwrap().
Referenced by PyAppIDIndex::~PyAppIDIndex().
MLIR_CAPI_EXPORTED CirctESIAppIDIndex circtESIAppIDIndexGet | ( | MlirOperation | root | ) |
Create an index of appids through which to do appid lookups efficiently.
Definition at line 192 of file ESI.cpp.
References unwrap(), and wrap().
Referenced by PyAppIDIndex::PyAppIDIndex().
MLIR_CAPI_EXPORTED MlirAttribute circtESIAppIDIndexGetAppIDPath | ( | CirctESIAppIDIndex | idx, |
MlirOperation | fromMod, | ||
MlirAttribute | appid, | ||
MlirLocation | loc | ||
) |
Definition at line 211 of file ESI.cpp.
References unwrap(), and wrap().
Referenced by PyAppIDIndex::getAppIDPathAttr().
MLIR_CAPI_EXPORTED MlirAttribute circtESIAppIDIndexGetChildAppIDsOf | ( | CirctESIAppIDIndex | idx, |
MlirOperation | op | ||
) |
Definition at line 205 of file ESI.cpp.
References unwrap(), and wrap().
Referenced by PyAppIDIndex::getChildAppIDsOf().
MLIR_CAPI_EXPORTED bool circtESIAttributeIsAnAppIDAttr | ( | MlirAttribute | attr | ) |
MLIR_CAPI_EXPORTED bool circtESIAttributeIsAnAppIDPathAttr | ( | MlirAttribute | attr | ) |
MLIR_CAPI_EXPORTED MlirType circtESIBundleTypeGet | ( | MlirContext | cctxt, |
size_t | numChannels, | ||
const CirctESIBundleTypeBundleChannel * | channels, | ||
bool | resettable | ||
) |
Definition at line 108 of file ESI.cpp.
References esiaccel.accelerator::ctxt, circt::esi::BundledChannel::direction, circt::calyx::direction::get(), unwrap(), and wrap().
MLIR_CAPI_EXPORTED CirctESIBundleTypeBundleChannel circtESIBundleTypeGetChannel | ( | MlirType | bundle, |
size_t | idx | ||
) |
Definition at line 128 of file ESI.cpp.
References circt::esi::BundledChannel::direction, circt::esi::BundledChannel::name, circt::esi::BundledChannel::type, unwrap(), and wrap().
MLIR_CAPI_EXPORTED size_t circtESIBundleTypeGetNumChannels | ( | MlirType | bundle | ) |
MLIR_CAPI_EXPORTED bool circtESIBundleTypeGetResettable | ( | MlirType | bundle | ) |
MLIR_CAPI_EXPORTED uint64_t circtESIChannelGetDataDelay | ( | MlirType | channelType | ) |
MLIR_CAPI_EXPORTED MlirType circtESIChannelGetInner | ( | MlirType | channelType | ) |
MLIR_CAPI_EXPORTED uint32_t circtESIChannelGetSignaling | ( | MlirType | channelType | ) |
MLIR_CAPI_EXPORTED MlirType circtESIChannelTypeGet | ( | MlirType | inner, |
uint32_t | signaling, | ||
uint64_t | dataDelay | ||
) |
Definition at line 33 of file ESI.cpp.
References circt::calyx::direction::get(), unwrap(), and wrap().
MLIR_CAPI_EXPORTED MlirType circtESIListTypeGet | ( | MlirType | inner | ) |
Definition at line 64 of file ESI.cpp.
References circt::calyx::direction::get(), unwrap(), and wrap().
MLIR_CAPI_EXPORTED MlirType circtESIListTypeGetElementType | ( | MlirType | channelType | ) |
MLIR_CAPI_EXPORTED MlirOperation circtESILookup | ( | MlirModule | mod, |
MlirStringRef | symbol | ||
) |
MLIR_CAPI_EXPORTED void circtESIRegisterGlobalServiceGenerator | ( | MlirStringRef | impl_type, |
CirctESIServiceGeneratorFunc | genFunc, | ||
void * | userData | ||
) |
Definition at line 90 of file ESI.cpp.
References circt::esi::ServiceGeneratorDispatcher::globalDispatcher(), circt::esi::ServiceGeneratorDispatcher::registerGenerator(), unwrap(), and wrap().
Referenced by registerServiceGenerator().
MLIR_CAPI_EXPORTED bool circtESITypeIsABundleType | ( | MlirType | type | ) |
MLIR_CAPI_EXPORTED bool circtESITypeIsAChannelType | ( | MlirType | type | ) |
MLIR_CAPI_EXPORTED bool circtESITypeIsAListType | ( | MlirType | type | ) |
MLIR_CAPI_EXPORTED bool circtESITypeIsAnAnyType | ( | MlirType | type | ) |
MLIR_DECLARE_CAPI_DIALECT_REGISTRATION | ( | ESI | , |
esi | |||
) |
MLIR_CAPI_EXPORTED void registerESIPasses | ( | void | ) |
Definition at line 27 of file ESI.cpp.
References circt::esi::registerESIPasses().