10#include "llvm/Config/llvm-config.h"
22 : Opt(Opt), BaseArg(BaseArg), Spelling(S), Index(Index), Claimed(
false),
23 IgnoredTargetSpecific(
false), OwnsValues(
false) {}
27 : Opt(Opt), BaseArg(BaseArg), Spelling(S), Index(Index), Claimed(
false),
28 IgnoredTargetSpecific(
false), OwnsValues(
false) {
33 const char *Value1,
const Arg *BaseArg)
34 : Opt(Opt), BaseArg(BaseArg), Spelling(S), Index(Index), Claimed(
false),
35 IgnoredTargetSpecific(
false), OwnsValues(
false) {
42 for (
unsigned i = 0, e = Values.
size(); i != e; ++i)
51 O <<
" Index:" << Index;
54 for (
unsigned i = 0, e = Values.
size(); i != e; ++i) {
56 O <<
"'" << Values[i] <<
"'";
62#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
68 return Alias->getAsString(Args);
76 it = ASL.
begin(), ie = ASL.
end(); it != ie; ++it) {
77 if (it != ASL.
begin())
82 return std::string(
OS.str());
113 Output.
push_back(Args.GetOrMakeJoinedArgString(
Defines the llvm::Arg class for parsed arguments.
#define LLVM_DUMP_METHOD
Mark debug helper function definitions like dump() that should not be stripped from debug builds.
This file defines the SmallString class.
SmallString - A SmallString is just a SmallVector with methods and accessors that make it work better...
void append(ItTy in_start, ItTy in_end)
Add the specified range to the end of the SmallVector.
void push_back(const T &Elt)
StringRef - Represent a constant reference to a string, i.e.
ArgList - Ordered collection of driver arguments.
A concrete instance of a particular driver option.
void render(const ArgList &Args, ArgStringList &Output) const
Append the argument onto the given array as strings.
void print(raw_ostream &O) const
void renderAsInput(const ArgList &Args, ArgStringList &Output) const
Append the argument, render as an input, onto the given array as strings.
StringRef getSpelling() const
Returns the used prefix and name of the option: For --foo=bar, returns --foo=.
Arg(const Option Opt, StringRef Spelling, unsigned Index, const Arg *BaseArg=nullptr)
std::string getAsString(const ArgList &Args) const
Return a formatted version of the argument and its values, for diagnostics.
const Option & getOption() const
unsigned getNumValues() const
unsigned getIndex() const
const char * getValue(unsigned N=0) const
Option - Abstract representation for a single form of driver argument.
void print(raw_ostream &O, bool AddNewLine=true) const
This class implements an extremely fast bulk output stream that can only output to a stream.
A raw_ostream that writes to an SmallVector or SmallString.
This is an optimization pass for GlobalISel generic memory operations.
raw_ostream & dbgs()
dbgs() - This returns a reference to a raw_ostream for debugging messages.