LLVM 22.0.0git
llvm::opt::OptTable::Info Struct Reference

Entry for a single option instance in the option data table. More...

#include "llvm/Option/OptTable.h"

Public Member Functions

bool hasNoPrefix () const
unsigned getNumPrefixes (ArrayRef< StringTable::Offset > PrefixesTable) const
ArrayRef< StringTable::OffsetgetPrefixOffsets (ArrayRef< StringTable::Offset > PrefixesTable) const
bool hasSubCommands () const
unsigned getNumSubCommandIDs (ArrayRef< unsigned > SubCommandIDsTable) const
ArrayRef< unsignedgetSubCommandIDs (ArrayRef< unsigned > SubCommandIDsTable) const
void appendPrefixes (const StringTable &StrTable, ArrayRef< StringTable::Offset > PrefixesTable, SmallVectorImpl< StringRef > &Prefixes) const
StringRef getPrefix (const StringTable &StrTable, ArrayRef< StringTable::Offset > PrefixesTable, unsigned PrefixIndex) const
StringRef getPrefixedName (const StringTable &StrTable) const
StringRef getName (const StringTable &StrTable, ArrayRef< StringTable::Offset > PrefixesTable) const

Public Attributes

unsigned PrefixesOffset
StringTable::Offset PrefixedNameOffset
const charHelpText
std::array< std::pair< std::array< unsigned int, 2 >, const char * >, 1 > HelpTextsForVariants
const charMetaVar
unsigned ID
unsigned char Kind
unsigned char Param
unsigned int Flags
unsigned int Visibility
unsigned short GroupID
unsigned short AliasID
const charAliasArgs
const charValues
unsigned SubCommandIDsOffset

Detailed Description

Entry for a single option instance in the option data table.

Definition at line 64 of file OptTable.h.

Member Function Documentation

◆ appendPrefixes()

void llvm::opt::OptTable::Info::appendPrefixes ( const StringTable & StrTable,
ArrayRef< StringTable::Offset > PrefixesTable,
SmallVectorImpl< StringRef > & Prefixes ) const
inline

◆ getName()

StringRef llvm::opt::OptTable::Info::getName ( const StringTable & StrTable,
ArrayRef< StringTable::Offset > PrefixesTable ) const
inline

Definition at line 138 of file OptTable.h.

References getPrefix(), getPrefixedName(), and hasNoPrefix().

◆ getNumPrefixes()

unsigned llvm::opt::OptTable::Info::getNumPrefixes ( ArrayRef< StringTable::Offset > PrefixesTable) const
inline

Definition at line 94 of file OptTable.h.

References PrefixesOffset.

Referenced by getPrefixOffsets().

◆ getNumSubCommandIDs()

unsigned llvm::opt::OptTable::Info::getNumSubCommandIDs ( ArrayRef< unsigned > SubCommandIDsTable) const
inline

Definition at line 108 of file OptTable.h.

References SubCommandIDsOffset.

Referenced by getSubCommandIDs().

◆ getPrefix()

StringRef llvm::opt::OptTable::Info::getPrefix ( const StringTable & StrTable,
ArrayRef< StringTable::Offset > PrefixesTable,
unsigned PrefixIndex ) const
inline

Definition at line 128 of file OptTable.h.

References getPrefixOffsets().

Referenced by getName().

◆ getPrefixedName()

StringRef llvm::opt::OptTable::Info::getPrefixedName ( const StringTable & StrTable) const
inline

Definition at line 134 of file OptTable.h.

References PrefixedNameOffset.

Referenced by getName().

◆ getPrefixOffsets()

ArrayRef< StringTable::Offset > llvm::opt::OptTable::Info::getPrefixOffsets ( ArrayRef< StringTable::Offset > PrefixesTable) const
inline

◆ getSubCommandIDs()

ArrayRef< unsigned > llvm::opt::OptTable::Info::getSubCommandIDs ( ArrayRef< unsigned > SubCommandIDsTable) const
inline

◆ hasNoPrefix()

bool llvm::opt::OptTable::Info::hasNoPrefix ( ) const
inline

Definition at line 92 of file OptTable.h.

References PrefixesOffset.

Referenced by getName(), and getPrefixOffsets().

◆ hasSubCommands()

bool llvm::opt::OptTable::Info::hasSubCommands ( ) const
inline

Definition at line 106 of file OptTable.h.

References SubCommandIDsOffset.

Referenced by getSubCommandIDs().

Member Data Documentation

◆ AliasArgs

const char* llvm::opt::OptTable::Info::AliasArgs

Definition at line 87 of file OptTable.h.

◆ AliasID

unsigned short llvm::opt::OptTable::Info::AliasID

Definition at line 86 of file OptTable.h.

◆ Flags

unsigned int llvm::opt::OptTable::Info::Flags

Definition at line 83 of file OptTable.h.

Referenced by llvm::opt::OptTable::findNearest().

◆ GroupID

unsigned short llvm::opt::OptTable::Info::GroupID

Definition at line 85 of file OptTable.h.

◆ HelpText

const char* llvm::opt::OptTable::Info::HelpText

Definition at line 67 of file OptTable.h.

Referenced by llvm::opt::OptTable::getOptionHelpText().

◆ HelpTextsForVariants

std::array<std::pair<std::array<unsigned int, 2 >, const char *>, 1 > llvm::opt::OptTable::Info::HelpTextsForVariants

Definition at line 78 of file OptTable.h.

Referenced by llvm::opt::OptTable::getOptionHelpText().

◆ ID

unsigned llvm::opt::OptTable::Info::ID

Definition at line 80 of file OptTable.h.

◆ Kind

unsigned char llvm::opt::OptTable::Info::Kind

Definition at line 81 of file OptTable.h.

◆ MetaVar

const char* llvm::opt::OptTable::Info::MetaVar

Definition at line 79 of file OptTable.h.

◆ Param

unsigned char llvm::opt::OptTable::Info::Param

Definition at line 82 of file OptTable.h.

◆ PrefixedNameOffset

StringTable::Offset llvm::opt::OptTable::Info::PrefixedNameOffset

Definition at line 66 of file OptTable.h.

Referenced by getPrefixedName().

◆ PrefixesOffset

unsigned llvm::opt::OptTable::Info::PrefixesOffset

Definition at line 65 of file OptTable.h.

Referenced by getNumPrefixes(), getPrefixOffsets(), and hasNoPrefix().

◆ SubCommandIDsOffset

unsigned llvm::opt::OptTable::Info::SubCommandIDsOffset

Definition at line 90 of file OptTable.h.

Referenced by getNumSubCommandIDs(), getSubCommandIDs(), and hasSubCommands().

◆ Values

const char* llvm::opt::OptTable::Info::Values

Definition at line 88 of file OptTable.h.

◆ Visibility

unsigned int llvm::opt::OptTable::Info::Visibility

Definition at line 84 of file OptTable.h.

Referenced by llvm::opt::OptTable::findNearest(), and llvm::opt::OptTable::printHelp().


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