llvm::EnumVal

Accessors for an enumeration value record used by clauses.

Synopsis

Declared in <llvm/TableGen/DirectiveEmitter.h>

class EnumVal
    : public BaseRecord

Base Classes

NameDescription
BaseRecordShared accessors for Directive and Clause records in DirectiveBase.td.

Member Functions

NameDescription
EnumVal [constructor]Construct an enum-value view over TableGen record Def.
getFormattedName Return the record's name formatted with spaces as underscores.
getRecord Return the underlying TableGen record.
getRecordName Return the TableGen record name.
getSpellingForIdentifier Return a stable spelling suitable for generating an identifier name.
getSpellings Return all spellings defined on this record.
getValue Return the integer value associated with this enumerator.
isDefault Return whether this record is marked as the default entry.
isUserVisible Return whether this enumerator is visible to end users.

Static Member Functions

NameDescription
getSnakeName Return Name with whitespace replaced by underscores.
getUpperCamelName Return Name converted to UpperCamelCase by removing separators.

Protected Data Members

NameDescription
Def Underlying TableGen record for this directive or clause.