projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
InstCombine: Fix a potential bug in 0 - (X sdiv C) -> (X sdiv -C)
[oota-llvm.git]
/
include
/
llvm
/
IR
/
Constant.h
diff --git
a/include/llvm/IR/Constant.h
b/include/llvm/IR/Constant.h
index 82ad9fc2f407e253da96569ccc5243a678e3c46f..d9d163b23ecd888bfd57f36e104e3b4a8e784d5c 100644
(file)
--- a/
include/llvm/IR/Constant.h
+++ b/
include/llvm/IR/Constant.h
@@
-53,6
+53,9
@@
public:
/// getNullValue.
bool isNullValue() const;
+ /// \brief Returns true if the value is one.
+ bool isOneValue() const;
+
/// isAllOnesValue - Return true if this is the value that would be returned by
/// getAllOnesValue.
bool isAllOnesValue() const;