LLVM 17.0.0git
Namespaces | Functions
OptTable.cpp File Reference
#include "llvm/Option/OptTable.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Option/Arg.h"
#include "llvm/Option/ArgList.h"
#include "llvm/Option/OptSpecifier.h"
#include "llvm/Option/Option.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/Compiler.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/raw_ostream.h"
#include <algorithm>
#include <cassert>
#include <cctype>
#include <cstring>
#include <map>
#include <set>
#include <string>
#include <utility>
#include <vector>

Go to the source code of this file.


namespace  llvm
 This is an optimization pass for GlobalISel generic memory operations.
namespace  llvm::opt


static int llvm::opt::StrCmpOptionNameIgnoreCase (StringRef A, StringRef B)
static int llvm::opt::StrCmpOptionName (StringRef A, StringRef B)
static bool llvm::opt::operator< (const OptTable::Info &A, const OptTable::Info &B)
static bool llvm::opt::operator< (const OptTable::Info &I, StringRef Name)
static bool isInput (const ArrayRef< StringLiteral > &Prefixes, StringRef Arg)
static unsigned matchOption (const OptTable::Info *I, StringRef Str, bool IgnoreCase)
static bool optionMatches (const OptTable::Info &In, StringRef Option)
static std::string getOptionHelpName (const OptTable &Opts, OptSpecifier Id)
static void PrintHelpOptionList (raw_ostream &OS, StringRef Title, std::vector< OptionInfo > &OptionHelp)
static const chargetOptionHelpGroup (const OptTable &Opts, OptSpecifier Id)

Function Documentation

◆ getOptionHelpGroup()

static const char * getOptionHelpGroup ( const OptTable Opts,
OptSpecifier  Id 

◆ getOptionHelpName()

static std::string getOptionHelpName ( const OptTable Opts,
OptSpecifier  Id 

◆ isInput()

static bool isInput ( const ArrayRef< StringLiteral > &  Prefixes,
StringRef  Arg 

Definition at line 151 of file OptTable.cpp.

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

◆ matchOption()

static unsigned matchOption ( const OptTable::Info I,
StringRef  Str,
bool  IgnoreCase 
Matched size. 0 means no match.

Definition at line 161 of file OptTable.cpp.

References I, llvm::StringRef::size(), llvm::StringRef::starts_with_insensitive(), and llvm::StringRef::startswith().

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

◆ optionMatches()

static bool optionMatches ( const OptTable::Info In,
StringRef  Option 

Definition at line 176 of file OptTable.cpp.

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

◆ PrintHelpOptionList()

static void PrintHelpOptionList ( raw_ostream OS,
StringRef  Title,
std::vector< OptionInfo > &  OptionHelp 

Definition at line 572 of file OptTable.cpp.

References llvm::raw_ostream::indent(), llvm::Length, and OS.

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