21 template <
bool (LFIAsmParser::*HandlerMethod)(StringRef, SMLoc)>
34 addDirectiveHandler<&LFIAsmParser::parseRewriteDisable>(
35 ".lfi_rewrite_disable");
36 addDirectiveHandler<&LFIAsmParser::parseRewriteEnable>(
37 ".lfi_rewrite_enable");
static bool isNot(const MachineRegisterInfo &MRI, const MachineInstr &MI)
This file declares the MCLFIRewriter class, an abstract class that encapsulates the rewriting logic f...
bool parseRewriteEnable(StringRef Directive, SMLoc Loc)
::= {.lfi_rewrite_enable}
bool parseRewriteDisable(StringRef Directive, SMLoc Loc)
::= {.lfi_rewrite_disable}
LFIAsmParser(MCLFIRewriter *Exp)
void Initialize(MCAsmParser &Parser) override
Initialize the extension for parsing using the given Parser.
Generic interface for extending the MCAsmParser, which is implemented by target and object file assem...
static bool HandleDirective(MCAsmParserExtension *Target, StringRef Directive, SMLoc DirectiveLoc)
virtual void Initialize(MCAsmParser &Parser)
Initialize the extension for parsing using the given Parser.
bool TokError(const Twine &Msg)
MCAsmParser & getParser()
Generic assembler parser interface, for use by target specific assembly parsers.
virtual bool checkForValidSection()=0
Ensure that we have a valid section set in the streamer.
std::pair< MCAsmParserExtension *, DirectiveHandler > ExtensionDirectiveHandler
virtual void addDirectiveHandler(StringRef Directive, ExtensionDirectiveHandler Handler)=0
Represents a location in source code.
StringRef - Represent a constant reference to a string, i.e.
This is an optimization pass for GlobalISel generic memory operations.
LLVM_ABI MCAsmParserExtension * createLFIAsmParser(MCLFIRewriter *Exp)