|
LLVM 24.0.0git
|
#include "llvm/MC/MCLFIRewriter.h"
Public Member Functions | |
| MCLFIRewriter (MCContext &Ctx, std::unique_ptr< MCRegisterInfo > &&RI, std::unique_ptr< MCInstrInfo > &&II) | |
| LLVM_ABI void | error (const MCInst &Inst, const Twine &Msg) |
| LLVM_ABI void | warning (const MCInst &Inst, const Twine &Msg) |
| void | disable () |
| void | enable () |
| LLVM_ABI bool | isCall (const MCInst &Inst) const |
| LLVM_ABI bool | isBranch (const MCInst &Inst) const |
| LLVM_ABI bool | isIndirectBranch (const MCInst &Inst) const |
| LLVM_ABI bool | isReturn (const MCInst &Inst) const |
| LLVM_ABI bool | mayLoad (const MCInst &Inst) const |
| LLVM_ABI bool | mayStore (const MCInst &Inst) const |
| LLVM_ABI bool | mayModifyRegister (const MCInst &Inst, MCRegister Reg) const |
| LLVM_ABI bool | explicitlyModifiesRegister (const MCInst &Inst, MCRegister Reg) const |
| virtual | ~MCLFIRewriter ()=default |
| virtual bool | rewriteInst (const MCInst &Inst, MCStreamer &Out, const MCSubtargetInfo &STI)=0 |
| virtual void | onLabel (const MCSymbol *Symbol, MCStreamer &Out) |
| virtual void | finish (MCStreamer &Out) |
Protected Attributes | |
| bool | Enabled = true |
| std::unique_ptr< MCInstrInfo > | InstInfo |
| std::unique_ptr< MCRegisterInfo > | RegInfo |
Definition at line 30 of file MCLFIRewriter.h.
|
inline |
Definition at line 40 of file MCLFIRewriter.h.
References II, InstInfo, llvm::move(), and RegInfo.
Referenced by llvm::AArch64MCLFIRewriter::AArch64MCLFIRewriter(), and llvm::X86::X86MCLFIRewriter::X86MCLFIRewriter().
|
virtualdefault |
|
inline |
Definition at line 47 of file MCLFIRewriter.h.
References Enabled.
|
inline |
Definition at line 48 of file MCLFIRewriter.h.
References Enabled.
Definition at line 23 of file MCLFIRewriter.cpp.
References llvm::MCInst::getLoc(), and Msg.
| bool MCLFIRewriter::explicitlyModifiesRegister | ( | const MCInst & | Inst, |
| MCRegister | Reg ) const |
Definition at line 60 of file MCLFIRewriter.cpp.
References llvm::MCInst::getOpcode(), InstInfo, and RegInfo.
|
inlinevirtual |
Reimplemented in llvm::AArch64MCLFIRewriter.
Definition at line 73 of file MCLFIRewriter.h.
Definition at line 35 of file MCLFIRewriter.cpp.
References llvm::MCInst::getOpcode(), and InstInfo.
Definition at line 31 of file MCLFIRewriter.cpp.
References llvm::MCInst::getOpcode(), and InstInfo.
Definition at line 39 of file MCLFIRewriter.cpp.
References llvm::MCInst::getOpcode(), and InstInfo.
Definition at line 43 of file MCLFIRewriter.cpp.
References llvm::MCInst::getOpcode(), and InstInfo.
Definition at line 47 of file MCLFIRewriter.cpp.
References llvm::MCInst::getOpcode(), and InstInfo.
| bool MCLFIRewriter::mayModifyRegister | ( | const MCInst & | Inst, |
| MCRegister | Reg ) const |
Definition at line 55 of file MCLFIRewriter.cpp.
References llvm::MCInst::getOpcode(), InstInfo, and RegInfo.
Definition at line 51 of file MCLFIRewriter.cpp.
References llvm::MCInst::getOpcode(), and InstInfo.
|
inlinevirtual |
Reimplemented in llvm::AArch64MCLFIRewriter.
Definition at line 69 of file MCLFIRewriter.h.
|
pure virtual |
Implemented in llvm::AArch64MCLFIRewriter, and llvm::X86::X86MCLFIRewriter.
Definition at line 27 of file MCLFIRewriter.cpp.
References llvm::MCInst::getLoc(), and Msg.
|
protected |
Definition at line 35 of file MCLFIRewriter.h.
Referenced by disable(), enable(), llvm::AArch64MCLFIRewriter::rewriteInst(), and llvm::X86::X86MCLFIRewriter::rewriteInst().
|
protected |
Definition at line 36 of file MCLFIRewriter.h.
Referenced by explicitlyModifiesRegister(), isBranch(), isCall(), isIndirectBranch(), isReturn(), mayLoad(), mayModifyRegister(), mayStore(), and MCLFIRewriter().
|
protected |
Definition at line 37 of file MCLFIRewriter.h.
Referenced by explicitlyModifiesRegister(), mayModifyRegister(), and MCLFIRewriter().