LLVM 23.0.0git
llvm::MCLFIRewriter Class Referenceabstract

#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 char 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
virtual ~MCLFIRewriter ()=default
virtual bool rewriteInst (const MCInst &Inst, MCStreamer &Out, const MCSubtargetInfo &STI)=0
virtual void onLabel (const MCSymbol *Symbol)

Protected Attributes

bool Enabled = true
std::unique_ptr< MCInstrInfoInstInfo
std::unique_ptr< MCRegisterInfoRegInfo

Detailed Description

Definition at line 29 of file MCLFIRewriter.h.

Constructor & Destructor Documentation

◆ MCLFIRewriter()

llvm::MCLFIRewriter::MCLFIRewriter ( MCContext & Ctx,
std::unique_ptr< MCRegisterInfo > && RI,
std::unique_ptr< MCInstrInfo > && II )
inline

Definition at line 39 of file MCLFIRewriter.h.

References II, InstInfo, llvm::move(), and RegInfo.

◆ ~MCLFIRewriter()

virtual llvm::MCLFIRewriter::~MCLFIRewriter ( )
virtualdefault

Member Function Documentation

◆ disable()

void llvm::MCLFIRewriter::disable ( )
inline

Definition at line 45 of file MCLFIRewriter.h.

References Enabled.

◆ enable()

void llvm::MCLFIRewriter::enable ( )
inline

Definition at line 46 of file MCLFIRewriter.h.

References Enabled.

◆ error()

void llvm::MCLFIRewriter::error ( const MCInst & Inst,
const char Msg[] )

Definition at line 22 of file MCLFIRewriter.cpp.

References llvm::MCInst::getLoc().

◆ isBranch()

bool llvm::MCLFIRewriter::isBranch ( const MCInst & Inst) const

Definition at line 30 of file MCLFIRewriter.cpp.

References llvm::MCInst::getOpcode(), and InstInfo.

◆ isCall()

bool llvm::MCLFIRewriter::isCall ( const MCInst & Inst) const

Definition at line 26 of file MCLFIRewriter.cpp.

References llvm::MCInst::getOpcode(), and InstInfo.

◆ isIndirectBranch()

bool llvm::MCLFIRewriter::isIndirectBranch ( const MCInst & Inst) const

Definition at line 34 of file MCLFIRewriter.cpp.

References llvm::MCInst::getOpcode(), and InstInfo.

◆ isReturn()

bool llvm::MCLFIRewriter::isReturn ( const MCInst & Inst) const

Definition at line 38 of file MCLFIRewriter.cpp.

References llvm::MCInst::getOpcode(), and InstInfo.

◆ mayLoad()

bool llvm::MCLFIRewriter::mayLoad ( const MCInst & Inst) const

Definition at line 42 of file MCLFIRewriter.cpp.

References llvm::MCInst::getOpcode(), and InstInfo.

◆ mayModifyRegister()

bool llvm::MCLFIRewriter::mayModifyRegister ( const MCInst & Inst,
MCRegister Reg ) const

Definition at line 50 of file MCLFIRewriter.cpp.

References llvm::MCInst::getOpcode(), InstInfo, Reg, and RegInfo.

◆ mayStore()

bool llvm::MCLFIRewriter::mayStore ( const MCInst & Inst) const

Definition at line 46 of file MCLFIRewriter.cpp.

References llvm::MCInst::getOpcode(), and InstInfo.

◆ onLabel()

virtual void llvm::MCLFIRewriter::onLabel ( const MCSymbol * Symbol)
inlinevirtual

Definition at line 64 of file MCLFIRewriter.h.

◆ rewriteInst()

virtual bool llvm::MCLFIRewriter::rewriteInst ( const MCInst & Inst,
MCStreamer & Out,
const MCSubtargetInfo & STI )
pure virtual

Member Data Documentation

◆ Enabled

bool llvm::MCLFIRewriter::Enabled = true
protected

Definition at line 34 of file MCLFIRewriter.h.

Referenced by disable(), and enable().

◆ InstInfo

std::unique_ptr<MCInstrInfo> llvm::MCLFIRewriter::InstInfo
protected

◆ RegInfo

std::unique_ptr<MCRegisterInfo> llvm::MCLFIRewriter::RegInfo
protected

Definition at line 36 of file MCLFIRewriter.h.

Referenced by mayModifyRegister(), and MCLFIRewriter().


The documentation for this class was generated from the following files: