Home
last modified time | relevance | path

Searched refs:getSignificantBits (Results 1 – 25 of 30) 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()
/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.h415 bool isSignedIntN(unsigned N) const { return getSignificantBits() <= N; } in isSignedIntN()
1119 return (!isSingleWord() && getSignificantBits() > 64) in slt()
1190 return (!isSingleWord() && getSignificantBits() > 64) in sgt()
1491 unsigned getSignificantBits() const { in getSignificantBits() function
1525 assert(getSignificantBits() <= 64 && "Too many bits for int64_t"); in getSExtValue()
1535 return (getSignificantBits() <= 64) ? std::optional<int64_t>(getSExtValue()) in trySExtValue()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DBypassSlowDivision.cpp205 return C && C->getValue().getSignificantBits() > BypassType->getBitWidth(); in isHashLikeValue()
H A DSimplifyCFG.cpp5673 (CaseVal.getSignificantBits() > MaxSignificantBitsInCond)) { in eliminateDeadSwitchCases()
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DTargetTransformInfoImpl.h997 IntElement->getValue().getSignificantBits() - 1; in minRequiredElementSize()
1012 return CI->getValue().getSignificantBits() - 1; in minRequiredElementSize()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DLoadStoreVectorizer.cpp1490 assert(OffsetA.getSignificantBits() <= NewPtrBitWidth && in getConstantOffset()
1491 OffsetB.getSignificantBits() <= NewPtrBitWidth); in getConstantOffset()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLoopStrengthReduce.cpp931 if (C->getAPInt().getSignificantBits() <= 64) { in ExtractImmediate()
1554 APInt(64, Offset.getKnownMinValue(), true).getSignificantBits(); in RateFormula()
2690 if (C->getValue().getSignificantBits() >= 64 || in OptimizeLoopTermCond()
2940 if (Factor->getAPInt().getSignificantBits() <= 64 && !Factor->isZero()) in CollectInterestingTypesAndFactors()
2946 if (Factor->getAPInt().getSignificantBits() <= 64 && !Factor->isZero()) in CollectInterestingTypesAndFactors()
3363 if (IncConst && IncConst->getAPInt().getSignificantBits() > 64) in canFoldIVIncExpr()
6420 if (C->getAPInt().getSignificantBits() > 64) in pushConst()
6509 if (C->getAPInt().getSignificantBits() > 64) in isIdentityFunction()
6877 if (Offset->getSignificantBits() <= 64) in SalvageDVI()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DArgumentPromotion.cpp521 if (Offset.getSignificantBits() >= 64) in findArgParts()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86FixupVectorConstants.cpp309 if ((IsSExt && Elt.getSignificantBits() > SrcEltBitWidth) || in rebuildExtCst()
H A DX86ISelDAGToDAG.cpp4778 unsigned MinWidth = NegMaskVal.getSignificantBits(); in shrinkAndImmediate()
4779 if (MinWidth > 32 || (MinWidth > 8 && MaskVal.getSignificantBits() <= 32)) in shrinkAndImmediate()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DConstantRange.cpp544 return std::max(getSignedMin().getSignificantBits(), in getMinSignedBits()
545 getSignedMax().getSignificantBits()); in getMinSignedBits()
H A DValue.cpp749 if (GEPOffset.getSignificantBits() > BitWidth) in stripAndAccumulateConstantOffsets()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/MIRParser/
H A DMIParser.cpp2435 if (Token.integerValue().getSignificantBits() > 32) in parseCFIOffset()
3023 if (Token.integerValue().getSignificantBits() > 64) in parseOffset()
/freebsd/contrib/llvm-project/clang/lib/AST/Interp/
H A DInterpBuiltin.cpp524 pushInteger(S, Val.getBitWidth() - Val.getSignificantBits(), Call->getType()); in interp__builtin_clrsb()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVTargetTransformInfo.cpp254 if (Imm.getSignificantBits() <= 64 && in getIntImmCostInst()
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZISelDAGToDAG.cpp1444 if (OperandV.getSignificantBits() > 8) in tryFoldLoadStoreIntoMemOperand()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineMulDivRem.cpp1637 Op1C->getSignificantBits()) { in visitSDiv()
/freebsd/contrib/llvm-project/lldb/source/Plugins/SymbolFile/DWARF/
H A DDWARFASTParserClang.cpp2773 is_unsigned ? result.getActiveBits() : result.getSignificantBits(); in ExtractIntFromFormValue()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DConstantFolding.cpp716 if (Offset.getSignificantBits() <= 64) in ConstantFoldLoadFromConst()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DTargetLowering.cpp4593 unsigned ReqdBits = Signed ? C1.getSignificantBits() : C1.getActiveBits(); in SimplifySetCC()
4781 if (C1.getSignificantBits() > ExtSrcTyBits) in SimplifySetCC()
5141 if (C1.getSignificantBits() <= 64 && in SimplifySetCC()
5177 if (ShiftBits && NewC.getSignificantBits() <= 64 && in SimplifySetCC()
H A DDAGCombiner.cpp1131 if (C2APIntVal.getSignificantBits() > 64) in reassociationCanBreakAddressingModePattern()
1140 if (CombinedValueIntVal.getSignificantBits() > 64) in reassociationCanBreakAddressingModePattern()
6393 if (ADDC.getSignificantBits() <= 64 && SRLC.ult(VT.getSizeInBits()) && in visitANDLike()
10227 ? Constant->getAPIntValue().getSignificantBits() in combineShiftToMULH()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaExpr.cpp9906 ? (Result.isNegative() ? Result.getSignificantBits() in canConvertIntToOtherIntTy()
11193 static_cast<llvm::APInt &>(Right) + Left.getSignificantBits(); in DiagnoseBadShiftValues()
11216 << HexResult.str() << Result.getSignificantBits() << LHSType in DiagnoseBadShiftValues()
H A DSemaChecking.cpp9420 return IntRange(value.getSignificantBits(), false); in GetValueRange()
10337 OriginalWidth = Value.getSignificantBits(); in AnalyzeBitFieldAssignment()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DCodeGenPrepare.cpp4932 if (CVal.getSignificantBits() <= 64) { in matchOperationAddr()

12