Home
last modified time | relevance | path

Searched refs:getSignificantBits (Results 1 – 25 of 32) sorted by relevance

12

/freebsd-14.2/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DAPSIntType.cpp26 MinBits = Value.getSignificantBits(); in testInRange()
36 MinBits = Value.getSignificantBits() - IsUnsigned; in testInRange()
H A DSimpleSValBuilder.cpp110 const unsigned ValueBits = Value.getSignificantBits(); in isNegationValuePreserving()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Support/
H A DAPSInt.cpp28 unsigned MinBits = Tmp.getSignificantBits(); in APSInt()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/ADT/
H A DAPInt.h413 bool isSignedIntN(unsigned N) const { return getSignificantBits() <= N; } in isSignedIntN()
1111 return (!isSingleWord() && getSignificantBits() > 64) in slt()
1182 return (!isSingleWord() && getSignificantBits() > 64) in sgt()
1476 unsigned getSignificantBits() const { in getSignificantBits() function
1510 assert(getSignificantBits() <= 64 && "Too many bits for int64_t"); in getSExtValue()
1520 return (getSignificantBits() <= 64) ? std::optional<int64_t>(getSExtValue()) in trySExtValue()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DFloat2Int.cpp362 unsigned MinBW = std::max(R.getLower().getSignificantBits(), in validateAndTransform()
363 R.getUpper().getSignificantBits()) + in validateAndTransform()
H A DLoopStrengthReduce.cpp803 if (C->getAPInt().getSignificantBits() <= 64) { in ExtractImmediate()
1417 C.ImmCost += APInt(64, Offset, true).getSignificantBits(); in RateFormula()
2501 if (C->getValue().getSignificantBits() >= 64 || in OptimizeLoopTermCond()
2744 if (Factor->getAPInt().getSignificantBits() <= 64 && !Factor->isZero()) in CollectInterestingTypesAndFactors()
2750 if (Factor->getAPInt().getSignificantBits() <= 64 && !Factor->isZero()) in CollectInterestingTypesAndFactors()
3168 if (IncConst->getAPInt().getSignificantBits() > 64) in canFoldIVIncExpr()
6118 if (C->getAPInt().getSignificantBits() > 64) in pushConst()
6207 if (C->getAPInt().getSignificantBits() > 64) in isIdentityFunction()
6575 if (Offset->getSignificantBits() <= 64) in SalvageDVI()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DBypassSlowDivision.cpp205 return C && C->getValue().getSignificantBits() > BypassType->getBitWidth(); in isHashLikeValue()
H A DSimplifyCFG.cpp5602 (CaseVal.getSignificantBits() > MaxSignificantBitsInCond)) { in eliminateDeadSwitchCases()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DLoadStoreVectorizer.cpp1491 assert(OffsetA.getSignificantBits() <= NewPtrBitWidth && in getConstantOffset()
1492 OffsetB.getSignificantBits() <= NewPtrBitWidth); in getConstantOffset()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DTargetTransformInfoImpl.h954 IntElement->getValue().getSignificantBits() - 1; in minRequiredElementSize()
969 return CI->getValue().getSignificantBits() - 1; in minRequiredElementSize()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DArgumentPromotion.cpp492 if (Offset.getSignificantBits() >= 64) in findArgParts()
/freebsd-14.2/contrib/llvm-project/llvm/lib/IR/
H A DConstantRange.cpp488 return std::max(getSignedMin().getSignificantBits(), in getMinSignedBits()
489 getSignedMax().getSignificantBits()); in getMinSignedBits()
H A DValue.cpp748 if (GEPOffset.getSignificantBits() > BitWidth) in stripAndAccumulateConstantOffsets()
H A DConstantFold.cpp1451 if (CI->getValue().getSignificantBits() > 64) in isIndexInRangeOfArrayType()
/freebsd-14.2/contrib/llvm-project/clang/lib/AST/Interp/
H A DInterpBuiltin.cpp535 pushInt(S, Val.getBitWidth() - Val.getSignificantBits()); in interp__builtin_clrsb()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVTargetTransformInfo.cpp214 if (Imm.getSignificantBits() <= 64 && in getIntImmCostInst()
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/MIRParser/
H A DMIParser.cpp2460 if (Token.integerValue().getSignificantBits() > 32) in parseCFIOffset()
3047 if (Token.integerValue().getSignificantBits() > 64) in parseOffset()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZISelDAGToDAG.cpp1429 if (OperandV.getSignificantBits() > 8) in tryFoldLoadStoreIntoMemOperand()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineMulDivRem.cpp1501 Op1C->getSignificantBits()) { in visitSDiv()
/freebsd-14.2/contrib/llvm-project/lldb/source/Plugins/SymbolFile/DWARF/
H A DDWARFASTParserClang.cpp2843 is_unsigned ? result.getActiveBits() : result.getSignificantBits(); in ExtractIntFromFormValue()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86ISelDAGToDAG.cpp4715 unsigned MinWidth = NegMaskVal.getSignificantBits(); in shrinkAndImmediate()
4716 if (MinWidth > 32 || (MinWidth > 8 && MaskVal.getSignificantBits() <= 32)) in shrinkAndImmediate()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/
H A DConstantFolding.cpp716 if (Offset.getSignificantBits() <= 64) in ConstantFoldLoadFromConst()
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DTargetLowering.cpp4536 unsigned ReqdBits = Signed ? C1.getSignificantBits() : C1.getActiveBits(); in SimplifySetCC()
4710 if (C1.getSignificantBits() > ExtSrcTyBits) in SimplifySetCC()
5066 if (C1.getSignificantBits() <= 64 && in SimplifySetCC()
5103 if (ShiftBits && NewC.getSignificantBits() <= 64 && in SimplifySetCC()
/freebsd-14.2/contrib/llvm-project/clang/lib/Sema/
H A DSemaExpr.cpp10904 ? (Result.isNegative() ? Result.getSignificantBits() in canConvertIntToOtherIntTy()
12174 static_cast<llvm::APInt &>(Right) + Left.getSignificantBits(); in DiagnoseBadShiftValues()
12197 << HexResult.str() << Result.getSignificantBits() << LHSType in DiagnoseBadShiftValues()
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/
H A DCodeGenPrepare.cpp4837 if (CVal.getSignificantBits() <= 64) { in matchOperationAddr()

12