new method for adding ints
authorChris Lattner <sabre@nondot.org>
Fri, 11 Aug 2006 18:53:44 +0000 (18:53 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 11 Aug 2006 18:53:44 +0000 (18:53 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29622 91177308-0d34-0410-b5e6-96231b3b80d8

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;