10 #ifndef LLVM_OPTION_OPTION_H 11 #define LLVM_OPTION_OPTION_H 85 return Info !=
nullptr;
89 assert(Info &&
"Must have a valid info!");
94 assert(Info &&
"Must have a valid info!");
100 assert(Info &&
"Must have a valid info!");
105 assert(Info &&
"Must have a valid info!");
106 assert(Owner &&
"Must have a valid owner!");
111 assert(Info &&
"Must have a valid info!");
112 assert(Owner &&
"Must have a valid owner!");
119 assert(Info &&
"Must have a valid info!");
121 "AliasArgs should be either 0 or non-empty.");
172 return Info->
Flags & Val;
218 #endif // LLVM_OPTION_OPTION_H
StringRef getPrefix() const
Get the default prefix for this option.
This class represents lattice values for constants.
std::string getPrefixedName() const
Get the name of this option with the default prefix.
const Option getUnaliasedOption() const
getUnaliasedOption - Return the final option this option aliases (itself, if the option has no alias)...
const OptTable::Info * Info
DriverFlag
Base flags for all options. Custom flags may be added after.
void print(raw_ostream &O) const
bool hasNoOptAsInput() const
OptionClass getKind() const
Option - Abstract representation for a single form of driver argument.
StringRef getName() const
Get the name of this option without any prefix.
StringRef getRenderName() const
getRenderName - Return the name to use when rendering this option.
bool matches(OptSpecifier ID) const
matches - Predicate for whether this option is part of the given option (which may be a group)...
A concrete instance of a particular driver option.
Provide access to the Option info table.
bool hasFlag(unsigned Val) const
Test if this option has the flag Val.
const char *const * Prefixes
A null terminated array of prefix strings to apply to name while matching.
const Option getOption(OptSpecifier Opt) const
Get the given Opt's Option instance, lazily creating it if necessary.
const Option getGroup() const
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
const Option getAlias() const
unsigned getNumArgs() const
Option(const OptTable::Info *Info, const OptTable *Owner)
amdgpu Simplify well known AMD library false Value Value * Arg
OptSpecifier - Wrapper class for abstracting references to option IDs.
Entry for a single option instance in the option data table.
RenderStyleKind getRenderStyle() const
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
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.
constexpr char Args[]
Key for Kernel::Metadata::mArgs.
const char * getAliasArgs() const
Get the alias arguments as a \0 separated list.
Arg * accept(const ArgList &Args, unsigned &Index, unsigned ArgSize) const
accept - Potentially accept the current argument, returning a new Arg instance, or 0 if the option do...