llvm::Directive

Accessors for a Directive record defined in DirectiveBase.td.

Synopsis

Declared in <llvm/TableGen/DirectiveEmitter.h>

class Directive
    : public BaseRecord

Base Classes

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

Member Functions

NameDescription
Directive [constructor]Construct a directive view over TableGen record Def.
getAllowedClauses Return the clauses that may appear any number of times.
getAllowedExclusiveClauses Return the clauses that are mutually exclusive with each other.
getAllowedLoopModifiers Return the loop modifiers allowed on this directive.
getAllowedOnceClauses Return the clauses that may appear at most once.
getAssociation Return the association record that describes what this directive binds to.
getCategory Return the category record for this directive.
getClangAccSpelling Return the Clang OpenACC enumerator spelling for this directive.
getFormattedName Return the record's name formatted with spaces as underscores.
getLeafConstructs Return the leaf constructs that compose this combined directive.
getPureSince Return the language version since which this directive is pure.
getRecord Return the underlying TableGen record.
getRecordName Return the TableGen record name.
getRequiredClauses Return the clauses that are required on this directive.
getSourceLanguages Return the source languages in which this directive is valid.
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.

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.