new method for adding ints
[oota-llvm.git] / include / llvm / CodeGen / SelectionDAGCSEMap.h
index f305812bc3d85f255493ad4eb3612dc8e764e50e..c88e2eaad323999c90e77fffec86efeb7c6345e5 100644 (file)
@@ -98,6 +98,12 @@ namespace llvm {
       void SetOperands(const SDOperand *Ops, unsigned NumOps);
       void AddOperand(SDOperand Op);
       void AddPointer(const void *Ptr);
+      void AddInteger(int I) {
+        Bits.push_back((I >>  0) & 0xFF);
+        Bits.push_back((I >>  8) & 0xFF);
+        Bits.push_back((I >> 16) & 0xFF);
+        Bits.push_back((I >> 24) & 0xFF);
+      }
       
       unsigned ComputeHash() const;