summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/ARMInstrInfo.h
diff options
context:
space:
mode:
authorNicolas Geoffray <nicolas.geoffray@lip6.fr>2008-04-16 20:10:13 +0000
committerNicolas Geoffray <nicolas.geoffray@lip6.fr>2008-04-16 20:10:13 +0000
commitae84bbdbedb996b1e1aac8304f8f26f37a4a32de (patch)
treee73f0a0743d267032c05cc1fae0bb97679dfecf8 /llvm/lib/Target/ARM/ARMInstrInfo.h
parenta15cee1036a5e5c699328a1992a698b84f5d4880 (diff)
downloadbcm5719-llvm-ae84bbdbedb996b1e1aac8304f8f26f37a4a32de.tar.gz
bcm5719-llvm-ae84bbdbedb996b1e1aac8304f8f26f37a4a32de.zip
Infrastructure for getting the machine code size of a function and an instruction. X86, PowerPC and ARM are implemented
llvm-svn: 49809
Diffstat (limited to 'llvm/lib/Target/ARM/ARMInstrInfo.h')
-rw-r--r--llvm/lib/Target/ARM/ARMInstrInfo.h14
1 files changed, 4 insertions, 10 deletions
diff --git a/llvm/lib/Target/ARM/ARMInstrInfo.h b/llvm/lib/Target/ARM/ARMInstrInfo.h
index 1988b95e2e0..7bcedd8329b 100644
--- a/llvm/lib/Target/ARM/ARMInstrInfo.h
+++ b/llvm/lib/Target/ARM/ARMInstrInfo.h
@@ -225,18 +225,12 @@ public:
virtual bool DefinesPredicate(MachineInstr *MI,
std::vector<MachineOperand> &Pred) const;
+
+ /// GetInstSize - Returns the size of the specified MachineInstr.
+ ///
+ virtual unsigned GetInstSizeInBytes(const MachineInstr* MI) const;
};
- // Utility routines
- namespace ARM {
- /// GetInstSize - Returns the size of the specified MachineInstr.
- ///
- unsigned GetInstSize(MachineInstr *MI);
-
- /// GetFunctionSize - Returns the size of the specified MachineFunction.
- ///
- unsigned GetFunctionSize(MachineFunction &MF);
- }
}
#endif
OpenPOWER on IntegriCloud