CIRCT
20.0.0git
|
#include "mlir-c/IR.h"
Go to the source code of this file.
Classes | |
struct | FIRRTLBundleField |
struct | FIRRTLClassElement |
Typedefs | |
typedef enum FIRRTLConvention | FIRRTLConvention |
typedef enum FIRRTLDirection | FIRRTLDirection |
typedef enum FIRRTLNameKind | FIRRTLNameKind |
typedef enum FIRRTLRUW | FIRRTLRUW |
typedef enum FIRRTLMemDir | FIRRTLMemDir |
typedef enum FIRRTLEventControl | FIRRTLEventControl |
typedef enum FIRRTLValueFlow | FIRRTLValueFlow |
typedef struct FIRRTLBundleField | FIRRTLBundleField |
typedef struct FIRRTLClassElement | FIRRTLClassElement |
Functions | |
MLIR_DECLARE_CAPI_DIALECT_REGISTRATION (FIRRTL, firrtl) | |
MLIR_CAPI_EXPORTED MlirType | firrtlTypeGetUInt (MlirContext ctx, int32_t width) |
MLIR_CAPI_EXPORTED MlirType | firrtlTypeGetSInt (MlirContext ctx, int32_t width) |
MLIR_CAPI_EXPORTED MlirType | firrtlTypeGetClock (MlirContext ctx) |
MLIR_CAPI_EXPORTED MlirType | firrtlTypeGetReset (MlirContext ctx) |
MLIR_CAPI_EXPORTED MlirType | firrtlTypeGetAsyncReset (MlirContext ctx) |
MLIR_CAPI_EXPORTED MlirType | firrtlTypeGetAnalog (MlirContext ctx, int32_t width) |
MLIR_CAPI_EXPORTED MlirType | firrtlTypeGetVector (MlirContext ctx, MlirType element, size_t count) |
MLIR_CAPI_EXPORTED bool | firrtlTypeIsAOpenBundle (MlirType type) |
MLIR_CAPI_EXPORTED MlirType | firrtlTypeGetBundle (MlirContext ctx, size_t count, const FIRRTLBundleField *fields) |
MLIR_CAPI_EXPORTED unsigned | firrtlTypeGetBundleFieldIndex (MlirType type, MlirStringRef fieldName) |
MLIR_CAPI_EXPORTED MlirType | firrtlTypeGetRef (MlirType target, bool forceable) |
MLIR_CAPI_EXPORTED MlirType | firrtlTypeGetAnyRef (MlirContext ctx) |
MLIR_CAPI_EXPORTED MlirType | firrtlTypeGetInteger (MlirContext ctx) |
MLIR_CAPI_EXPORTED MlirType | firrtlTypeGetDouble (MlirContext ctx) |
MLIR_CAPI_EXPORTED MlirType | firrtlTypeGetString (MlirContext ctx) |
MLIR_CAPI_EXPORTED MlirType | firrtlTypeGetBoolean (MlirContext ctx) |
MLIR_CAPI_EXPORTED MlirType | firrtlTypeGetPath (MlirContext ctx) |
MLIR_CAPI_EXPORTED MlirType | firrtlTypeGetList (MlirContext ctx, MlirType elementType) |
MLIR_CAPI_EXPORTED MlirType | firrtlTypeGetClass (MlirContext ctx, MlirAttribute name, size_t numberOfElements, const FIRRTLClassElement *elements) |
MLIR_CAPI_EXPORTED MlirType | firrtlTypeGetMaskType (MlirType type) |
MLIR_CAPI_EXPORTED MlirAttribute | firrtlAttrGetConvention (MlirContext ctx, FIRRTLConvention convention) |
MLIR_CAPI_EXPORTED MlirAttribute | firrtlAttrGetPortDirs (MlirContext ctx, size_t count, const FIRRTLDirection *dirs) |
MLIR_CAPI_EXPORTED MlirAttribute | firrtlAttrGetParamDecl (MlirContext ctx, MlirIdentifier name, MlirType type, MlirAttribute value) |
MLIR_CAPI_EXPORTED MlirAttribute | firrtlAttrGetNameKind (MlirContext ctx, FIRRTLNameKind nameKind) |
MLIR_CAPI_EXPORTED MlirAttribute | firrtlAttrGetRUW (MlirContext ctx, FIRRTLRUW ruw) |
MLIR_CAPI_EXPORTED MlirAttribute | firrtlAttrGetMemInit (MlirContext ctx, MlirIdentifier filename, bool isBinary, bool isInline) |
MLIR_CAPI_EXPORTED MlirAttribute | firrtlAttrGetMemDir (MlirContext ctx, FIRRTLMemDir dir) |
MLIR_CAPI_EXPORTED MlirAttribute | firrtlAttrGetEventControl (MlirContext ctx, FIRRTLEventControl eventControl) |
MLIR_CAPI_EXPORTED MlirAttribute | firrtlAttrGetIntegerFromString (MlirType type, unsigned numBits, MlirStringRef str, uint8_t radix) |
MLIR_CAPI_EXPORTED FIRRTLValueFlow | firrtlValueFoldFlow (MlirValue value, FIRRTLValueFlow flow) |
MLIR_CAPI_EXPORTED bool | firrtlImportAnnotationsFromJSONRaw (MlirContext ctx, MlirStringRef annotationsStr, MlirAttribute *importedAnnotationsArray) |
typedef struct FIRRTLBundleField FIRRTLBundleField |
typedef struct FIRRTLClassElement FIRRTLClassElement |
typedef enum FIRRTLConvention FIRRTLConvention |
typedef enum FIRRTLDirection FIRRTLDirection |
typedef enum FIRRTLEventControl FIRRTLEventControl |
typedef enum FIRRTLMemDir FIRRTLMemDir |
typedef enum FIRRTLNameKind FIRRTLNameKind |
typedef enum FIRRTLValueFlow FIRRTLValueFlow |
enum FIRRTLConvention |
enum FIRRTLDirection |
enum FIRRTLEventControl |
enum FIRRTLMemDir |
enum FIRRTLNameKind |
enum FIRRTLRUW |
enum FIRRTLValueFlow |
MLIR_CAPI_EXPORTED MlirAttribute firrtlAttrGetConvention | ( | MlirContext | ctx, |
FIRRTLConvention | convention | ||
) |
Definition at line 176 of file FIRRTL.cpp.
References FIRRTL_CONVENTION_INTERNAL, FIRRTL_CONVENTION_SCALARIZED, circt::calyx::direction::get(), unwrap(), and wrap().
MLIR_CAPI_EXPORTED MlirAttribute firrtlAttrGetEventControl | ( | MlirContext | ctx, |
FIRRTLEventControl | eventControl | ||
) |
Definition at line 271 of file FIRRTL.cpp.
References FIRRTL_EVENT_CONTROL_AT_EDGE, FIRRTL_EVENT_CONTROL_AT_NEG_EDGE, FIRRTL_EVENT_CONTROL_AT_POS_EDGE, circt::calyx::direction::get(), unwrap(), and wrap().
MLIR_CAPI_EXPORTED MlirAttribute firrtlAttrGetIntegerFromString | ( | MlirType | type, |
unsigned | numBits, | ||
MlirStringRef | str, | ||
uint8_t | radix | ||
) |
Definition at line 290 of file FIRRTL.cpp.
References circt::calyx::direction::get(), unwrap(), and wrap().
MLIR_CAPI_EXPORTED MlirAttribute firrtlAttrGetMemDir | ( | MlirContext | ctx, |
FIRRTLMemDir | dir | ||
) |
Definition at line 250 of file FIRRTL.cpp.
References FIRRTL_MEM_DIR_INFER, FIRRTL_MEM_DIR_READ, FIRRTL_MEM_DIR_READ_WRITE, FIRRTL_MEM_DIR_WRITE, circt::calyx::direction::get(), unwrap(), and wrap().
MLIR_CAPI_EXPORTED MlirAttribute firrtlAttrGetMemInit | ( | MlirContext | ctx, |
MlirIdentifier | filename, | ||
bool | isBinary, | ||
bool | isInline | ||
) |
Definition at line 244 of file FIRRTL.cpp.
References circt::calyx::direction::get(), unwrap(), and wrap().
MLIR_CAPI_EXPORTED MlirAttribute firrtlAttrGetNameKind | ( | MlirContext | ctx, |
FIRRTLNameKind | nameKind | ||
) |
Definition at line 211 of file FIRRTL.cpp.
References FIRRTL_NAME_KIND_DROPPABLE_NAME, FIRRTL_NAME_KIND_INTERESTING_NAME, circt::calyx::direction::get(), unwrap(), and wrap().
MLIR_CAPI_EXPORTED MlirAttribute firrtlAttrGetParamDecl | ( | MlirContext | ctx, |
MlirIdentifier | name, | ||
MlirType | type, | ||
MlirAttribute | value | ||
) |
Definition at line 205 of file FIRRTL.cpp.
References circt::calyx::direction::get(), unwrap(), and wrap().
MLIR_CAPI_EXPORTED MlirAttribute firrtlAttrGetPortDirs | ( | MlirContext | ctx, |
size_t | count, | ||
const FIRRTLDirection * | dirs | ||
) |
Definition at line 192 of file FIRRTL.cpp.
References FIRRTL_DIRECTION_IN, FIRRTL_DIRECTION_OUT, circt::firrtl::In, circt::firrtl::Out, circt::firrtl::direction::packAttribute(), unwrap(), and wrap().
MLIR_CAPI_EXPORTED MlirAttribute firrtlAttrGetRUW | ( | MlirContext | ctx, |
FIRRTLRUW | ruw | ||
) |
Definition at line 226 of file FIRRTL.cpp.
References FIRRTL_RUW_NEW, FIRRTL_RUW_OLD, FIRRTL_RUW_UNDEFINED, circt::calyx::direction::get(), unwrap(), and wrap().
MLIR_CAPI_EXPORTED bool firrtlImportAnnotationsFromJSONRaw | ( | MlirContext | ctx, |
MlirStringRef | annotationsStr, | ||
MlirAttribute * | importedAnnotationsArray | ||
) |
Definition at line 329 of file FIRRTL.cpp.
References circt::calyx::direction::get(), circt::firrtl::importAnnotationsFromJSONRaw(), unwrap(), and wrap().
MLIR_CAPI_EXPORTED MlirType firrtlTypeGetAnalog | ( | MlirContext | ctx, |
int32_t | width | ||
) |
Definition at line 56 of file FIRRTL.cpp.
References circt::calyx::direction::get(), unwrap(), width, and wrap().
MLIR_CAPI_EXPORTED MlirType firrtlTypeGetAnyRef | ( | MlirContext | ctx | ) |
Definition at line 117 of file FIRRTL.cpp.
References circt::calyx::direction::get(), unwrap(), and wrap().
MLIR_CAPI_EXPORTED MlirType firrtlTypeGetAsyncReset | ( | MlirContext | ctx | ) |
Definition at line 52 of file FIRRTL.cpp.
References circt::calyx::direction::get(), unwrap(), and wrap().
MLIR_CAPI_EXPORTED MlirType firrtlTypeGetBoolean | ( | MlirContext | ctx | ) |
Definition at line 133 of file FIRRTL.cpp.
References circt::calyx::direction::get(), unwrap(), and wrap().
MLIR_CAPI_EXPORTED MlirType firrtlTypeGetBundle | ( | MlirContext | ctx, |
size_t | count, | ||
const FIRRTLBundleField * | fields | ||
) |
Definition at line 71 of file FIRRTL.cpp.
References circt::calyx::direction::get(), unwrap(), and wrap().
MLIR_CAPI_EXPORTED unsigned firrtlTypeGetBundleFieldIndex | ( | MlirType | type, |
MlirStringRef | fieldName | ||
) |
Definition at line 97 of file FIRRTL.cpp.
MLIR_CAPI_EXPORTED MlirType firrtlTypeGetClass | ( | MlirContext | ctx, |
MlirAttribute | name, | ||
size_t | numberOfElements, | ||
const FIRRTLClassElement * | elements | ||
) |
Definition at line 148 of file FIRRTL.cpp.
References assert(), FIRRTLClassElement::direction, FIRRTL_DIRECTION_IN, circt::calyx::direction::get(), circt::firrtl::In, circt::firrtl::Out, unwrap(), and wrap().
MLIR_CAPI_EXPORTED MlirType firrtlTypeGetClock | ( | MlirContext | ctx | ) |
Definition at line 44 of file FIRRTL.cpp.
References circt::calyx::direction::get(), unwrap(), and wrap().
MLIR_CAPI_EXPORTED MlirType firrtlTypeGetDouble | ( | MlirContext | ctx | ) |
Definition at line 125 of file FIRRTL.cpp.
References circt::calyx::direction::get(), unwrap(), and wrap().
MLIR_CAPI_EXPORTED MlirType firrtlTypeGetInteger | ( | MlirContext | ctx | ) |
Definition at line 121 of file FIRRTL.cpp.
References circt::calyx::direction::get(), unwrap(), and wrap().
MLIR_CAPI_EXPORTED MlirType firrtlTypeGetList | ( | MlirContext | ctx, |
MlirType | elementType | ||
) |
Definition at line 141 of file FIRRTL.cpp.
References assert(), elementType, circt::calyx::direction::get(), unwrap(), and wrap().
MLIR_CAPI_EXPORTED MlirType firrtlTypeGetMaskType | ( | MlirType | type | ) |
Definition at line 166 of file FIRRTL.cpp.
MLIR_CAPI_EXPORTED MlirType firrtlTypeGetPath | ( | MlirContext | ctx | ) |
Definition at line 137 of file FIRRTL.cpp.
References circt::calyx::direction::get(), unwrap(), and wrap().
MLIR_CAPI_EXPORTED MlirType firrtlTypeGetRef | ( | MlirType | target, |
bool | forceable | ||
) |
Definition at line 110 of file FIRRTL.cpp.
References assert(), circt::calyx::direction::get(), unwrap(), and wrap().
MLIR_CAPI_EXPORTED MlirType firrtlTypeGetReset | ( | MlirContext | ctx | ) |
Definition at line 48 of file FIRRTL.cpp.
References circt::calyx::direction::get(), unwrap(), and wrap().
MLIR_CAPI_EXPORTED MlirType firrtlTypeGetSInt | ( | MlirContext | ctx, |
int32_t | width | ||
) |
Definition at line 40 of file FIRRTL.cpp.
References circt::calyx::direction::get(), unwrap(), width, and wrap().
MLIR_CAPI_EXPORTED MlirType firrtlTypeGetString | ( | MlirContext | ctx | ) |
Definition at line 129 of file FIRRTL.cpp.
References circt::calyx::direction::get(), unwrap(), and wrap().
MLIR_CAPI_EXPORTED MlirType firrtlTypeGetUInt | ( | MlirContext | ctx, |
int32_t | width | ||
) |
MLIR_CAPI_EXPORTED MlirType firrtlTypeGetVector | ( | MlirContext | ctx, |
MlirType | element, | ||
size_t | count | ||
) |
Definition at line 60 of file FIRRTL.cpp.
References assert(), circt::calyx::direction::get(), unwrap(), and wrap().
MLIR_CAPI_EXPORTED bool firrtlTypeIsAOpenBundle | ( | MlirType | type | ) |
Definition at line 67 of file FIRRTL.cpp.
References unwrap().
MLIR_CAPI_EXPORTED FIRRTLValueFlow firrtlValueFoldFlow | ( | MlirValue | value, |
FIRRTLValueFlow | flow | ||
) |
Definition at line 296 of file FIRRTL.cpp.
References circt::firrtl::Duplex, FIRRTL_VALUE_FLOW_DUPLEX, FIRRTL_VALUE_FLOW_NONE, FIRRTL_VALUE_FLOW_SINK, FIRRTL_VALUE_FLOW_SOURCE, circt::firrtl::foldFlow(), circt::firrtl::None, circt::firrtl::Sink, circt::firrtl::Source, and unwrap().
MLIR_DECLARE_CAPI_DIALECT_REGISTRATION | ( | FIRRTL | , |
firrtl | |||
) |