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