[llvm-commits] CVS: llvm/lib/Target/SparcV8/SparcV8InstrInfo.cpp SparcV8InstrInfo.h
Chris Lattner
lattner at cs.uiuc.edu
Sun Feb 29 00:03:30 PST 2004
Changes in directory llvm/lib/Target/SparcV8:
SparcV8InstrInfo.cpp updated: 1.1 -> 1.2
SparcV8InstrInfo.h updated: 1.1 -> 1.2
---
Log message:
These two virtual methods are never called.
---
Diffs of the changes: (+1 -32)
Index: llvm/lib/Target/SparcV8/SparcV8InstrInfo.cpp
diff -u llvm/lib/Target/SparcV8/SparcV8InstrInfo.cpp:1.1 llvm/lib/Target/SparcV8/SparcV8InstrInfo.cpp:1.2
--- llvm/lib/Target/SparcV8/SparcV8InstrInfo.cpp:1.1 Wed Feb 25 13:28:19 2004
+++ llvm/lib/Target/SparcV8/SparcV8InstrInfo.cpp Sat Feb 28 23:59:31 2004
@@ -14,29 +14,10 @@
#include "SparcV8InstrInfo.h"
#include "llvm/CodeGen/MachineInstrBuilder.h"
#include "SparcV8GenInstrInfo.inc"
-
-namespace llvm {
+using namespace llvm;
SparcV8InstrInfo::SparcV8InstrInfo()
: TargetInstrInfo(SparcV8Insts,
sizeof(SparcV8Insts)/sizeof(SparcV8Insts[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* SparcV8InstrInfo::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 SparcV8InstrInfo::isNOPinstr(const MachineInstr &MI) const {
- return false;
-}
-
-} // end namespace llvm
Index: llvm/lib/Target/SparcV8/SparcV8InstrInfo.h
diff -u llvm/lib/Target/SparcV8/SparcV8InstrInfo.h:1.1 llvm/lib/Target/SparcV8/SparcV8InstrInfo.h:1.2
--- llvm/lib/Target/SparcV8/SparcV8InstrInfo.h:1.1 Wed Feb 25 13:28:19 2004
+++ llvm/lib/Target/SparcV8/SparcV8InstrInfo.h Sat Feb 28 23:59:31 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