aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-08-11 18:53:44 +0000
committerChris Lattner <sabre@nondot.org>2006-08-11 18:53:44 +0000
commite2e34093c7cdcb49d1e0dd2da0c985304dcfa54b (patch)
tree5bf7ca7ba8ed93db80fb41d2dbc55cebb5bdd956
parent4a283e90af7984762eb3e984cee747d32c82e3db (diff)
downloadexternal_llvm-e2e34093c7cdcb49d1e0dd2da0c985304dcfa54b.zip
external_llvm-e2e34093c7cdcb49d1e0dd2da0c985304dcfa54b.tar.gz
external_llvm-e2e34093c7cdcb49d1e0dd2da0c985304dcfa54b.tar.bz2
new method for adding ints
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29622 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/CodeGen/SelectionDAGCSEMap.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/SelectionDAGCSEMap.h b/include/llvm/CodeGen/SelectionDAGCSEMap.h
index f305812..c88e2ea 100644
--- a/include/llvm/CodeGen/SelectionDAGCSEMap.h
+++ b/include/llvm/CodeGen/SelectionDAGCSEMap.h
@@ -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;