projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4a283e9
)
new method for adding ints
author
Chris Lattner
<sabre@nondot.org>
Fri, 11 Aug 2006 18:53:44 +0000
(18:53 +0000)
committer
Chris 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
patch
|
blob
|
history
diff --git
a/include/llvm/CodeGen/SelectionDAGCSEMap.h
b/include/llvm/CodeGen/SelectionDAGCSEMap.h
index f305812bc3d85f255493ad4eb3612dc8e764e50e..c88e2eaad323999c90e77fffec86efeb7c6345e5 100644
(file)
--- 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 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;
unsigned ComputeHash() const;