CIRCT 24.0.0git
Loading...
Searching...
No Matches
RTG.h File Reference
#include "mlir-c/IR.h"
#include "circt/Dialect/RTG/Transforms/RTGPasses.capi.h.inc"
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 void registerRTGPipelines (void)
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 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 rtgTypeIsAMap (MlirType type)
 If the type is an RTG map.
MLIR_CAPI_EXPORTED MlirType rtgMapTypeGet (MlirType keyType, MlirType valueType)
 Creates an RTG map type in the context.
MLIR_CAPI_EXPORTED MlirType rtgMapTypeGetKeyType (MlirType type)
 Return the key type of the RTG map.
MLIR_CAPI_EXPORTED MlirType rtgMapTypeGetValueType (MlirType type)
 Return the value type of the RTG map.
MLIR_CAPI_EXPORTED MlirType rtgTupleTypeGet (MlirContext ctxt, intptr_t numFields, MlirType const *fieldTypes)
 Creates an RTG tuple type in the context.
MLIR_CAPI_EXPORTED bool rtgTypeIsATuple (MlirType type)
 If the type is an RTG tuple.
MLIR_CAPI_EXPORTED intptr_t rtgTypeGetNumFields (MlirType type)
 Returns the number of fields in the RTG tuple.
MLIR_CAPI_EXPORTED MlirType rtgTupleTypeGetFieldType (MlirType type, intptr_t idx)
 Returns a field type of the RTG tuple.
MLIR_CAPI_EXPORTED bool rtgTypeIsAMemory (MlirType type)
 If the type is an RTG memory.
MLIR_CAPI_EXPORTED MlirType rtgMemoryTypeGet (MlirContext ctx, uint32_t addressWidth)
 Creates an RTG memory type in the context.
MLIR_CAPI_EXPORTED uint32_t rtgMemoryTypeGetAddressWidth (MlirType type)
 Returns the address with of an RTG memory type.
MLIR_CAPI_EXPORTED bool rtgTypeIsAMemoryBlock (MlirType type)
 If the type is an RTG memory block.
MLIR_CAPI_EXPORTED MlirType rtgMemoryBlockTypeGet (MlirContext ctx, uint32_t addressWidth)
 Creates an RTG memory block type in the context.
MLIR_CAPI_EXPORTED uint32_t rtgMemoryBlockTypeGetAddressWidth (MlirType type)
 Returns the address with of an RTG memory block type.
MLIR_CAPI_EXPORTED bool rtgTypeIsAString (MlirType type)
 If the type is an RTG string.
MLIR_CAPI_EXPORTED MlirType rtgStringTypeGet (MlirContext ctxt)
 Creates an RTG string type in the context.
MLIR_CAPI_EXPORTED bool rtgTypeIsAContinuation (MlirType type)
 If the type is an RTG continuation type.
MLIR_CAPI_EXPORTED MlirType rtgContinuationTypeGet (MlirType resumeType)
 Creates an RTG continuation type with the given resume type.
MLIR_CAPI_EXPORTED MlirType rtgContinuationTypeGetResumeType (MlirType type)
 Returns the resume type of an RTG continuation type.
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 rtgAttrIsAAnyContextAttr (MlirAttribute attr)
 If the attribute is an RTG any context attribute.
MLIR_CAPI_EXPORTED MlirAttribute rtgAnyContextAttrGet (MlirContext ctxt, MlirType type)
 Creates an RTG any context attribute in the context.
MLIR_CAPI_EXPORTED bool rtgAttrIsAVirtualRegisterConfig (MlirAttribute attr)
 Checks if the attribute is an RTG virtual register config attribute.
MLIR_CAPI_EXPORTED MlirAttribute rtgVirtualRegisterConfigAttrGet (MlirContext ctxt, intptr_t numRegs, MlirAttribute const *allowedRegs)
 Creates an RTG virtual register config attribute in the context.
MLIR_CAPI_EXPORTED intptr_t rtgVirtualRegisterConfigAttrGetNumRegisters (MlirAttribute attr)
 Returns the number of allowed registers in the RTG virtual register config attribute.
MLIR_CAPI_EXPORTED MlirAttribute rtgVirtualRegisterConfigAttrGetRegister (MlirAttribute attr, intptr_t index)
 Returns the allowed register at the given index in the RTG virtual register config attribute.
MLIR_CAPI_EXPORTED bool rtgAttrIsALabel (MlirAttribute attr)
 Checks if the attribute is an RTG label attribute.
MLIR_CAPI_EXPORTED MlirAttribute rtgLabelAttrGet (MlirContext ctx, MlirStringRef name)
 Creates an RTG label attribute in the context with the given name.
MLIR_CAPI_EXPORTED MlirStringRef rtgLabelAttrGetName (MlirAttribute attr)
 Returns the name of the RTG label attribute.
MLIR_CAPI_EXPORTED bool rtgAttrIsAMap (MlirAttribute attr)
 Checks if the attribute is an RTG map attribute.
MLIR_CAPI_EXPORTED MlirAttribute rtgMapAttrGet (MlirContext ctx, MlirType mapType, intptr_t numEntries, MlirAttribute const *keys, MlirAttribute const *values)
 Creates an RTG map attribute in the context with the given entries.
MLIR_CAPI_EXPORTED MlirAttribute rtgMapAttrLookup (MlirAttribute attr, MlirAttribute key)
 Looks up the value associated with the given key in the RTG map attribute.

Typedef Documentation

◆ RTGLabelVisibility

Definition at line 163 of file RTG.h.

Enumeration Type Documentation

◆ RTGLabelVisibility

Enumerator
RTG_LABEL_VISIBILITY_LOCAL 
RTG_LABEL_VISIBILITY_GLOBAL 
RTG_LABEL_VISIBILITY_EXTERNAL 

Definition at line 158 of file RTG.h.

Function Documentation

◆ MLIR_DECLARE_CAPI_DIALECT_REGISTRATION()

MLIR_DECLARE_CAPI_DIALECT_REGISTRATION ( RTG ,
rtg  )

References elementType, and numElements.

◆ registerRTGPipelines()

MLIR_CAPI_EXPORTED void registerRTGPipelines ( void )

Definition at line 28 of file RTG.cpp.

References circt::rtg::registerPipelines(), and registerRTGPipelines().

Referenced by registerPasses(), and registerRTGPipelines().

◆ rtgAnyContextAttrGet()

MLIR_CAPI_EXPORTED MlirAttribute rtgAnyContextAttrGet ( MlirContext ctxt,
MlirType type )

Creates an RTG any context attribute in the context.

Definition at line 287 of file RTG.cpp.

References unwrap(), and wrap().

◆ rtgArrayTypeGet()

MLIR_CAPI_EXPORTED MlirType rtgArrayTypeGet ( MlirType elementType)

Creates an RTG array type in the context.

Definition at line 126 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 133 of file RTG.cpp.

References unwrap(), and wrap().

◆ rtgAttrIsAAnyContextAttr()

MLIR_CAPI_EXPORTED bool rtgAttrIsAAnyContextAttr ( MlirAttribute attr)

If the attribute is an RTG any context attribute.

Definition at line 283 of file RTG.cpp.

References unwrap().

◆ rtgAttrIsADefaultContextAttr()

MLIR_CAPI_EXPORTED bool rtgAttrIsADefaultContextAttr ( MlirAttribute attr)

If the attribute is an RTG default context.

Definition at line 236 of file RTG.cpp.

References unwrap().

◆ rtgAttrIsALabel()

MLIR_CAPI_EXPORTED bool rtgAttrIsALabel ( MlirAttribute attr)

Checks if the attribute is an RTG label attribute.

Definition at line 321 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 247 of file RTG.cpp.

References unwrap().

◆ rtgAttrIsAMap()

MLIR_CAPI_EXPORTED bool rtgAttrIsAMap ( MlirAttribute attr)

Checks if the attribute is an RTG map attribute.

Definition at line 336 of file RTG.cpp.

References unwrap().

◆ rtgAttrIsAVirtualRegisterConfig()

MLIR_CAPI_EXPORTED bool rtgAttrIsAVirtualRegisterConfig ( MlirAttribute attr)

Checks if the attribute is an RTG virtual register config attribute.

Definition at line 294 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 96 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 101 of file RTG.cpp.

References unwrap(), and wrap().

◆ rtgContinuationTypeGet()

MLIR_CAPI_EXPORTED MlirType rtgContinuationTypeGet ( MlirType resumeType)

Creates an RTG continuation type with the given resume type.

Definition at line 221 of file RTG.cpp.

References unwrap(), and wrap().

◆ rtgContinuationTypeGetResumeType()

MLIR_CAPI_EXPORTED MlirType rtgContinuationTypeGetResumeType ( MlirType type)

Returns the resume type of an RTG continuation type.

Definition at line 225 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 240 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 110 of file RTG.cpp.

References circt::rtg::DictEntry::name, circt::rtg::DictEntry::type, unwrap(), and wrap().

◆ rtgLabelAttrGet()

MLIR_CAPI_EXPORTED MlirAttribute rtgLabelAttrGet ( MlirContext ctx,
MlirStringRef name )

Creates an RTG label attribute in the context with the given name.

Definition at line 325 of file RTG.cpp.

References unwrap(), and wrap().

◆ rtgLabelAttrGetName()

MLIR_CAPI_EXPORTED MlirStringRef rtgLabelAttrGetName ( MlirAttribute attr)

Returns the name of the RTG label attribute.

Definition at line 329 of file RTG.cpp.

References unwrap(), and wrap().

◆ rtgLabelTypeGet()

MLIR_CAPI_EXPORTED MlirType rtgLabelTypeGet ( MlirContext ctxt)

Creates an RTG mode type in the context.

Definition at line 73 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 265 of file RTG.cpp.

References convert(), 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 251 of file RTG.cpp.

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

◆ rtgMapAttrGet()

MLIR_CAPI_EXPORTED MlirAttribute rtgMapAttrGet ( MlirContext ctx,
MlirType mapType,
intptr_t numEntries,
MlirAttribute const * keys,
MlirAttribute const * values )

Creates an RTG map attribute in the context with the given entries.

Definition at line 340 of file RTG.cpp.

References unwrap(), and wrap().

◆ rtgMapAttrLookup()

MLIR_CAPI_EXPORTED MlirAttribute rtgMapAttrLookup ( MlirAttribute attr,
MlirAttribute key )

Looks up the value associated with the given key in the RTG map attribute.

Returns a null attribute if the key is not found.

Definition at line 351 of file RTG.cpp.

References unwrap(), and wrap().

◆ rtgMapTypeGet()

MLIR_CAPI_EXPORTED MlirType rtgMapTypeGet ( MlirType keyType,
MlirType valueType )

Creates an RTG map type in the context.

Definition at line 142 of file RTG.cpp.

References unwrap(), and wrap().

◆ rtgMapTypeGetKeyType()

MLIR_CAPI_EXPORTED MlirType rtgMapTypeGetKeyType ( MlirType type)

Return the key type of the RTG map.

Definition at line 146 of file RTG.cpp.

References unwrap(), and wrap().

◆ rtgMapTypeGetValueType()

MLIR_CAPI_EXPORTED MlirType rtgMapTypeGetValueType ( MlirType type)

Return the value type of the RTG map.

Definition at line 150 of file RTG.cpp.

References unwrap(), and wrap().

◆ rtgMemoryBlockTypeGet()

MLIR_CAPI_EXPORTED MlirType rtgMemoryBlockTypeGet ( MlirContext ctx,
uint32_t addressWidth )

Creates an RTG memory block type in the context.

Definition at line 197 of file RTG.cpp.

References unwrap(), and wrap().

◆ rtgMemoryBlockTypeGetAddressWidth()

MLIR_CAPI_EXPORTED uint32_t rtgMemoryBlockTypeGetAddressWidth ( MlirType type)

Returns the address with of an RTG memory block type.

Definition at line 201 of file RTG.cpp.

References unwrap().

◆ rtgMemoryTypeGet()

MLIR_CAPI_EXPORTED MlirType rtgMemoryTypeGet ( MlirContext ctx,
uint32_t addressWidth )

Creates an RTG memory type in the context.

Definition at line 182 of file RTG.cpp.

References unwrap(), and wrap().

◆ rtgMemoryTypeGetAddressWidth()

MLIR_CAPI_EXPORTED uint32_t rtgMemoryTypeGetAddressWidth ( MlirType type)

Returns the address with of an RTG memory type.

Definition at line 186 of file RTG.cpp.

References unwrap().

◆ rtgRandomizedSequenceTypeGet()

MLIR_CAPI_EXPORTED MlirType rtgRandomizedSequenceTypeGet ( MlirContext ctxt)

Creates an RTG randomized sequence type in the context.

Definition at line 64 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 41 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 53 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 49 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 82 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 87 of file RTG.cpp.

References unwrap(), and wrap().

◆ rtgStringTypeGet()

MLIR_CAPI_EXPORTED MlirType rtgStringTypeGet ( MlirContext ctxt)

Creates an RTG string type in the context.

Definition at line 210 of file RTG.cpp.

References unwrap(), and wrap().

◆ rtgTupleTypeGet()

MLIR_CAPI_EXPORTED MlirType rtgTupleTypeGet ( MlirContext ctxt,
intptr_t numFields,
MlirType const * fieldTypes )

Creates an RTG tuple type in the context.

Definition at line 157 of file RTG.cpp.

References unwrap(), and wrap().

◆ rtgTupleTypeGetFieldType()

MLIR_CAPI_EXPORTED MlirType rtgTupleTypeGetFieldType ( MlirType type,
intptr_t idx )

Returns a field type of the RTG tuple.

Definition at line 173 of file RTG.cpp.

References unwrap(), and wrap().

◆ rtgTypeGetNumFields()

MLIR_CAPI_EXPORTED intptr_t rtgTypeGetNumFields ( MlirType type)

Returns the number of fields in the RTG tuple.

Definition at line 169 of file RTG.cpp.

References unwrap().

◆ rtgTypeIsAArray()

MLIR_CAPI_EXPORTED bool rtgTypeIsAArray ( MlirType type)

If the type is an RTG array.

Definition at line 131 of file RTG.cpp.

References unwrap().

◆ rtgTypeIsABag()

MLIR_CAPI_EXPORTED bool rtgTypeIsABag ( MlirType type)

If the type is an RTG bag.

Definition at line 94 of file RTG.cpp.

References unwrap().

◆ rtgTypeIsAContinuation()

MLIR_CAPI_EXPORTED bool rtgTypeIsAContinuation ( MlirType type)

If the type is an RTG continuation type.

Definition at line 217 of file RTG.cpp.

References unwrap().

◆ rtgTypeIsADict()

MLIR_CAPI_EXPORTED bool rtgTypeIsADict ( MlirType type)

If the type is an RTG dict.

Definition at line 108 of file RTG.cpp.

References unwrap().

◆ rtgTypeIsALabel()

MLIR_CAPI_EXPORTED bool rtgTypeIsALabel ( MlirType type)

If the type is an RTG label.

Definition at line 71 of file RTG.cpp.

References unwrap().

◆ rtgTypeIsAMap()

MLIR_CAPI_EXPORTED bool rtgTypeIsAMap ( MlirType type)

If the type is an RTG map.

Definition at line 140 of file RTG.cpp.

References unwrap().

◆ rtgTypeIsAMemory()

MLIR_CAPI_EXPORTED bool rtgTypeIsAMemory ( MlirType type)

If the type is an RTG memory.

Definition at line 180 of file RTG.cpp.

References unwrap().

◆ rtgTypeIsAMemoryBlock()

MLIR_CAPI_EXPORTED bool rtgTypeIsAMemoryBlock ( MlirType type)

If the type is an RTG memory block.

Definition at line 193 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 60 of file RTG.cpp.

References unwrap().

◆ rtgTypeIsASequence()

MLIR_CAPI_EXPORTED bool rtgTypeIsASequence ( MlirType type)

If the type is an RTG sequence.

Definition at line 37 of file RTG.cpp.

References unwrap().

◆ rtgTypeIsASet()

MLIR_CAPI_EXPORTED bool rtgTypeIsASet ( MlirType type)

If the type is an RTG set.

Definition at line 80 of file RTG.cpp.

References unwrap().

◆ rtgTypeIsAString()

MLIR_CAPI_EXPORTED bool rtgTypeIsAString ( MlirType type)

If the type is an RTG string.

Definition at line 208 of file RTG.cpp.

References unwrap().

◆ rtgTypeIsATuple()

MLIR_CAPI_EXPORTED bool rtgTypeIsATuple ( MlirType type)

If the type is an RTG tuple.

Definition at line 165 of file RTG.cpp.

References unwrap().

◆ rtgVirtualRegisterConfigAttrGet()

MLIR_CAPI_EXPORTED MlirAttribute rtgVirtualRegisterConfigAttrGet ( MlirContext ctxt,
intptr_t numRegs,
MlirAttribute const * allowedRegs )

Creates an RTG virtual register config attribute in the context.

Definition at line 299 of file RTG.cpp.

References unwrap(), and wrap().

◆ rtgVirtualRegisterConfigAttrGetNumRegisters()

MLIR_CAPI_EXPORTED intptr_t rtgVirtualRegisterConfigAttrGetNumRegisters ( MlirAttribute attr)

Returns the number of allowed registers in the RTG virtual register config attribute.

Definition at line 307 of file RTG.cpp.

References unwrap().

◆ rtgVirtualRegisterConfigAttrGetRegister()

MLIR_CAPI_EXPORTED MlirAttribute rtgVirtualRegisterConfigAttrGetRegister ( MlirAttribute attr,
intptr_t index )

Returns the allowed register at the given index in the RTG virtual register config attribute.

Definition at line 311 of file RTG.cpp.

References unwrap(), and wrap().