LLVM API Documentation
#include <MCInstrAnalysis.h>
Public Member Functions | |
MCInstrAnalysis (const MCInstrInfo *Info) | |
virtual | ~MCInstrAnalysis () |
virtual bool | isBranch (const MCInst &Inst) const |
virtual bool | isConditionalBranch (const MCInst &Inst) const |
virtual bool | isUnconditionalBranch (const MCInst &Inst) const |
virtual bool | isIndirectBranch (const MCInst &Inst) const |
virtual bool | isCall (const MCInst &Inst) const |
virtual bool | isReturn (const MCInst &Inst) const |
virtual bool | isTerminator (const MCInst &Inst) const |
virtual bool | evaluateBranch (const MCInst &Inst, uint64_t Addr, uint64_t Size, uint64_t &Target) const |
Protected Attributes | |
const MCInstrInfo * | Info |
Friends | |
class | Target |
Definition at line 21 of file MCInstrAnalysis.h.
|
inline |
Definition at line 27 of file MCInstrAnalysis.h.
|
inlinevirtual |
Definition at line 29 of file MCInstrAnalysis.h.
|
virtual |
evaluateBranch - Given a branch instruction try to get the address the branch targets. Return true on success, and the address in Target.
Definition at line 13 of file MCInstrAnalysis.cpp.
References llvm::MCInstrInfo::get(), llvm::MCOperand::getImm(), llvm::MCInst::getNumOperands(), llvm::MCInst::getOpcode(), llvm::MCInst::getOperand(), Info, and llvm::MCOI::OPERAND_PCREL.
Definition at line 31 of file MCInstrAnalysis.h.
References llvm::MCInstrInfo::get(), llvm::MCInst::getOpcode(), and Info.
Definition at line 47 of file MCInstrAnalysis.h.
References llvm::MCInstrInfo::get(), llvm::MCInst::getOpcode(), and Info.
Definition at line 35 of file MCInstrAnalysis.h.
References llvm::MCInstrInfo::get(), llvm::MCInst::getOpcode(), and Info.
Definition at line 43 of file MCInstrAnalysis.h.
References llvm::MCInstrInfo::get(), llvm::MCInst::getOpcode(), and Info.
Definition at line 51 of file MCInstrAnalysis.h.
References llvm::MCInstrInfo::get(), llvm::MCInst::getOpcode(), and Info.
Definition at line 55 of file MCInstrAnalysis.h.
References llvm::MCInstrInfo::get(), llvm::MCInst::getOpcode(), and Info.
|
inlinevirtual |
Definition at line 39 of file MCInstrAnalysis.h.
References llvm::MCInstrInfo::get(), llvm::MCInst::getOpcode(), and Info.
|
friend |
Definition at line 23 of file MCInstrAnalysis.h.
|
protected |
Definition at line 24 of file MCInstrAnalysis.h.
Referenced by evaluateBranch(), isBranch(), isCall(), isConditionalBranch(), isIndirectBranch(), isReturn(), isTerminator(), and isUnconditionalBranch().