OSDN Git Service

Add a doxygen comment for SrcValueSDNode, to make its purpose
authorDan Gohman <gohman@apple.com>
Tue, 12 Feb 2008 18:52:52 +0000 (18:52 +0000)
committerDan Gohman <gohman@apple.com>
Tue, 12 Feb 2008 18:52:52 +0000 (18:52 +0000)
clear and to clarify how it differs from MemOperandSDNode.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47015 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/SelectionDAGNodes.h

index 4117552..f8381c7 100644 (file)
@@ -1396,6 +1396,14 @@ public:
   }
 };
 
+/// SrcValueSDNode - An SDNode that holds an arbitrary LLVM IR Value. This is
+/// used when the SelectionDAG needs to make a simple reference to something
+/// in the LLVM IR representation.
+///
+/// Note that this is not used for carrying alias information; that is done
+/// with MemOperandSDNode, which includes a Value which is required to be a
+/// pointer, and several other fields specific to memory references.
+///
 class SrcValueSDNode : public SDNode {
   const Value *V;
   virtual void ANCHOR();  // Out-of-line virtual method to give class a home.