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");
MachineInstrBuilder MachineInstrBuilder &DefMI const MCInstrDesc & Desc
static OptionRegistry & instance()
Returns a reference to the singleton instance.
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.
iterator find(const KeyT &Val)
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
StringRef - Represent a constant reference to a string, i.e.