OSDN Git Service

Noone calls these virtual methods
authorChris Lattner <sabre@nondot.org>
Sun, 29 Feb 2004 05:58:16 +0000 (05:58 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 29 Feb 2004 05:58:16 +0000 (05:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11982 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/SparcV9/SparcV9InstrInfo.h

index d32dc16..4dd578c 100644 (file)
@@ -48,32 +48,6 @@ struct SparcV9InstrInfo : public TargetInstrInfo {
       return -1;
   }
 
-  /// createNOPinstr - returns the target's implementation of NOP, which is
-  /// usually a pseudo-instruction, implemented by a degenerate version of
-  /// another instruction, e.g. X86: xchg ax, ax; SparcV9: sethi 0, g0
-  ///
-  MachineInstr* createNOPinstr() const {
-    return BuildMI(V9::SETHI, 2).addZImm(0).addReg(SparcV9IntRegClass::g0);
-  }
-
-  /// isNOPinstr - not having a special NOP opcode, we need to know if a given
-  /// instruction is interpreted as an `official' NOP instr, i.e., there may be
-  /// more than one way to `do nothing' but only one canonical way to slack off.
-  ///
-  bool isNOPinstr(const MachineInstr &MI) const {
-    // Make sure the instruction is EXACTLY `sethi g0, 0'
-    if (MI.getOpcode() == V9::SETHI && MI.getNumOperands() == 2) {
-      const MachineOperand &op0 = MI.getOperand(0), &op1 = MI.getOperand(1);
-      if (op0.isImmediate() && op0.getImmedValue() == 0 &&
-          op1.getType() == MachineOperand::MO_MachineRegister &&
-          op1.getMachineRegNum() == SparcV9IntRegClass::g0)
-      {
-        return true;
-      }
-    }
-    return false;
-  }
-  
   virtual bool hasResultInterlock(MachineOpCode opCode) const
   {
     // All UltraSPARC instructions have interlocks (note that delay slots