llvm::Clause

Accessors for a Clause record defined in DirectiveBase.td.

Synopsis

Declared in <llvm/TableGen/DirectiveEmitter.h>

class Clause
    : public BaseRecord

Base Classes

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

Member Functions

NameDescription
Clause [constructor]Construct a clause view over TableGen record Def.
getAliases Return alternate spellings accepted for this clause.
getClangAccSpelling Return the Clang OpenACC enumerator spelling for this clause.
getClangClass Return the optional Clang class name associated with this clause.
getClauseVals Return the allowed enumerated values for this clause.
getDefaultValue Return the default value used when the clause value is omitted.
getEnumName Return the optional enum type name used for this clause's values.
getFlangClass Return the optional Flang class name associated with this clause.
getFormattedName Return the record's name formatted with spaces as underscores.
getFormattedParserClassName Return the UpperCamelCase Flang parser class name for this clause.
getPrefix Return the optional prefix text that may precede the clause value.
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.
isDefault Return whether this record is marked as the default entry.
isImplicit Return whether this clause is implicit rather than written by the user.
isPrefixOptional Return whether the clause prefix may be omitted.
isValueList Return whether the clause takes a list of values.
isValueOptional Return whether the clause value may be omitted.
skipFlangUnparser Return whether Flang should skip unparsing this clause.

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.