From f271e5d9d44e833ef2264e5b0e9aa5f8383c173d Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sun, 12 Mar 2023 18:25:07 -0700 Subject: [PATCH] [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 --- llvm/include/llvm/CodeGen/SelectionDAGNodes.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/include/llvm/CodeGen/SelectionDAGNodes.h b/llvm/include/llvm/CodeGen/SelectionDAGNodes.h index 187d179..011f81f 100644 --- a/llvm/include/llvm/CodeGen/SelectionDAGNodes.h +++ b/llvm/include/llvm/CodeGen/SelectionDAGNodes.h @@ -1608,10 +1608,10 @@ public: 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); } -- 2.7.4