Index: include/llvm/Target/TargetInstrInfo.h =================================================================== --- include/llvm/Target/TargetInstrInfo.h +++ include/llvm/Target/TargetInstrInfo.h @@ -250,6 +250,12 @@ unsigned &Size, unsigned &Offset, const MachineFunction &MF) const; + + /// Returns the size of the specified MachineInstr. + virtual unsigned GetInstSizeInBytes(const MachineInstr &MI) const { + return 4; + } + /// Return true if the instruction is as cheap as a move instruction. /// /// Targets for different archs need to override this, and different