projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
misched: Generate IsBuffered flag for machine resources.
[oota-llvm.git]
/
include
/
llvm
/
MC
/
MCInstrAnalysis.h
diff --git
a/include/llvm/MC/MCInstrAnalysis.h
b/include/llvm/MC/MCInstrAnalysis.h
index 36584ef49acb81efb817011597f468be11e276e4..acad6336aca736bd8b547f79b1787edde59c8136 100644
(file)
--- a/
include/llvm/MC/MCInstrAnalysis.h
+++ b/
include/llvm/MC/MCInstrAnalysis.h
@@
-23,8
+23,9
@@
protected:
friend class Target;
const MCInstrInfo *Info;
friend class Target;
const MCInstrInfo *Info;
- MCInstrAnalysis(const MCInstrInfo *Info) : Info(Info) {}
public:
public:
+ MCInstrAnalysis(const MCInstrInfo *Info) : Info(Info) {}
+
virtual ~MCInstrAnalysis() {}
virtual bool isBranch(const MCInst &Inst) const {
virtual ~MCInstrAnalysis() {}
virtual bool isBranch(const MCInst &Inst) const {
@@
-32,7
+33,7
@@
public:
}
virtual bool isConditionalBranch(const MCInst &Inst) const {
}
virtual bool isConditionalBranch(const MCInst &Inst) const {
- return Info->get(Inst.getOpcode()).isBranch();
+ return Info->get(Inst.getOpcode()).is
Conditional
Branch();
}
virtual bool isUnconditionalBranch(const MCInst &Inst) const {
}
virtual bool isUnconditionalBranch(const MCInst &Inst) const {
@@
-43,6
+44,10
@@
public:
return Info->get(Inst.getOpcode()).isIndirectBranch();
}
return Info->get(Inst.getOpcode()).isIndirectBranch();
}
+ virtual bool isCall(const MCInst &Inst) const {
+ return Info->get(Inst.getOpcode()).isCall();
+ }
+
virtual bool isReturn(const MCInst &Inst) const {
return Info->get(Inst.getOpcode()).isReturn();
}
virtual bool isReturn(const MCInst &Inst) const {
return Info->get(Inst.getOpcode()).isReturn();
}