9 #ifndef CIRCT_C_DIALECT_FIRRTL_H
10 #define CIRCT_C_DIALECT_FIRRTL_H
12 #include "mlir-c/IR.h"
97 MlirType element,
size_t count);
101 MLIR_CAPI_EXPORTED
unsigned
104 MLIR_CAPI_EXPORTED MlirType
firrtlTypeGetRef(MlirType target,
bool forceable);
113 MLIR_CAPI_EXPORTED MlirType
123 MLIR_CAPI_EXPORTED MlirAttribute
132 MlirAttribute value);
141 MlirIdentifier filename,
148 MLIR_CAPI_EXPORTED MlirAttribute
154 MlirType type,
unsigned numBits, MlirStringRef str, uint8_t radix);
163 MLIR_CAPI_EXPORTED
bool
165 MlirStringRef annotationsStr,
166 MlirAttribute *importedAnnotationsArray);
struct FIRRTLBundleField FIRRTLBundleField
MLIR_CAPI_EXPORTED MlirType firrtlTypeGetSInt(MlirContext ctx, int32_t width)
MLIR_CAPI_EXPORTED MlirType firrtlTypeGetInteger(MlirContext ctx)
MLIR_CAPI_EXPORTED MlirAttribute firrtlAttrGetPortDirs(MlirContext ctx, size_t count, const FIRRTLDirection *dirs)
MLIR_CAPI_EXPORTED MlirAttribute firrtlAttrGetEventControl(MlirContext ctx, FIRRTLEventControl eventControl)
MLIR_CAPI_EXPORTED MlirType firrtlTypeGetAnalog(MlirContext ctx, int32_t width)
struct FIRRTLClassElement FIRRTLClassElement
MLIR_CAPI_EXPORTED MlirType firrtlTypeGetReset(MlirContext ctx)
@ FIRRTL_VALUE_FLOW_SOURCE
@ FIRRTL_VALUE_FLOW_DUPLEX
MLIR_DECLARE_CAPI_DIALECT_REGISTRATION(FIRRTL, firrtl)
MLIR_CAPI_EXPORTED MlirType firrtlTypeGetPath(MlirContext ctx)
@ FIRRTL_NAME_KIND_DROPPABLE_NAME
@ FIRRTL_NAME_KIND_INTERESTING_NAME
@ FIRRTL_MEM_DIR_READ_WRITE
MLIR_CAPI_EXPORTED MlirAttribute firrtlAttrGetConvention(MlirContext ctx, FIRRTLConvention convention)
MLIR_CAPI_EXPORTED MlirType firrtlTypeGetRef(MlirType target, bool forceable)
MLIR_CAPI_EXPORTED MlirAttribute firrtlAttrGetNameKind(MlirContext ctx, FIRRTLNameKind nameKind)
MLIR_CAPI_EXPORTED MlirType firrtlTypeGetUInt(MlirContext ctx, int32_t width)
MLIR_CAPI_EXPORTED bool firrtlTypeIsAOpenBundle(MlirType type)
MLIR_CAPI_EXPORTED MlirAttribute firrtlAttrGetRUW(MlirContext ctx, FIRRTLRUW ruw)
MLIR_CAPI_EXPORTED unsigned firrtlTypeGetBundleFieldIndex(MlirType type, MlirStringRef fieldName)
MLIR_CAPI_EXPORTED MlirType firrtlTypeGetString(MlirContext ctx)
MLIR_CAPI_EXPORTED MlirAttribute firrtlAttrGetMemInit(MlirContext ctx, MlirIdentifier filename, bool isBinary, bool isInline)
@ FIRRTL_EVENT_CONTROL_AT_POS_EDGE
@ FIRRTL_EVENT_CONTROL_AT_NEG_EDGE
@ FIRRTL_EVENT_CONTROL_AT_EDGE
MLIR_CAPI_EXPORTED MlirAttribute firrtlAttrGetMemDir(MlirContext ctx, FIRRTLMemDir dir)
MLIR_CAPI_EXPORTED MlirAttribute firrtlAttrGetParamDecl(MlirContext ctx, MlirIdentifier name, MlirType type, MlirAttribute value)
MLIR_CAPI_EXPORTED MlirType firrtlTypeGetList(MlirContext ctx, MlirType elementType)
MLIR_CAPI_EXPORTED MlirType firrtlTypeGetVector(MlirContext ctx, MlirType element, size_t count)
MLIR_CAPI_EXPORTED MlirType firrtlTypeGetBundle(MlirContext ctx, size_t count, const FIRRTLBundleField *fields)
MLIR_CAPI_EXPORTED MlirType firrtlTypeGetAsyncReset(MlirContext ctx)
MLIR_CAPI_EXPORTED MlirType firrtlTypeGetDouble(MlirContext ctx)
MLIR_CAPI_EXPORTED MlirType firrtlTypeGetMaskType(MlirType type)
MLIR_CAPI_EXPORTED bool firrtlImportAnnotationsFromJSONRaw(MlirContext ctx, MlirStringRef annotationsStr, MlirAttribute *importedAnnotationsArray)
MLIR_CAPI_EXPORTED FIRRTLValueFlow firrtlValueFoldFlow(MlirValue value, FIRRTLValueFlow flow)
MLIR_CAPI_EXPORTED MlirType firrtlTypeGetClock(MlirContext ctx)
MLIR_CAPI_EXPORTED MlirAttribute firrtlAttrGetIntegerFromString(MlirType type, unsigned numBits, MlirStringRef str, uint8_t radix)
MLIR_CAPI_EXPORTED MlirType firrtlTypeGetAnyRef(MlirContext ctx)
@ FIRRTL_CONVENTION_SCALARIZED
@ FIRRTL_CONVENTION_INTERNAL
MLIR_CAPI_EXPORTED MlirType firrtlTypeGetBoolean(MlirContext ctx)
MLIR_CAPI_EXPORTED MlirType firrtlTypeGetClass(MlirContext ctx, MlirAttribute name, size_t numberOfElements, const FIRRTLClassElement *elements)
FIRRTLDirection direction