CIRCT
20.0.0git
|
#include "circt-c/Dialect/ESI.h"
#include "circt/Dialect/ESI/AppID.h"
#include "circt/Dialect/ESI/ESIServices.h"
#include "circt/Dialect/ESI/ESITypes.h"
#include "mlir/CAPI/IR.h"
#include "mlir/CAPI/Registration.h"
#include "mlir/CAPI/Support.h"
#include "mlir/CAPI/Utils.h"
#include "mlir/IR/Builders.h"
#include "mlir/IR/SymbolTable.h"
#include "mlir/Parser/Parser.h"
#include "mlir/Support/FileUtilities.h"
Go to the source code of this file.
Functions | |
void | registerESIPasses () |
bool | circtESITypeIsAChannelType (MlirType type) |
MlirType | circtESIChannelTypeGet (MlirType inner, uint32_t signaling, uint64_t dataDelay) |
MlirType | circtESIChannelGetInner (MlirType channelType) |
uint32_t | circtESIChannelGetSignaling (MlirType channelType) |
uint64_t | circtESIChannelGetDataDelay (MlirType channelType) |
bool | circtESITypeIsAnAnyType (MlirType type) |
MlirType | circtESIAnyTypeGet (MlirContext ctxt) |
bool | circtESITypeIsAListType (MlirType type) |
MlirType | circtESIListTypeGet (MlirType inner) |
MlirType | circtESIListTypeGetElementType (MlirType list) |
void | circtESIAppendMlirFile (MlirModule cMod, MlirStringRef filename) |
MlirOperation | circtESILookup (MlirModule mod, MlirStringRef symbol) |
void | circtESIRegisterGlobalServiceGenerator (MlirStringRef impl_type, CirctESIServiceGeneratorFunc genFunc, void *userData) |
bool | circtESITypeIsABundleType (MlirType type) |
MlirType | circtESIBundleTypeGet (MlirContext cctxt, size_t numChannels, const CirctESIBundleTypeBundleChannel *channels, bool resettable) |
bool | circtESIBundleTypeGetResettable (MlirType bundle) |
size_t | circtESIBundleTypeGetNumChannels (MlirType bundle) |
CirctESIBundleTypeBundleChannel | circtESIBundleTypeGetChannel (MlirType bundle, size_t idx) |
bool | circtESIAttributeIsAnAppIDAttr (MlirAttribute attr) |
MlirAttribute | circtESIAppIDAttrGet (MlirContext ctxt, MlirStringRef name, uint64_t index) |
MlirAttribute | circtESIAppIDAttrGetNoIdx (MlirContext ctxt, MlirStringRef name) |
MlirStringRef | circtESIAppIDAttrGetName (MlirAttribute attr) |
bool | circtESIAppIDAttrGetIndex (MlirAttribute attr, uint64_t *indexOut) |
bool | circtESIAttributeIsAnAppIDPathAttr (MlirAttribute attr) |
MlirAttribute | circtESIAppIDAttrPathGet (MlirContext ctxt, MlirAttribute root, intptr_t numElements, MlirAttribute const *cElements) |
MlirAttribute | circtESIAppIDAttrPathGetRoot (MlirAttribute attr) |
uint64_t | circtESIAppIDAttrPathGetNumComponents (MlirAttribute attr) |
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 index) |
Free an AppIDIndex. More... | |
MLIR_CAPI_EXPORTED MlirAttribute | circtESIAppIDIndexGetChildAppIDsOf (CirctESIAppIDIndex idx, MlirOperation op) |
MLIR_CAPI_EXPORTED MlirAttribute | circtESIAppIDIndexGetAppIDPath (CirctESIAppIDIndex idx, MlirOperation fromMod, MlirAttribute appid, MlirLocation loc) |
MlirType circtESIAnyTypeGet | ( | MlirContext | ctxt | ) |
Definition at line 56 of file ESI.cpp.
References esiaccel.accelerator::ctxt, circt::calyx::direction::get(), unwrap(), and wrap().
void circtESIAppendMlirFile | ( | MlirModule | cMod, |
MlirStringRef | filename | ||
) |
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().
bool circtESIAppIDAttrGetIndex | ( | MlirAttribute | attr, |
uint64_t * | indexOut | ||
) |
MlirStringRef circtESIAppIDAttrGetName | ( | MlirAttribute | attr | ) |
Definition at line 153 of file ESI.cpp.
References circt::hw::instance_like_impl::getName(), unwrap(), and wrap().
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().
MlirAttribute circtESIAppIDAttrPathGet | ( | MlirContext | ctxt, |
MlirAttribute | root, | ||
intptr_t | numElements, | ||
MlirAttribute const * | cElements | ||
) |
Definition at line 168 of file ESI.cpp.
References esiaccel.accelerator::ctxt, circt::calyx::direction::get(), numElements, unwrap(), and wrap().
MlirAttribute circtESIAppIDAttrPathGetComponent | ( | MlirAttribute | attr, |
uint64_t | index | ||
) |
uint64_t circtESIAppIDAttrPathGetNumComponents | ( | MlirAttribute | attr | ) |
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().
bool circtESIAttributeIsAnAppIDAttr | ( | MlirAttribute | attr | ) |
bool circtESIAttributeIsAnAppIDPathAttr | ( | MlirAttribute | attr | ) |
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().
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().
size_t circtESIBundleTypeGetNumChannels | ( | MlirType | bundle | ) |
bool circtESIBundleTypeGetResettable | ( | MlirType | bundle | ) |
uint64_t circtESIChannelGetDataDelay | ( | MlirType | channelType | ) |
MlirType circtESIChannelGetInner | ( | MlirType | channelType | ) |
uint32_t circtESIChannelGetSignaling | ( | MlirType | channelType | ) |
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().
MlirType circtESIListTypeGet | ( | MlirType | inner | ) |
Definition at line 64 of file ESI.cpp.
References circt::calyx::direction::get(), unwrap(), and wrap().
MlirType circtESIListTypeGetElementType | ( | MlirType | list | ) |
MlirOperation circtESILookup | ( | MlirModule | mod, |
MlirStringRef | symbol | ||
) |
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().
bool circtESITypeIsABundleType | ( | MlirType | type | ) |
bool circtESITypeIsAChannelType | ( | MlirType | type | ) |
bool circtESITypeIsAListType | ( | MlirType | type | ) |
bool circtESITypeIsAnAnyType | ( | MlirType | type | ) |
void registerESIPasses | ( | void | ) |
Definition at line 27 of file ESI.cpp.
References circt::esi::registerESIPasses().