Represents a TableGen class or definition.

Synopsis

Declared in <llvm/TableGen/Record.h>

class Record;

Types

Name

Description

AssertionInfo

Stores an assertion declared on a record.

DumpInfo

Stores a dump directive declared on a record.

Enums

Name

Description

RecordKind

Kinds of TableGen records.

Member Functions

Name

Description

Record [constructor]

Constructors

addAssertion

Add an assertion to this record.

addDirectSuperClass

Add a direct superclass.

addDump

Add a dump directive to this record.

addTemplateArg

Add a template argument.

addValue

Add a field to this record.

appendAssertions

Append assertions from another record.

appendDumps

Append dump directives from another record.

appendLoc

Append a source location for this record.

appendReferenceLoc

Add a reference to this record value.

checkRecordAssertions

Check assertions declared on this record.

checkUnusedTemplateArgs

Check for unused template arguments.

dump

Print this record to the standard error stream.

emitRecordDumps

Emit dump directives declared on this record.

getAssertions

Return assertions declared on this record.

getDefInit

get the corresponding DefInit.

getDirectSuperClasses

Return the direct superclasses of this record.

getDumps

Return dump directives declared on this record.

getFieldLoc

Return the source location for the named field.

getForwardDeclarationLocs

Return this record's forward declaration locations.

getID

Return this record's unique identifier.

getLoc

Return this record's source locations.

getName

Return this record's name.

getNameInit

Return this record's name initializer.

getNameInitAsString

Return this record's unquoted name.

getRecords

Return the record keeper tracking this record.

getReferenceLocs

Return the references of this record value.

getSuperClasses

getSuperClasses overloads

getTemplateArgs

Return this record's template arguments.

getType

Return the type implied by this record's superclasses.

getValue

getValue overloads

getValueAsBit

Return field FieldName as a bit.

getValueAsBitOrUnset

Return field FieldName as a bit, allowing an unset value.

getValueAsBitsInit

Return field FieldName as a BitsInit.

getValueAsDag

Return field FieldName as a DagInit.

getValueAsDef

Return field FieldName as a record.

getValueAsInt

Return field FieldName as an int64_t.

getValueAsListInit

Return field FieldName as a ListInit.

getValueAsListOfDefs

Return field FieldName as a vector of records.

getValueAsListOfInts

Return field FieldName as a vector of integers.

getValueAsListOfStrings

Return field FieldName as a vector of strings.

getValueAsOptionalDef

Return field FieldName as an optional record.

getValueAsOptionalString

Return field FieldName as an optional string.

getValueAsString

Return field FieldName as a string.

getValueInit

Return the initializer for field FieldName.

getValues

Return this record's fields.

hasDirectSuperClass

Determine whether this record has the specified direct superclass.

isAnonymous

Return whether this record is an anonymous definition.

isClass

Return whether this record is a class.

isMultiClass

Return whether this record is a multiclass.

isSubClassOf

isSubClassOf overloads

isTemplateArg

Return whether Name is a template argument.

isValueUnset

Return true if the named field is unset.

removeValue

removeValue overloads

resolveReferences

resolveReferences overloads

setName

Set this record's name and update its record keeper.

updateClassLoc

Update a class location after encountering a definition.

Static Member Functions

Name

Description

getNewUID

Allocate a unique record identifier.

Non-Member Functions

Name

Description

PrintError

Print an error diagnostic at the location of record Rec.

PrintFatalError

Print an error at the location of record Rec and then exit the process.

PrintFatalNote

Print a note at the location of record Rec and then exit the process.

Created with MrDocs