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:
5ac03f1
)
give SDValue an operator->, allowing V->isTargetOpcode() and
author
Chris Lattner
<sabre@nondot.org>
Mon, 15 Feb 2010 07:11:34 +0000
(07:11 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Mon, 15 Feb 2010 07:11:34 +0000
(07:11 +0000)
many other natural things.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96214
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/CodeGen/SelectionDAGNodes.h
patch
|
blob
|
history
diff --git
a/include/llvm/CodeGen/SelectionDAGNodes.h
b/include/llvm/CodeGen/SelectionDAGNodes.h
index c8523d81cc745632d4d6ddd64bfc9b0281a6e472..6ba2d3b24b4a35cb29c2f00909cbc4c88ea64e66 100644
(file)
--- a/
include/llvm/CodeGen/SelectionDAGNodes.h
+++ b/
include/llvm/CodeGen/SelectionDAGNodes.h
@@
-821,6
+821,8
@@
public:
/// set the SDNode
void setNode(SDNode *N) { Node = N; }
+ inline SDNode *operator->() const { return Node; }
+
bool operator==(const SDValue &O) const {
return Node == O.Node && ResNo == O.ResNo;
}