summaryrefslogtreecommitdiff
path: root/include/llvm/Constants.h
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-05-14 23:01:02 +0000
committerDan Gohman <gohman@apple.com>2010-05-14 23:01:02 +0000
commitfd726176886b946ff4eaaf85bd254c5fbbacabfd (patch)
tree1e5968a4c0da1245c56e1faafaf98c4890d31a1a /include/llvm/Constants.h
parent12c24690c7dc53cf6e6ca8cb062255e82d568edf (diff)
downloadllvm-fd726176886b946ff4eaaf85bd254c5fbbacabfd.tar.gz
llvm-fd726176886b946ff4eaaf85bd254c5fbbacabfd.tar.bz2
llvm-fd726176886b946ff4eaaf85bd254c5fbbacabfd.tar.xz
Add some comments about undef.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103834 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Constants.h')
-rw-r--r--include/llvm/Constants.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/llvm/Constants.h b/include/llvm/Constants.h
index ba0ace3f7a..9ca845ec9d 100644
--- a/include/llvm/Constants.h
+++ b/include/llvm/Constants.h
@@ -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