[llvm-commits] CVS: llvm/include/llvm/Target/TargetSchedInfo.h

Chris Lattner lattner at cs.uiuc.edu
Mon Oct 25 12:07:57 PDT 2004



Changes in directory llvm/include/llvm/Target:

TargetSchedInfo.h updated: 1.30 -> 1.31
---
Log message:

Remove a dead class.  Thanks to Morten Ofstad for pointing this out.


---
Diffs of the changes:  (+0 -26)

Index: llvm/include/llvm/Target/TargetSchedInfo.h
diff -u llvm/include/llvm/Target/TargetSchedInfo.h:1.30 llvm/include/llvm/Target/TargetSchedInfo.h:1.31
--- llvm/include/llvm/Target/TargetSchedInfo.h:1.30	Wed Sep  1 17:55:35 2004
+++ llvm/include/llvm/Target/TargetSchedInfo.h	Mon Oct 25 14:07:43 2004
@@ -25,32 +25,6 @@
 typedef long long cycles_t; 
 static const cycles_t HUGE_LATENCY = ~((long long) 1 << (sizeof(cycles_t)-2));
 static const cycles_t INVALID_LATENCY = -HUGE_LATENCY; 
-static const unsigned MAX_OPCODE_SIZE = 16;
-
-class OpCodePair {
-public:
-  long val;			// make long by concatenating two opcodes
-  OpCodePair(MachineOpCode op1, MachineOpCode op2)
-    : val((op1 < 0 || op2 < 0)?
-	-1 : (long)((((unsigned) op1) << MAX_OPCODE_SIZE) | (unsigned) op2)) {}
-  bool operator==(const OpCodePair& op) const {
-    return val == op.val;
-  }
-private:
-  OpCodePair();			// disable for now
-};
-
-} // End llvm namespace
-
-namespace HASH_NAMESPACE {
-  template <> struct hash<llvm::OpCodePair> {
-    size_t operator()(const llvm::OpCodePair& pair) const {
-      return hash<long>()(pair.val);
-    }
-  };
-} // End HASH_NAMESPACE (a macro) namespace
-
-namespace llvm {
 
 //---------------------------------------------------------------------------
 // class MachineResource 






More information about the llvm-commits mailing list