diff options
author | Jay Foad <jay.foad@amd.com> | 2021-09-30 09:54:57 +0100 |
---|---|---|
committer | Jay Foad <jay.foad@amd.com> | 2021-10-04 08:57:44 +0100 |
commit | a9bceb2b059dc24870882a71baece895fe430107 (patch) | |
tree | df54e088f349b1acf32e20d3819ee000ec0a0677 /llvm/lib/IR/Constants.cpp | |
parent | 0873b9bef4e03b4cfc44a4946c11103c763055df (diff) | |
download | llvm-a9bceb2b059dc24870882a71baece895fe430107.zip llvm-a9bceb2b059dc24870882a71baece895fe430107.tar.gz llvm-a9bceb2b059dc24870882a71baece895fe430107.tar.bz2 |
[APInt] Stop using soft-deprecated constructors and methods in llvm. NFC.
Stop using APInt constructors and methods that were soft-deprecated in
D109483. This fixes all the uses I found in llvm, except for the APInt
unit tests which should still test the deprecated methods.
Differential Revision: https://reviews.llvm.org/D110807
Diffstat (limited to 'llvm/lib/IR/Constants.cpp')
-rw-r--r-- | llvm/lib/IR/Constants.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/IR/Constants.cpp b/llvm/lib/IR/Constants.cpp index c2e91f1..0f2f76e 100644 --- a/llvm/lib/IR/Constants.cpp +++ b/llvm/lib/IR/Constants.cpp @@ -95,7 +95,7 @@ bool Constant::isAllOnesValue() const { // Check for FP which are bitcasted from -1 integers if (const ConstantFP *CFP = dyn_cast<ConstantFP>(this)) - return CFP->getValueAPF().bitcastToAPInt().isAllOnesValue(); + return CFP->getValueAPF().bitcastToAPInt().isAllOnes(); // Check for constant splat vectors of 1 values. if (getType()->isVectorTy()) @@ -112,7 +112,7 @@ bool Constant::isOneValue() const { // Check for FP which are bitcasted from 1 integers if (const ConstantFP *CFP = dyn_cast<ConstantFP>(this)) - return CFP->getValueAPF().bitcastToAPInt().isOneValue(); + return CFP->getValueAPF().bitcastToAPInt().isOne(); // Check for constant splat vectors of 1 values. if (getType()->isVectorTy()) @@ -129,7 +129,7 @@ bool Constant::isNotOneValue() const { // Check for FP which are bitcasted from 1 integers if (const ConstantFP *CFP = dyn_cast<ConstantFP>(this)) - return !CFP->getValueAPF().bitcastToAPInt().isOneValue(); + return !CFP->getValueAPF().bitcastToAPInt().isOne(); // Check that vectors don't contain 1 if (auto *VTy = dyn_cast<FixedVectorType>(getType())) { |