Add some comments about undef.
authorDan Gohman <gohman@apple.com>
Fri, 14 May 2010 23:01:02 +0000 (23:01 +0000)
committerDan Gohman <gohman@apple.com>
Fri, 14 May 2010 23:01:02 +0000 (23:01 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103834 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Constants.h

index ba0ace3f7a1bd1b163dc09b50bc489d1733fac8b..9ca845ec9d727784e524f6839bb3aa2481b34f22 100644 (file)
@@ -923,7 +923,11 @@ DEFINE_TRANSPARENT_CASTED_OPERAND_ACCESSORS(ConstantExpr, Constant)
 /// UndefValue - 'undef' values are things that do not have specified contents.
 /// These are used for a variety of purposes, including global variable
 /// initializers and operands to instructions.  'undef' values can occur with
-/// any type.
+/// any first-class type.
+///
+/// Undef values aren't exactly constants; if they have multiple uses, they
+/// can appear to have different bit patterns at each use. See
+/// LangRef.html#undefvalues for details.
 ///
 class UndefValue : public Constant {
   friend struct ConstantCreator<UndefValue, Type, char>;
@@ -954,6 +958,7 @@ public:
     return V->getValueID() == UndefValueVal;
   }
 };
+
 } // End llvm namespace
 
 #endif