9 #ifndef LLVM_OPTION_OPTION_H 10 #define LLVM_OPTION_OPTION_H 84 return Info !=
nullptr;
88 assert(Info &&
"Must have a valid info!");
93 assert(Info &&
"Must have a valid info!");
99 assert(Info &&
"Must have a valid info!");
104 assert(Info &&
"Must have a valid info!");
105 assert(Owner &&
"Must have a valid owner!");
110 assert(Info &&
"Must have a valid info!");
111 assert(Owner &&
"Must have a valid owner!");
118 assert(Info &&
"Must have a valid info!");
120 "AliasArgs should be either 0 or non-empty.");
171 return Info->
Flags & Val;
210 Arg *acceptInternal(
const ArgList &Args,
unsigned &Index,
211 unsigned ArgSize)
const;
222 #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
amdgpu Simplify well known AMD library false FunctionCallee Value * Arg
#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)
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...