Go to the documentation of this file.
10 #include "llvm/Config/llvm-config.h"
29 Values.push_back(Value0);
33 const char *Value1,
const Arg *BaseArg)
36 Values.push_back(Value0);
37 Values.push_back(Value1);
42 for (
unsigned i = 0,
e = Values.size();
i !=
e; ++
i)
56 for (
unsigned i = 0,
e = Values.size();
i !=
e; ++
i) {
58 O <<
"'" << Values[
i] <<
"'";
64 #if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
70 return Alias->getAsString(
Args);
78 it = ASL.begin(), ie = ASL.end();
it != ie; ++
it) {
79 if (
it != ASL.begin())
84 return std::string(OS.
str());
93 Output.append(Values.begin(), Values.end());
99 Output.append(Values.begin(), Values.end());
110 Output.push_back(
Args.MakeArgString(OS.
str()));
115 Output.push_back(
Args.GetOrMakeJoinedArgString(
117 Output.append(Values.begin() + 1, Values.end());
122 Output.append(Values.begin(), Values.end());
std::string getAsString(const ArgList &Args) const
Return a formatted version of the argument and its values, for diagnostics.
#define LLVM_DUMP_METHOD
Mark debug helper function definitions like dump() that should not be stripped from debug builds.
This is an optimization pass for GlobalISel generic memory operations.
into xmm2 addss xmm2 xmm1 xmm3 addss xmm3 movaps xmm0 unpcklps xmm0 ret seems silly when it could just be one addps Expand libm rounding functions main should enable SSE DAZ mode and other fast SSE modes Think about doing i64 math in SSE regs on x86 This testcase should have no SSE instructions in it
A concrete instance of a particular driver option.
ArgList - Ordered collection of driver arguments.
void print(raw_ostream &O) const
unsigned getIndex() const
raw_ostream & dbgs()
dbgs() - This returns a reference to a raw_ostream for debugging messages.
const Option & getOption() const
unsigned getNumValues() const
This class implements an extremely fast bulk output stream that can only output to a stream.
const char * getValue(unsigned N=0) const
void print(raw_ostream &O) const
StringRef getSpelling() const
Returns the used prefix and name of the option: For --foo=bar, returns --foo=.
void render(const ArgList &Args, ArgStringList &Output) const
Append the argument onto the given array as strings.
StringRef - Represent a constant reference to a string, i.e.
StringRef str() const
Return a StringRef for the vector contents.
add sub stmia L5 ldr r0 bl L_printf $stub Instead of a and a wouldn t it be better to do three moves *Return an aggregate type is even return S
void renderAsInput(const ArgList &Args, ArgStringList &Output) const
Append the argument, render as an input, onto the given array as strings.
Option - Abstract representation for a single form of driver argument.
Arg(const Option Opt, StringRef Spelling, unsigned Index, const Arg *BaseArg=nullptr)
typename SuperClass::iterator iterator
A raw_ostream that writes to an SmallVector or SmallString.
constexpr char Args[]
Key for Kernel::Metadata::mArgs.