Loading [MathJax]/extensions/tex2jax.js
CIRCT 21.0.0git
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Typedefs | Enumerations | Functions
RTG.h File Reference
#include "mlir-c/IR.h"
Include dependency graph for RTG.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef enum RTGLabelVisibility RTGLabelVisibility
 

Enumerations

enum  RTGLabelVisibility { RTG_LABEL_VISIBILITY_LOCAL , RTG_LABEL_VISIBILITY_GLOBAL , RTG_LABEL_VISIBILITY_EXTERNAL }
 

Functions

 MLIR_DECLARE_CAPI_DIALECT_REGISTRATION (RTG, rtg)
 
MLIR_CAPI_EXPORTED bool rtgTypeIsASequence (MlirType type)
 If the type is an RTG sequence.
 
MLIR_CAPI_EXPORTED MlirType rtgSequenceTypeGet (MlirContext ctxt, intptr_t numElements, MlirType const *elementTypes)
 Creates an RTG sequence type in the context.
 
MLIR_CAPI_EXPORTED unsigned rtgSequenceTypeGetNumElements (MlirType type)
 The number of substitution elements of the RTG sequence.
 
MLIR_CAPI_EXPORTED MlirType rtgSequenceTypeGetElement (MlirType type, unsigned i)
 The type of of the substitution element at the given index.
 
MLIR_CAPI_EXPORTED bool rtgTypeIsARandomizedSequence (MlirType type)
 If the type is an RTG randomized sequence.
 
MLIR_CAPI_EXPORTED MlirType rtgRandomizedSequenceTypeGet (MlirContext ctxt)
 Creates an RTG randomized sequence type in the context.
 
MLIR_CAPI_EXPORTED bool rtgTypeIsALabel (MlirType type)
 If the type is an RTG label.
 
MLIR_CAPI_EXPORTED MlirType rtgLabelTypeGet (MlirContext ctxt)
 Creates an RTG mode type in the context.
 
MLIR_CAPI_EXPORTED bool rtgTypeIsASet (MlirType type)
 If the type is an RTG set.
 
MLIR_CAPI_EXPORTED MlirType rtgSetTypeGet (MlirType elementType)
 Creates an RTG set type in the context.
 
MLIR_CAPI_EXPORTED MlirType rtgSetTypeGetElementType (MlirType type)
 Return the element type of the RTG set.
 
MLIR_CAPI_EXPORTED bool rtgTypeIsABag (MlirType type)
 If the type is an RTG bag.
 
MLIR_CAPI_EXPORTED MlirType rtgBagTypeGet (MlirType elementType)
 Creates an RTG bag type in the context.
 
MLIR_CAPI_EXPORTED MlirType rtgBagTypeGetElementType (MlirType type)
 Return the element type of the RTG bag.
 
MLIR_CAPI_EXPORTED bool rtgTypeIsADict (MlirType type)
 If the type is an RTG dict.
 
MLIR_CAPI_EXPORTED MlirType rtgDictTypeGet (MlirContext ctxt, intptr_t numEntries, MlirAttribute const *entryNames, MlirType const *entryTypes)
 Creates an RTG dict type in the context.
 
MLIR_CAPI_EXPORTED bool rtgTypeIsAImmediate (MlirType type)
 If the type is an RTG immediate.
 
MLIR_CAPI_EXPORTED MlirType rtgImmediateTypeGet (MlirContext ctx, uint32_t width)
 Creates an RTG immediate type in the context.
 
MLIR_CAPI_EXPORTED uint32_t rtgImmediateTypeGetWidth (MlirType type)
 Returns the width of the RTG immediate type.
 
MLIR_CAPI_EXPORTED MlirType rtgArrayTypeGet (MlirType elementType)
 Creates an RTG array type in the context.
 
MLIR_CAPI_EXPORTED bool rtgTypeIsAArray (MlirType type)
 If the type is an RTG array.
 
MLIR_CAPI_EXPORTED MlirType rtgArrayTypeGetElementType (MlirType type)
 Returns the element type of the RTG array.
 
MLIR_CAPI_EXPORTED bool rtgAttrIsALabelVisibilityAttr (MlirAttribute attr)
 If the attribute is an RTG label visibility.
 
MLIR_CAPI_EXPORTED RTGLabelVisibility rtgLabelVisibilityAttrGetValue (MlirAttribute attr)
 Get the RTG label visibility from the attribute.
 
MLIR_CAPI_EXPORTED MlirAttribute rtgLabelVisibilityAttrGet (MlirContext ctxt, RTGLabelVisibility visibility)
 Creates an RTG label visibility attribute in the context.
 
MLIR_CAPI_EXPORTED bool rtgAttrIsADefaultContextAttr (MlirAttribute attr)
 If the attribute is an RTG default context.
 
MLIR_CAPI_EXPORTED MlirAttribute rtgDefaultContextAttrGet (MlirContext ctxt, MlirType type)
 Creates an RTG default context attribute in the context.
 
MLIR_CAPI_EXPORTED bool rtgAttrIsAImmediate (MlirAttribute attr)
 Checks if the attribute is an RTG immediate attribute.
 
MLIR_CAPI_EXPORTED MlirAttribute rtgImmediateAttrGet (MlirContext ctx, uint32_t width, uint64_t value)
 Creates an RTG immediate attribute in the context with the given width and value.
 
MLIR_CAPI_EXPORTED uint32_t rtgImmediateAttrGetWidth (MlirAttribute attr)
 Returns the width of the RTG immediate attribute.
 
MLIR_CAPI_EXPORTED uint64_t rtgImmediateAttrGetValue (MlirAttribute attr)
 Returns the value of the RTG immediate attribute.
 

Typedef Documentation

◆ RTGLabelVisibility

Definition at line 110 of file RTG.h.

Enumeration Type Documentation

◆ RTGLabelVisibility

Enumerator
RTG_LABEL_VISIBILITY_LOCAL 
RTG_LABEL_VISIBILITY_GLOBAL 
RTG_LABEL_VISIBILITY_EXTERNAL 

Definition at line 105 of file RTG.h.

Function Documentation

◆ MLIR_DECLARE_CAPI_DIALECT_REGISTRATION()

MLIR_DECLARE_CAPI_DIALECT_REGISTRATION ( RTG  ,
rtg   
)

◆ rtgArrayTypeGet()

MLIR_CAPI_EXPORTED MlirType rtgArrayTypeGet ( MlirType  elementType)

Creates an RTG array type in the context.

Definition at line 121 of file RTG.cpp.

References elementType, unwrap(), and wrap().

◆ rtgArrayTypeGetElementType()

MLIR_CAPI_EXPORTED MlirType rtgArrayTypeGetElementType ( MlirType  type)

Returns the element type of the RTG array.

Definition at line 128 of file RTG.cpp.

References unwrap(), and wrap().

◆ rtgAttrIsADefaultContextAttr()

MLIR_CAPI_EXPORTED bool rtgAttrIsADefaultContextAttr ( MlirAttribute  attr)

If the attribute is an RTG default context.

Definition at line 154 of file RTG.cpp.

References unwrap().

◆ rtgAttrIsAImmediate()

MLIR_CAPI_EXPORTED bool rtgAttrIsAImmediate ( MlirAttribute  attr)

Checks if the attribute is an RTG immediate attribute.

Definition at line 201 of file RTG.cpp.

References unwrap().

◆ rtgAttrIsALabelVisibilityAttr()

MLIR_CAPI_EXPORTED bool rtgAttrIsALabelVisibilityAttr ( MlirAttribute  attr)

If the attribute is an RTG label visibility.

Definition at line 165 of file RTG.cpp.

References unwrap().

◆ rtgBagTypeGet()

MLIR_CAPI_EXPORTED 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().

◆ rtgBagTypeGetElementType()

MLIR_CAPI_EXPORTED MlirType rtgBagTypeGetElementType ( MlirType  type)

Return the element type of the RTG bag.

Definition at line 96 of file RTG.cpp.

References unwrap(), and wrap().

◆ rtgDefaultContextAttrGet()

MLIR_CAPI_EXPORTED MlirAttribute rtgDefaultContextAttrGet ( MlirContext  ctxt,
MlirType  type 
)

Creates an RTG default context attribute in the context.

Definition at line 158 of file RTG.cpp.

References unwrap(), and wrap().

◆ rtgDictTypeGet()

MLIR_CAPI_EXPORTED 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().

◆ rtgImmediateAttrGet()

MLIR_CAPI_EXPORTED MlirAttribute rtgImmediateAttrGet ( MlirContext  ctx,
uint32_t  width,
uint64_t  value 
)

Creates an RTG immediate attribute in the context with the given width and value.

Definition at line 205 of file RTG.cpp.

References unwrap(), and wrap().

◆ rtgImmediateAttrGetValue()

MLIR_CAPI_EXPORTED uint64_t rtgImmediateAttrGetValue ( MlirAttribute  attr)

Returns the value of the RTG immediate attribute.

Definition at line 214 of file RTG.cpp.

References unwrap().

◆ rtgImmediateAttrGetWidth()

MLIR_CAPI_EXPORTED uint32_t rtgImmediateAttrGetWidth ( MlirAttribute  attr)

Returns the width of the RTG immediate attribute.

Definition at line 210 of file RTG.cpp.

References unwrap().

◆ rtgImmediateTypeGet()

MLIR_CAPI_EXPORTED MlirType rtgImmediateTypeGet ( MlirContext  ctx,
uint32_t  width 
)

Creates an RTG immediate type in the context.

Definition at line 139 of file RTG.cpp.

References unwrap(), and wrap().

◆ rtgImmediateTypeGetWidth()

MLIR_CAPI_EXPORTED uint32_t rtgImmediateTypeGetWidth ( MlirType  type)

Returns the width of the RTG immediate type.

Definition at line 143 of file RTG.cpp.

References unwrap().

◆ rtgLabelTypeGet()

MLIR_CAPI_EXPORTED MlirType rtgLabelTypeGet ( MlirContext  ctxt)

Creates an RTG mode type in the context.

Definition at line 68 of file RTG.cpp.

References unwrap(), and wrap().

◆ rtgLabelVisibilityAttrGet()

MLIR_CAPI_EXPORTED MlirAttribute rtgLabelVisibilityAttrGet ( MlirContext  ctxt,
RTGLabelVisibility  visibility 
)

Creates an RTG label visibility attribute in the context.

Definition at line 183 of file RTG.cpp.

References RTG_LABEL_VISIBILITY_EXTERNAL, RTG_LABEL_VISIBILITY_GLOBAL, RTG_LABEL_VISIBILITY_LOCAL, unwrap(), and wrap().

◆ rtgLabelVisibilityAttrGetValue()

MLIR_CAPI_EXPORTED RTGLabelVisibility rtgLabelVisibilityAttrGetValue ( MlirAttribute  attr)

Get the RTG label visibility from the attribute.

Definition at line 169 of file RTG.cpp.

References RTG_LABEL_VISIBILITY_EXTERNAL, RTG_LABEL_VISIBILITY_GLOBAL, RTG_LABEL_VISIBILITY_LOCAL, and unwrap().

◆ rtgRandomizedSequenceTypeGet()

MLIR_CAPI_EXPORTED MlirType rtgRandomizedSequenceTypeGet ( MlirContext  ctxt)

Creates an RTG randomized sequence type in the context.

Definition at line 59 of file RTG.cpp.

References unwrap(), and wrap().

◆ rtgSequenceTypeGet()

MLIR_CAPI_EXPORTED 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().

◆ rtgSequenceTypeGetElement()

MLIR_CAPI_EXPORTED MlirType rtgSequenceTypeGetElement ( MlirType  type,
unsigned  i 
)

The type of of the substitution element at the given index.

Definition at line 48 of file RTG.cpp.

References unwrap(), and wrap().

◆ rtgSequenceTypeGetNumElements()

MLIR_CAPI_EXPORTED unsigned rtgSequenceTypeGetNumElements ( MlirType  type)

The number of substitution elements of the RTG sequence.

Definition at line 44 of file RTG.cpp.

References unwrap().

◆ rtgSetTypeGet()

MLIR_CAPI_EXPORTED 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().

◆ rtgSetTypeGetElementType()

MLIR_CAPI_EXPORTED MlirType rtgSetTypeGetElementType ( MlirType  type)

Return the element type of the RTG set.

Definition at line 82 of file RTG.cpp.

References unwrap(), and wrap().

◆ rtgTypeIsAArray()

MLIR_CAPI_EXPORTED bool rtgTypeIsAArray ( MlirType  type)

If the type is an RTG array.

Definition at line 126 of file RTG.cpp.

References unwrap().

◆ rtgTypeIsABag()

MLIR_CAPI_EXPORTED bool rtgTypeIsABag ( MlirType  type)

If the type is an RTG bag.

Definition at line 89 of file RTG.cpp.

References unwrap().

◆ rtgTypeIsADict()

MLIR_CAPI_EXPORTED bool rtgTypeIsADict ( MlirType  type)

If the type is an RTG dict.

Definition at line 103 of file RTG.cpp.

References unwrap().

◆ rtgTypeIsAImmediate()

MLIR_CAPI_EXPORTED bool rtgTypeIsAImmediate ( MlirType  type)

If the type is an RTG immediate.

Definition at line 135 of file RTG.cpp.

References unwrap().

◆ rtgTypeIsALabel()

MLIR_CAPI_EXPORTED bool rtgTypeIsALabel ( MlirType  type)

If the type is an RTG label.

Definition at line 66 of file RTG.cpp.

References unwrap().

◆ rtgTypeIsARandomizedSequence()

MLIR_CAPI_EXPORTED bool rtgTypeIsARandomizedSequence ( MlirType  type)

If the type is an RTG randomized sequence.

Definition at line 55 of file RTG.cpp.

References unwrap().

◆ rtgTypeIsASequence()

MLIR_CAPI_EXPORTED bool rtgTypeIsASequence ( MlirType  type)

If the type is an RTG sequence.

Definition at line 32 of file RTG.cpp.

References unwrap().

◆ rtgTypeIsASet()

MLIR_CAPI_EXPORTED bool rtgTypeIsASet ( MlirType  type)

If the type is an RTG set.

Definition at line 75 of file RTG.cpp.

References unwrap().