Go to the documentation of this file.
9 #ifndef LLVM_OPTION_OPTION_H
10 #define LLVM_OPTION_OPTION_H
84 return Info !=
nullptr;
120 "AliasArgs should be either 0 or non-empty.");
221 bool GroupedShortOption,
unsigned &Index)
const;
225 unsigned &Index)
const;
236 #endif // LLVM_OPTION_OPTION_H
Provide access to the Option info table.
Option(const OptTable::Info *Info, const OptTable *Owner)
const Option getOption(OptSpecifier Opt) const
Get the given Opt's Option instance, lazily creating it if necessary.
This is an optimization pass for GlobalISel generic memory operations.
ArgList - Ordered collection of driver arguments.
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
std::unique_ptr< Arg > accept(const ArgList &Args, StringRef CurArg, bool GroupedShortOption, unsigned &Index) const
Potentially accept the current argument, returning a new Arg instance, or 0 if the option does not ac...
amdgpu Simplify well known AMD library false FunctionCallee Value * Arg
const char * getAliasArgs() const
Get the alias arguments as a \0 separated list.
@ RemainingArgsJoinedClass
bool matches(OptSpecifier ID) const
matches - Predicate for whether this option is part of the given option (which may be a group).
This class implements an extremely fast bulk output stream that can only output to a stream.
unsigned ID
LLVM IR allows to use arbitrary numbers as calling convention identifiers.
void print(raw_ostream &O) const
OptSpecifier - Wrapper class for abstracting references to option IDs.
StringRef getMetaVar() const
Get the meta-variable list for this option.
OptionClass getKind() const
StringRef getName() const
Get the name of this option without any prefix.
StringRef getPrefix() const
Get the default prefix for this option.
DriverFlag
Base flags for all options. Custom flags may be added after.
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
unsigned getNumArgs() const
StringRef - Represent a constant reference to a string, i.e.
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
StringRef getHelpText() const
Get the help text for this option.
const char *const * Prefixes
A null terminated array of prefix strings to apply to name while matching.
bool hasFlag(unsigned Val) const
Test if this option has the flag Val.
Option - Abstract representation for a single form of driver argument.
const Option getGroup() const
Entry for a single option instance in the option data table.
bool hasNoOptAsInput() const
RenderStyleKind getRenderStyle() const
constexpr char Args[]
Key for Kernel::Metadata::mArgs.
const Option getAlias() const
StringRef getRenderName() const
getRenderName - Return the name to use when rendering this option.