|
LLVM
4.0.0
|
#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 |
| Given a branch instruction try to get the address the branch targets. More... | |
Protected Attributes | |
| const MCInstrInfo * | Info |
Friends | |
| class | Target |
Definition at line 24 of file MCInstrAnalysis.h.
|
inline |
Definition at line 30 of file MCInstrAnalysis.h.
|
inlinevirtual |
Definition at line 32 of file MCInstrAnalysis.h.
|
virtual |
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 34 of file MCInstrAnalysis.h.
References llvm::MCInstrInfo::get(), llvm::MCInst::getOpcode(), and Info.
Definition at line 50 of file MCInstrAnalysis.h.
References llvm::MCInstrInfo::get(), llvm::MCInst::getOpcode(), and Info.
Definition at line 38 of file MCInstrAnalysis.h.
References llvm::MCInstrInfo::get(), llvm::MCInst::getOpcode(), and Info.
Definition at line 46 of file MCInstrAnalysis.h.
References llvm::MCInstrInfo::get(), llvm::MCInst::getOpcode(), and Info.
Definition at line 54 of file MCInstrAnalysis.h.
References llvm::MCInstrInfo::get(), llvm::MCInst::getOpcode(), and Info.
Definition at line 58 of file MCInstrAnalysis.h.
References llvm::MCInstrInfo::get(), llvm::MCInst::getOpcode(), and Info.
|
inlinevirtual |
Definition at line 42 of file MCInstrAnalysis.h.
References llvm::MCInstrInfo::get(), llvm::MCInst::getOpcode(), and Info.
|
friend |
Definition at line 26 of file MCInstrAnalysis.h.
|
protected |
Definition at line 27 of file MCInstrAnalysis.h.
Referenced by evaluateBranch(), isBranch(), isCall(), isConditionalBranch(), isIndirectBranch(), isReturn(), isTerminator(), and isUnconditionalBranch().
1.8.6