11 #include "llvm/Config/llvm-config.h" 23 : Opt(Opt), BaseArg(BaseArg), Spelling(S), Index(Index), Claimed(
false),
28 : Opt(Opt), BaseArg(BaseArg), Spelling(S), Index(Index), Claimed(
false),
34 const char *Value1,
const Arg *BaseArg)
35 : Opt(Opt), BaseArg(BaseArg), Spelling(S), Index(Index), Claimed(
false),
43 for (
unsigned i = 0, e = Values.
size(); i != e; ++i)
54 O <<
" Index:" << Index;
57 for (
unsigned i = 0, e = Values.
size(); i != e; ++i) {
59 O <<
"'" << Values[i] <<
"'";
65 #if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP) 76 it = ASL.
begin(), ie = ASL.
end(); it != ie; ++it) {
77 if (it != ASL.
begin())
unsigned getNumValues() const
This class represents lattice values for constants.
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.
void push_back(const T &Elt)
A raw_ostream that writes to an SmallVector or SmallString.
std::string getAsString(const ArgList &Args) const
Return a formatted version of the argument and its values, for debugging and diagnostics.
const Option & getOption() const
void print(raw_ostream &O) const
Arg(const Option Opt, StringRef Spelling, unsigned Index, const Arg *BaseArg=nullptr)
Option - Abstract representation for a single form of driver argument.
A concrete instance of a particular driver option.
LLVM_ATTRIBUTE_ALWAYS_INLINE iterator begin()
const char * MakeArgString(const Twine &Str) const
const char * GetOrMakeJoinedArgString(unsigned Index, StringRef LHS, StringRef RHS) const
Create an arg string for (LHS + RHS), reusing the string at Index if possible.
unsigned getIndex() const
StringRef getSpelling() const
StringRef str()
Return a StringRef for the vector contents.
raw_ostream & dbgs()
dbgs() - This returns a reference to a raw_ostream for debugging messages.
Defines the llvm::Arg class for parsed arguments.
typename SuperClass::iterator iterator
void append(in_iter in_start, in_iter in_end)
Add the specified range to the end of the SmallVector.
LLVM_ATTRIBUTE_ALWAYS_INLINE iterator end()
void render(const ArgList &Args, ArgStringList &Output) const
Append the argument onto the given array as strings.
This class implements an extremely fast bulk output stream that can only output to a stream...
StringRef - Represent a constant reference to a string, i.e.
ArgList - Ordered collection of driver arguments.
const char * getValue(unsigned N=0) const
constexpr char Args[]
Key for Kernel::Metadata::mArgs.