Home
last modified time | relevance | path

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

12

/freebsd/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.cpp111 const unsigned ValueBits = Value.getSignificantBits(); in isNegationValuePreserving()
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DAPSInt.cpp28 unsigned MinBits = Tmp.getSignificantBits(); in APSInt()
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DAPInt.h435 bool isSignedIntN(unsigned N) const { return getSignificantBits() <= N; } in isSignedIntN()
1139 return (!isSingleWord() && getSignificantBits() > 64) in slt()
1210 return (!isSingleWord() && getSignificantBits() > 64) in sgt()
1531 unsigned getSignificantBits() const { in getSignificantBits() function
1565 assert(getSignificantBits() <= 64 && "Too many bits for int64_t"); in getSExtValue()
1575 return (getSignificantBits() <= 64) ? std::optional<int64_t>(getSExtValue()) in trySExtValue()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DBypassSlowDivision.cpp204 return C && C->getValue().getSignificantBits() > BypassType->getBitWidth(); in isHashLikeValue()
H A DSimplifyCFG.cpp5823 (CaseVal.getSignificantBits() > MaxSignificantBitsInCond)) { in eliminateDeadSwitchCases()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLoopStrengthReduce.cpp940 if (C->getSignificantBits() <= 64) { in ExtractImmediate()
1536 APInt(64, Offset.getKnownMinValue(), true).getSignificantBits(); in RateFormula()
2679 if (C->getValue().getSignificantBits() >= 64 || in OptimizeLoopTermCond()
2929 if (Factor->getAPInt().getSignificantBits() <= 64 && !Factor->isZero()) in CollectInterestingTypesAndFactors()
2935 if (Factor->getAPInt().getSignificantBits() <= 64 && !Factor->isZero()) in CollectInterestingTypesAndFactors()
3351 if (IncConst && IncConst->getAPInt().getSignificantBits() > 64) in canFoldIVIncExpr()
3358 C->getSignificantBits() > 64) in canFoldIVIncExpr()
6392 if (C->getAPInt().getSignificantBits() > 64) in pushConst()
6481 if (C->getAPInt().getSignificantBits() > 64) in isIdentityFunction()
6840 if (Offset->getSignificantBits() <= 64) in SalvageDVI()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DLoadStoreVectorizer.cpp1618 assert(OffsetA.getSignificantBits() <= NewPtrBitWidth && in getConstantOffset()
1619 OffsetB.getSignificantBits() <= NewPtrBitWidth); in getConstantOffset()
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DTargetTransformInfoImpl.h1171 IntElement->getValue().getSignificantBits() - 1; in minRequiredElementSize()
1186 return CI->getValue().getSignificantBits() - 1; in minRequiredElementSize()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DArgumentPromotion.cpp557 if (Offset.getSignificantBits() >= 64) in findArgParts()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86FixupVectorConstants.cpp316 if ((IsSExt && Elt.getSignificantBits() > SrcEltBitWidth) || in rebuildExtCst()
H A DX86ISelDAGToDAG.cpp4844 unsigned MinWidth = NegMaskVal.getSignificantBits(); in shrinkAndImmediate()
4845 if (MinWidth > 32 || (MinWidth > 8 && MaskVal.getSignificantBits() <= 32)) in shrinkAndImmediate()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DConstantRange.cpp555 return std::max(getSignedMin().getSignificantBits(), in getMinSignedBits()
556 getSignedMax().getSignificantBits()); in getMinSignedBits()
H A DValue.cpp762 if (GEPOffset.getSignificantBits() > BitWidth) in stripAndAccumulateConstantOffsets()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/MIRParser/
H A DMIParser.cpp2468 if (Token.integerValue().getSignificantBits() > 32) in parseCFIOffset()
3056 if (Token.integerValue().getSignificantBits() > 64) in parseOffset()
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZISelDAGToDAG.cpp1455 if (OperandV.getSignificantBits() > 8) in tryFoldLoadStoreIntoMemOperand()
H A DSystemZISelLowering.cpp8950 ? Constant->getAPIntValue().getSignificantBits() in combineShiftToMulAddHigh()
8969 ? Constant->getAPIntValue().getSignificantBits() in combineShiftToMulAddHigh()
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DASTContext.h1811 std::max(NumNegativeBits, (unsigned)InitVal.getSignificantBits()); in computeEnumBits()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineMulDivRem.cpp1805 Op1C->getSignificantBits()) { in visitSDiv()
/freebsd/contrib/llvm-project/lldb/source/Plugins/SymbolFile/DWARF/
H A DDWARFASTParserClang.cpp2879 is_unsigned ? result.getActiveBits() : result.getSignificantBits(); in ExtractIntFromFormValue()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVTargetTransformInfo.cpp263 if (Imm.getSignificantBits() <= 64 && in getIntImmCostInst()
/freebsd/contrib/llvm-project/clang/lib/AST/ByteCode/
H A DInterpBuiltin.cpp659 pushInteger(S, Val.getBitWidth() - Val.getSignificantBits(), Call->getType()); in interp__builtin_clrsb()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DTargetLowering.cpp4806 unsigned ReqdBits = Signed ? C1.getSignificantBits() : C1.getActiveBits(); in SimplifySetCC()
4997 if (C1.getSignificantBits() > ExtSrcTyBits) in SimplifySetCC()
5355 if (C1.getSignificantBits() <= 64 && in SimplifySetCC()
5391 if (ShiftBits && NewC.getSignificantBits() <= 64 && in SimplifySetCC()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DConstantFolding.cpp731 if (Offset.getSignificantBits() <= 64) in ConstantFoldLoadFromConst()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaExpr.cpp10101 ? (Result.isNegative() ? Result.getSignificantBits() in canConvertIntToOtherIntTy()
11480 static_cast<llvm::APInt &>(Right) + Left.getSignificantBits(); in DiagnoseBadShiftValues()
11503 << HexResult.str() << Result.getSignificantBits() << LHSType in DiagnoseBadShiftValues()

12