[llvm] f271e5d - [SelectionDAG] Deprecate isNullValue and isAllOnesValue
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Sun Mar 12 18:25:14 PDT 2023
Author: Kazu Hirata
Date: 2023-03-12T18:25:07-07:00
New Revision: f271e5d9d44e833ef2264e5b0e9aa5f8383c173d
URL: https://github.com/llvm/llvm-project/commit/f271e5d9d44e833ef2264e5b0e9aa5f8383c173d
DIFF: https://github.com/llvm/llvm-project/commit/f271e5d9d44e833ef2264e5b0e9aa5f8383c173d.diff
LOG: [SelectionDAG] Deprecate isNullValue and isAllOnesValue
This patch deprecates them as there are no known uses of these
functions in the project.
Differential Revision: https://reviews.llvm.org/D145357
Added:
Modified:
llvm/include/llvm/CodeGen/SelectionDAGNodes.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/CodeGen/SelectionDAGNodes.h b/llvm/include/llvm/CodeGen/SelectionDAGNodes.h
index 187d179e3403..011f81ffbece 100644
--- a/llvm/include/llvm/CodeGen/SelectionDAGNodes.h
+++ b/llvm/include/llvm/CodeGen/SelectionDAGNodes.h
@@ -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); }
More information about the llvm-commits
mailing list