[llvm-commits] [llvm] r96214 - /llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h

Chris Lattner sabre at nondot.org
Sun Feb 14 23:11:35 PST 2010


Author: lattner
Date: Mon Feb 15 01:11:34 2010
New Revision: 96214

URL: http://llvm.org/viewvc/llvm-project?rev=96214&view=rev
Log:
give SDValue an operator->, allowing V->isTargetOpcode() and
many other natural things.

Modified:
    llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h

Modified: llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h?rev=96214&r1=96213&r2=96214&view=diff

==============================================================================
--- llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h (original)
+++ llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h Mon Feb 15 01:11:34 2010
@@ -821,6 +821,8 @@
   /// 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;
   }





More information about the llvm-commits mailing list