Skip to content

Commit

Permalink
[SelectionDAG] Deprecate isNullValue and isAllOnesValue
Browse files Browse the repository at this point in the history
This patch deprecates them as there are no known uses of these
functions in the project.

Differential Revision: https://reviews.llvm.org/D145357
  • Loading branch information
kazutakahirata committed Mar 13, 2023
1 parent 00eef4f commit f271e5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llvm/include/llvm/CodeGen/SelectionDAGNodes.h
Original file line number Diff line number Diff line change
Expand Up @@ -1608,10 +1608,10 @@ class ConstantSDNode : public SDNode {

bool isOne() const { return Value->isOne(); }
bool isZero() const { return Value->isZero(); }
// NOTE: This is soft-deprecated. Please use `isZero()` instead.
LLVM_DEPRECATED("use isZero instead", "isZero")
bool isNullValue() const { return isZero(); }
bool isAllOnes() const { return Value->isMinusOne(); }
// NOTE: This is soft-deprecated. Please use `isAllOnes()` instead.
LLVM_DEPRECATED("use isAllOnes instead", "isAllOnes")
bool isAllOnesValue() const { return isAllOnes(); }
bool isMaxSignedValue() const { return Value->isMaxValue(true); }
bool isMinSignedValue() const { return Value->isMinValue(true); }
Expand Down

0 comments on commit f271e5d

Please sign in to comment.