From 52e724ad7e679ee590f4bd763d55280586a8f1bc Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Wed, 16 Apr 2008 20:10:13 +0000 Subject: Infrastructure for getting the machine code size of a function and an instruction. X86, PowerPC and ARM are implemented git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49809 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/PowerPC/PPCInstrInfo.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/Target/PowerPC/PPCInstrInfo.h') diff --git a/lib/Target/PowerPC/PPCInstrInfo.h b/lib/Target/PowerPC/PPCInstrInfo.h index d74399d..5bd4c4d 100644 --- a/lib/Target/PowerPC/PPCInstrInfo.h +++ b/lib/Target/PowerPC/PPCInstrInfo.h @@ -155,6 +155,11 @@ public: virtual bool BlockHasNoFallThrough(MachineBasicBlock &MBB) const; virtual bool ReverseBranchCondition(std::vector &Cond) const; + + /// GetInstSize - Return the number of bytes of code the specified + /// instruction may be. This returns the maximum number of bytes. + /// + virtual unsigned GetInstSizeInBytes(const MachineInstr *MI) const; }; } -- cgit v1.1