37 #ifndef LLVM_SUPPORT_OPTIONS_H 38 #define LLVM_SUPPORT_OPTIONS_H 49 template <
typename ValT,
typename Base, ValT(Base::*Mem)>
class OptionKey {
54 template <
typename ValT,
typename Base, ValT(Base::*Mem)>
95 template <
typename ValT,
typename Base, ValT(Base::*Mem)>
97 const ValT &InitValue) {
111 template <
typename ValT,
typename Base, ValT(Base::*Mem)>
ValT get()
const {
113 assert(It != Options.
end() &&
"Option not in OptionRegistry");
This class represents lattice values for constants.
iterator find(const_arg_type_t< KeyT > Val)
initializer< Ty > init(const Ty &Val)
Singleton class used to register debug options.
static void registerOption(StringRef ArgStr, StringRef Desc, const ValT &InitValue)
Registers an option with the OptionRegistry singleton.
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
StringRef - Represent a constant reference to a string, i.e.