Home
last modified time | relevance | path

Searched refs:getMinSignedBits (Results 1 – 25 of 39) sorted by relevance

12

/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/
H A DAPSIntType.cpp26 MinBits = Value.getMinSignedBits(); in testInRange()
36 MinBits = Value.getMinSignedBits() - IsUnsigned; in testInRange()
/llvm-project-15.0.7/llvm/lib/Support/
H A DAPSInt.cpp28 unsigned MinBits = Tmp.getMinSignedBits(); in APSInt()
/llvm-project-15.0.7/polly/lib/Support/
H A DGICHelper.cpp77 if (A.getMinSignedBits() < A.getBitWidth()) in APIntFromVal()
78 A = A.trunc(A.getMinSignedBits()); in APIntFromVal()
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DFloat2Int.cpp394 unsigned MinBW = std::max(R.getLower().getMinSignedBits(), in validateAndTransform()
395 R.getUpper().getMinSignedBits()) + 1; in validateAndTransform()
H A DLoopStrengthReduce.cpp789 if (C->getAPInt().getMinSignedBits() <= 64) { in ExtractImmediate()
1404 C.ImmCost += APInt(64, Offset, true).getMinSignedBits(); in RateFormula()
2486 if (C->getValue().getMinSignedBits() >= 64 || in OptimizeLoopTermCond()
2735 if (Factor->getAPInt().getMinSignedBits() <= 64 && !Factor->isZero()) in CollectInterestingTypesAndFactors()
2741 if (Factor->getAPInt().getMinSignedBits() <= 64 && !Factor->isZero()) in CollectInterestingTypesAndFactors()
3170 if (IncConst->getAPInt().getMinSignedBits() > 64) in canFoldIVIncExpr()
5962 if (C->getAPInt().getMinSignedBits() > 64) in pushConst()
6051 if (C->getAPInt().getMinSignedBits() > 64) in isIdentityFunction()
6399 if (Offset.value().getMinSignedBits() <= 64) in SalvageDVI()
H A DCorrelatedValuePropagation.cpp738 MinSignedBits = std::max(std::get<1>(I)->getMinSignedBits(), MinSignedBits); in narrowSDivOrSRem()
/llvm-project-15.0.7/polly/unittests/Isl/
H A DIslTest.cpp247 EXPECT_EQ(502u, APLargePow2.getMinSignedBits()); in TEST()
255 EXPECT_EQ(501u, APLargeNPow2.getMinSignedBits()); in TEST()
265 EXPECT_EQ(514u, APLargePow2.getMinSignedBits()); in TEST()
273 EXPECT_EQ(513u, APLargeNPow2.getMinSignedBits()); in TEST()
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DConstantRange.h301 unsigned getMinSignedBits() const;
/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DHover.cpp399 if (V.isNegative() && V.getMinSignedBits() <= 32) in printHex()
432 if (T->isEnumeralType() && Constant.Val.getInt().getMinSignedBits() <= 64) { in printExprValue()
444 Constant.Val.getInt().getMinSignedBits() <= 64 && in printExprValue()
/llvm-project-15.0.7/llvm/include/llvm/ADT/
H A DAPSInt.h90 assert(getMinSignedBits() <= 64 && "Too many bits for int64_t"); in getExtValue()
H A DAPInt.h1459 unsigned getMinSignedBits() const { return getSignificantBits(); } in getMinSignedBits() function
/llvm-project-15.0.7/llvm/lib/Target/RISCV/
H A DRISCVTargetTransformInfo.cpp92 if (Imm.getMinSignedBits() <= 64 && in getIntImmCostInst()
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DBypassSlowDivision.cpp207 return C && C->getValue().getMinSignedBits() > BypassType->getBitWidth(); in isHashLikeValue()
H A DSimplifyIndVar.cpp691 MaskBits = SE->getSignedRange(IV).getMinSignedBits(); in replaceFloatIVWithIntegerIV()
/llvm-project-15.0.7/llvm/include/llvm/Analysis/
H A DTargetTransformInfoImpl.h849 IntElement->getValue().getMinSignedBits() - 1; in minRequiredElementSize()
864 return CI->getValue().getMinSignedBits() - 1; in minRequiredElementSize()
/llvm-project-15.0.7/llvm/lib/IR/
H A DConstantRange.cpp483 unsigned ConstantRange::getMinSignedBits() const { in getMinSignedBits() function in ConstantRange
487 return std::max(getSignedMin().getMinSignedBits(), in getMinSignedBits()
488 getSignedMax().getMinSignedBits()); in getMinSignedBits()
H A DValue.cpp737 if (GEPOffset.getMinSignedBits() > BitWidth) in stripAndAccumulateConstantOffsets()
H A DConstantFold.cpp1945 if (CI->getValue().getMinSignedBits() > 64) in isIndexInRangeOfArrayType()
/llvm-project-15.0.7/llvm/lib/Transforms/Vectorize/
H A DLoadStoreVectorizer.cpp346 assert(OffsetA.getMinSignedBits() <= NewPtrBitWidth && in areConsecutivePointers()
347 OffsetB.getMinSignedBits() <= NewPtrBitWidth); in areConsecutivePointers()
/llvm-project-15.0.7/llvm/unittests/IR/
H A DConstantRangeTest.cpp658 TEST_F(ConstantRangeTest, getMinSignedBits) { in TEST_F() argument
663 Exact = std::max(Exact, N.getMinSignedBits()); in TEST_F()
666 unsigned ResultCR = CR.getMinSignedBits(); in TEST_F()
673 unsigned MinBitWidth = CR.getMinSignedBits(); in TEST_F()
/llvm-project-15.0.7/llvm/unittests/ADT/
H A DAPIntTest.cpp167 EXPECT_EQ(33u, s128.getMinSignedBits()); in TEST()
177 EXPECT_EQ(63u, s128.getMinSignedBits()); in TEST()
201 EXPECT_EQ(67u, s256.getMinSignedBits()); in TEST()
210 EXPECT_EQ(61u, s256.getMinSignedBits()); in TEST()
/llvm-project-15.0.7/llvm/lib/CodeGen/MIRParser/
H A DMIParser.cpp1747 if (Int.getMinSignedBits() > 64) in parseImmediateOperand()
2358 if (Token.integerValue().getMinSignedBits() > 32) in parseCFIOffset()
2912 if (Token.integerValue().getMinSignedBits() > 64) in parseOffset()
/llvm-project-15.0.7/llvm/lib/Target/SystemZ/
H A DSystemZISelDAGToDAG.cpp1387 if (OperandV.getMinSignedBits() > 8) in tryFoldLoadStoreIntoMemOperand()
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineMulDivRem.cpp1147 Op0Src->getType()->getScalarSizeInBits() >= Op1C->getMinSignedBits()) { in visitSDiv()
/llvm-project-15.0.7/llvm/include/llvm/CodeGen/
H A DSelectionDAG.h977 assert(MulImm.getMinSignedBits() <= VT.getSizeInBits() &&

12