CIRCT 21.0.0git
|
#include "circt-c/Dialect/RTG.h"
#include "circt/Dialect/RTG/IR/RTGAttributes.h"
#include "circt/Dialect/RTG/IR/RTGDialect.h"
#include "circt/Dialect/RTG/IR/RTGTypes.h"
#include "mlir/CAPI/Registration.h"
Go to the source code of this file.
Functions | |
bool | rtgTypeIsASequence (MlirType type) |
If the type is an RTG sequence. | |
MlirType | rtgSequenceTypeGet (MlirContext ctxt, intptr_t numElements, MlirType const *elementTypes) |
Creates an RTG sequence type in the context. | |
unsigned | rtgSequenceTypeGetNumElements (MlirType type) |
The number of substitution elements of the RTG sequence. | |
MlirType | rtgSequenceTypeGetElement (MlirType type, unsigned i) |
The type of of the substitution element at the given index. | |
bool | rtgTypeIsARandomizedSequence (MlirType type) |
If the type is an RTG randomized sequence. | |
MlirType | rtgRandomizedSequenceTypeGet (MlirContext ctxt) |
Creates an RTG randomized sequence type in the context. | |
bool | rtgTypeIsALabel (MlirType type) |
If the type is an RTG label. | |
MlirType | rtgLabelTypeGet (MlirContext ctxt) |
Creates an RTG mode type in the context. | |
bool | rtgTypeIsASet (MlirType type) |
If the type is an RTG set. | |
MlirType | rtgSetTypeGet (MlirType elementType) |
Creates an RTG set type in the context. | |
MlirType | rtgSetTypeGetElementType (MlirType type) |
Return the element type of the RTG set. | |
bool | rtgTypeIsABag (MlirType type) |
If the type is an RTG bag. | |
MlirType | rtgBagTypeGet (MlirType elementType) |
Creates an RTG bag type in the context. | |
MlirType | rtgBagTypeGetElementType (MlirType type) |
Return the element type of the RTG bag. | |
bool | rtgTypeIsADict (MlirType type) |
If the type is an RTG dict. | |
MlirType | rtgDictTypeGet (MlirContext ctxt, intptr_t numEntries, MlirAttribute const *entryNames, MlirType const *entryTypes) |
Creates an RTG dict type in the context. | |
bool | rtgAttrIsALabelVisibilityAttr (MlirAttribute attr) |
If the attribute is an RTG label visibility. | |
RTGLabelVisibility | rtgLabelVisibilityAttrGetValue (MlirAttribute attr) |
Get the RTG label visibility from the attribute. | |
MlirAttribute | rtgLabelVisibilityAttrGet (MlirContext ctxt, RTGLabelVisibility visibility) |
Creates an RTG label visibility attribute in the context. | |
bool | rtgAttrIsADefaultContextAttr (MlirAttribute attr) |
If the attribute is an RTG default context. | |
MlirAttribute | rtgDefaultContextAttrGet (MlirContext ctxt, MlirType type) |
Creates an RTG default context attribute in the context. | |
bool rtgAttrIsADefaultContextAttr | ( | MlirAttribute | attr | ) |
bool rtgAttrIsALabelVisibilityAttr | ( | MlirAttribute | attr | ) |
MlirType rtgBagTypeGet | ( | MlirType | elementType | ) |
Creates an RTG bag type in the context.
Definition at line 91 of file RTG.cpp.
References elementType, unwrap(), and wrap().
MlirType rtgBagTypeGetElementType | ( | MlirType | type | ) |
MlirAttribute rtgDefaultContextAttrGet | ( | MlirContext | ctxt, |
MlirType | type | ||
) |
MlirType rtgDictTypeGet | ( | MlirContext | ctxt, |
intptr_t | numEntries, | ||
MlirAttribute const * | entryNames, | ||
MlirType const * | entryTypes | ||
) |
Creates an RTG dict type in the context.
Definition at line 105 of file RTG.cpp.
References circt::rtg::DictEntry::name, circt::rtg::DictEntry::type, unwrap(), and wrap().
MlirType rtgLabelTypeGet | ( | MlirContext | ctxt | ) |
MlirAttribute rtgLabelVisibilityAttrGet | ( | MlirContext | ctxt, |
RTGLabelVisibility | visibility | ||
) |
Creates an RTG label visibility attribute in the context.
Definition at line 140 of file RTG.cpp.
References RTG_LABEL_VISIBILITY_EXTERNAL, RTG_LABEL_VISIBILITY_GLOBAL, RTG_LABEL_VISIBILITY_LOCAL, unwrap(), and wrap().
RTGLabelVisibility rtgLabelVisibilityAttrGetValue | ( | MlirAttribute | attr | ) |
Get the RTG label visibility from the attribute.
Definition at line 126 of file RTG.cpp.
References RTG_LABEL_VISIBILITY_EXTERNAL, RTG_LABEL_VISIBILITY_GLOBAL, RTG_LABEL_VISIBILITY_LOCAL, and unwrap().
MlirType rtgRandomizedSequenceTypeGet | ( | MlirContext | ctxt | ) |
MlirType rtgSequenceTypeGet | ( | MlirContext | ctxt, |
intptr_t | numElements, | ||
MlirType const * | elementTypes | ||
) |
Creates an RTG sequence type in the context.
Definition at line 36 of file RTG.cpp.
References numElements, unwrap(), and wrap().
MlirType rtgSequenceTypeGetElement | ( | MlirType | type, |
unsigned | i | ||
) |
unsigned rtgSequenceTypeGetNumElements | ( | MlirType | type | ) |
MlirType rtgSetTypeGet | ( | MlirType | elementType | ) |
Creates an RTG set type in the context.
Definition at line 77 of file RTG.cpp.
References elementType, unwrap(), and wrap().
MlirType rtgSetTypeGetElementType | ( | MlirType | type | ) |
bool rtgTypeIsABag | ( | MlirType | type | ) |
bool rtgTypeIsADict | ( | MlirType | type | ) |
bool rtgTypeIsALabel | ( | MlirType | type | ) |
bool rtgTypeIsARandomizedSequence | ( | MlirType | type | ) |
bool rtgTypeIsASequence | ( | MlirType | type | ) |