[llvm-commits] CVS: llvm/include/llvm/CodeGen/SelectionDAGCSEMap.h
Chris Lattner
lattner at cs.uiuc.edu
Fri Aug 11 11:53:58 PDT 2006
Changes in directory llvm/include/llvm/CodeGen:
SelectionDAGCSEMap.h updated: 1.1 -> 1.2
---
Log message:
new method for adding ints
---
Diffs of the changes: (+6 -0)
SelectionDAGCSEMap.h | 6 ++++++
1 files changed, 6 insertions(+)
Index: llvm/include/llvm/CodeGen/SelectionDAGCSEMap.h
diff -u llvm/include/llvm/CodeGen/SelectionDAGCSEMap.h:1.1 llvm/include/llvm/CodeGen/SelectionDAGCSEMap.h:1.2
--- llvm/include/llvm/CodeGen/SelectionDAGCSEMap.h:1.1 Mon Aug 7 18:31:24 2006
+++ llvm/include/llvm/CodeGen/SelectionDAGCSEMap.h Fri Aug 11 13:53:44 2006
@@ -98,6 +98,12 @@
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;
More information about the llvm-commits
mailing list