llvm::RecordVal

This class represents a field in a record, including its name, type, value, and source location.

Synopsis

Declared in <llvm/TableGen/Record.h>

class RecordVal;

Enums

NameDescription
FieldKind Kinds of fields that a record can contain.

Member Functions

NameDescription
RecordVal [constructor]Constructors
addReferenceLoc Add a reference to this record value.
dump Print this field to the standard error stream.
getLoc Get the source location of the point where the field was defined.
getName Get the name of the field as a StringRef.
getNameInit Get the name of the field as an Init.
getNameInitAsString Get the name of the field as a std::string.
getPrintType Get the type of the field for printing purposes.
getRecordKeeper Get the record keeper used to unique this value.
getReferenceLocs Return the references of this record value.
getType Get the type of the field value as a RecTy.
getValue Get the value of the field as an Init.
isNonconcreteOK Is this a field where nonconcrete values are okay?
isTemplateArg Is this a template argument?
isUsed Return whether this value is used.
print Print the value to an output stream, possibly with a semicolon.
setUsed Mark whether this value is used.
setValue setValue overloads

Friends

NameDescription
llvm::RecordRepresents a TableGen class or definition.

Non-Member Functions

NameDescription
PrintErrorPrint an error diagnostic at the location of field RecVal.
PrintFatalErrorPrint an error at the location of field RecVal and then exit the process.
PrintFatalNotePrint a note at the location of field RecVal and then exit the process.