LLVM 22.0.0git
llvm::BaseRecord Class Reference

#include "llvm/TableGen/DirectiveEmitter.h"

Inheritance diagram for llvm::BaseRecord:
[legend]

Public Member Functions

 BaseRecord (const Record *Def)
std::vector< Spelling::ValuegetSpellings () const
StringRef getSpellingForIdentifier () const
std::string getFormattedName () const
bool isDefault () const
StringRef getRecordName () const
const RecordgetRecord () const

Static Public Member Functions

static std::string getSnakeName (StringRef Name)
static std::string getUpperCamelName (StringRef Name, StringRef Sep)

Protected Attributes

const RecordDef

Detailed Description

Definition at line 146 of file DirectiveEmitter.h.

Constructor & Destructor Documentation

◆ BaseRecord()

llvm::BaseRecord::BaseRecord ( const Record * Def)
inline

Definition at line 148 of file DirectiveEmitter.h.

References Def.

Referenced by llvm::Clause::Clause(), llvm::Directive::Directive(), and llvm::EnumVal::EnumVal().

Member Function Documentation

◆ getFormattedName()

std::string llvm::BaseRecord::getFormattedName ( ) const
inline

Definition at line 213 of file DirectiveEmitter.h.

References Def, getSnakeName(), and getSpellingForIdentifier().

◆ getRecord()

const Record * llvm::BaseRecord::getRecord ( ) const
inline

Definition at line 224 of file DirectiveEmitter.h.

References Def.

◆ getRecordName()

StringRef llvm::BaseRecord::getRecordName ( ) const
inline

Definition at line 222 of file DirectiveEmitter.h.

References Def.

◆ getSnakeName()

std::string llvm::BaseRecord::getSnakeName ( StringRef Name)
inlinestatic

Definition at line 178 of file DirectiveEmitter.h.

References N, and llvm::replace().

Referenced by getFormattedName().

◆ getSpellingForIdentifier()

◆ getSpellings()

std::vector< Spelling::Value > llvm::BaseRecord::getSpellings ( ) const
inline

Definition at line 150 of file DirectiveEmitter.h.

References Def, llvm::List, and llvm::transform().

Referenced by getSpellingForIdentifier().

◆ getUpperCamelName()

std::string llvm::BaseRecord::getUpperCamelName ( StringRef Name,
StringRef Sep )
inlinestatic

◆ isDefault()

bool llvm::BaseRecord::isDefault ( ) const
inline

Definition at line 219 of file DirectiveEmitter.h.

References Def.

Member Data Documentation

◆ Def


The documentation for this class was generated from the following file: