aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/IR/Constant.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/IR/Constant.h')
-rw-r--r--include/llvm/IR/Constant.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/IR/Constant.h b/include/llvm/IR/Constant.h
index 36a4538..5a3ba28 100644
--- a/include/llvm/IR/Constant.h
+++ b/include/llvm/IR/Constant.h
@@ -61,6 +61,9 @@ public:
/// by getZeroValueForNegation.
bool isNegativeZeroValue() const;
+ /// Return true if the value is negative zero or null value.
+ bool isZeroValue() const;
+
/// canTrap - Return true if evaluation of this constant could trap. This is
/// true for things like constant expressions that could divide by zero.
bool canTrap() const;