[llvm-commits] CVS: llvm/lib/Target/PowerPC/PowerPCInstrInfo.cpp PowerPCInstrInfo.h

Chris Lattner lattner at cs.uiuc.edu
Sun Feb 29 00:02:02 PST 2004


Changes in directory llvm/lib/Target/PowerPC:

PowerPCInstrInfo.cpp updated: 1.1 -> 1.2
PowerPCInstrInfo.h updated: 1.1 -> 1.2

---
Log message:

These two virtual methods are never called.


---
Diffs of the changes:  (+1 -33)

Index: llvm/lib/Target/PowerPC/PowerPCInstrInfo.cpp
diff -u llvm/lib/Target/PowerPC/PowerPCInstrInfo.cpp:1.1 llvm/lib/Target/PowerPC/PowerPCInstrInfo.cpp:1.2
--- llvm/lib/Target/PowerPC/PowerPCInstrInfo.cpp:1.1	Wed Jan 21 15:13:19 2004
+++ llvm/lib/Target/PowerPC/PowerPCInstrInfo.cpp	Sat Feb 28 23:59:28 2004
@@ -14,29 +14,9 @@
 #include "PowerPCInstrInfo.h"
 #include "llvm/CodeGen/MachineInstrBuilder.h"
 #include "PowerPCGenInstrInfo.inc"
-
-namespace llvm {
+using namespace llvm;
 
 PowerPCInstrInfo::PowerPCInstrInfo()
   : TargetInstrInfo(PowerPCInsts,
                     sizeof(PowerPCInsts)/sizeof(PowerPCInsts[0]), 0) {
 }
-
-// createNOPinstr - returns the target's implementation of NOP, which is
-// usually a pseudo-instruction, implemented by a degenerate version of
-// another instruction.
-//
-MachineInstr* PowerPCInstrInfo::createNOPinstr() const {
-  return 0;
-}
-
-/// 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 PowerPCInstrInfo::isNOPinstr(const MachineInstr &MI) const {
-  return false;
-}
-
-} // end namespace llvm
-


Index: llvm/lib/Target/PowerPC/PowerPCInstrInfo.h
diff -u llvm/lib/Target/PowerPC/PowerPCInstrInfo.h:1.1 llvm/lib/Target/PowerPC/PowerPCInstrInfo.h:1.2
--- llvm/lib/Target/PowerPC/PowerPCInstrInfo.h:1.1	Wed Jan 21 15:13:19 2004
+++ llvm/lib/Target/PowerPC/PowerPCInstrInfo.h	Sat Feb 28 23:59:28 2004
@@ -29,18 +29,6 @@
   /// always be able to get register info as well (through this method).
   ///
   virtual const MRegisterInfo &getRegisterInfo() const { return RI; }
-
-  /// createNOPinstr - returns the target's implementation of NOP, which is
-  /// usually a pseudo-instruction, implemented by a degenerate version of
-  /// another instruction.
-  ///
-  MachineInstr* createNOPinstr() const;
-
-  /// 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;
 };
 
 }





More information about the llvm-commits mailing list