Home
last modified time | relevance | path

Searched refs:computeKnownBits (Results 1 – 25 of 71) sorted by relevance

123

/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineSimplifyDemanded.cpp96 llvm::computeKnownBits(V, Known, Depth, Q); in SimplifyDemandedBits()
112 llvm::computeKnownBits(V, Known, Depth, Q); in SimplifyDemandedBits()
206 llvm::computeKnownBits(I, Known, Depth, Q); in SimplifyDemandedUseBits()
628 llvm::computeKnownBits(I, Known, Depth, Q); in SimplifyDemandedUseBits()
649 llvm::computeKnownBits(I, Known, Depth, Q); in SimplifyDemandedUseBits()
714 llvm::computeKnownBits(I, Known, Depth, Q); in SimplifyDemandedUseBits()
731 llvm::computeKnownBits(I, Known, Depth, Q); in SimplifyDemandedUseBits()
779 llvm::computeKnownBits(I, Known, Depth, Q); in SimplifyDemandedUseBits()
834 llvm::computeKnownBits(I, Known, Depth, Q); in SimplifyDemandedUseBits()
856 llvm::computeKnownBits(I, Known, Depth, Q); in SimplifyDemandedUseBits()
[all …]
H A DInstCombineCasts.cpp308 llvm::computeKnownBits(I->getOperand(1), IC.getDataLayout()); in canEvaluateTruncated()
323 llvm::computeKnownBits(I->getOperand(1), IC.getDataLayout()); in canEvaluateTruncated()
341 llvm::computeKnownBits(I->getOperand(1), IC.getDataLayout()); in canEvaluateTruncated()
959 KnownBits Known = computeKnownBits(Cmp->getOperand(0), 0, &Zext); in transformZExtICmp()
1321 KnownBits Known = computeKnownBits(Op0, 0, &Sext); in transformSExtICmp()
1700 KnownBits SrcKnown = IC.computeKnownBits(Src, 0, &I); in isKnownExactCastIntToFP()
H A DInstCombineShifts.cpp984 KnownBits KnownCnt = computeKnownBits(I.getOperand(1), /* Depth */ 0, Q); in setShiftFlags()
990 KnownBits KnownAmt = computeKnownBits(I.getOperand(0), /* Depth */ 0, Q); in setShiftFlags()
1292 computeKnownBits(X, /*Depth=*/0, &I).countMaxActiveBits() <= 1 && in visitLShr()
1293 computeKnownBits(Y, /*Depth=*/0, &I).countMaxActiveBits() <= 1) in visitLShr()
H A DInstCombineCalls.cpp590 KnownBits Known = IC.computeKnownBits(Op0, 0, &II); in foldCttzCtlz()
674 IC.computeKnownBits(Op0, Known, 0, &II); in foldCtpop()
1045 KnownBits Known = computeKnownBits(Op, /*Depth=*/0, SQ); in getKnownSign()
1949 KnownBits Known = computeKnownBits(IIOperand, 0, II); in visitCallInst()
2866 uint64_t Bytes1 = computeKnownBits(Bytes, 0, Op0).One.getZExtValue(); in visitCallInst()
2867 uint64_t Mask1 = computeKnownBits(Mask, 0, II).One.getZExtValue(); in visitCallInst()
3156 computeKnownBits(IIOperand, Known, 0, II); in visitCallInst()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DValueTracking.cpp150 static void computeKnownBits(const Value *V, const APInt &DemandedElts,
154 void llvm::computeKnownBits(const Value *V, KnownBits &Known, unsigned Depth, in computeKnownBits() function in llvm
162 ::computeKnownBits(V, DemandedElts, Known, Depth, Q); in computeKnownBits()
165 void llvm::computeKnownBits(const Value *V, KnownBits &Known, in computeKnownBits() function in llvm
169 computeKnownBits( in computeKnownBits()
174 KnownBits llvm::computeKnownBits(const Value *V, const DataLayout &DL, in computeKnownBits() function in llvm
178 return computeKnownBits( in computeKnownBits()
182 KnownBits llvm::computeKnownBits(const Value *V, const APInt &DemandedElts, in computeKnownBits() function in llvm
186 return computeKnownBits( in computeKnownBits()
286 return computeKnownBits(V, Depth, SQ).isNonNegative(); in isKnownNonNegative()
[all …]
H A DDemandedBits.cpp74 computeKnownBits(V1, Known, DL, 0, &AC, UserI, &DT); in determineLiveOperandBits()
78 computeKnownBits(V2, Known2, DL, 0, &AC, UserI, &DT); in determineLiveOperandBits()
H A DInstructionSimplify.cpp816 KnownBits Known = computeKnownBits(Op1, /* Depth */ 0, Q); in simplifySubInst()
1068 computeKnownBits(X, /* Depth */ 0, Q).getMaxValue().ult(*C)) in isDivZero()
1130 KnownBits Known = computeKnownBits(Op1, /* Depth */ 0, Q); in simplifyDivRem()
1200 KnownBits KnownOp0 = computeKnownBits(Op0, /* Depth */ 0, Q); in simplifyDiv()
1387 KnownBits KnownAmt = computeKnownBits(Op1, /* Depth */ 0, Q); in simplifyShift()
1400 KnownBits KnownVal = computeKnownBits(Op0, /* Depth */ 0, Q); in simplifyShift()
1436 KnownBits Op0Known = computeKnownBits(Op0, /* Depth */ 0, Q); in simplifyRightShift()
1508 const KnownBits YKnown = computeKnownBits(Y, /* Depth */ 0, Q); in simplifyLShrInst()
2129 KnownBits Known = computeKnownBits(Shift, /* Depth */ 0, Q); in simplifyAndInst()
2193 const KnownBits YKnown = computeKnownBits(Y, /* Depth */ 0, Q); in simplifyAndInst()
[all …]
H A DLint.cpp521 computeKnownBits(V, DL, 0, AC, dyn_cast<Instruction>(V), DT); in isZero()
541 KnownBits Known = computeKnownBits(Elem, DL); in isZero()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/AggressiveInstCombine/
H A DAggressiveInstCombineInternal.h111 KnownBits computeKnownBits(const Value *V) const { in computeKnownBits() function
112 return llvm::computeKnownBits(V, DL, /*Depth=*/0, &AC, in computeKnownBits()
H A DTruncInstCombine.cpp310 KnownBits KnownRHS = computeKnownBits(I->getOperand(1)); in getBestTruncatedType()
317 KnownBits KnownLHS = computeKnownBits(I->getOperand(0)); in getBestTruncatedType()
333 KnownBits Known = computeKnownBits(Op); in getBestTruncatedType()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAG.cpp2693 return Mask.isSubsetOf(computeKnownBits(V, Depth).Zero); in MaskedValueIsZero()
2702 return Mask.isSubsetOf(computeKnownBits(V, DemandedElts, Depth).Zero); in MaskedValueIsZero()
2709 return computeKnownBits(V, DemandedElts, Depth).isZero(); in MaskedVectorIsZero()
2715 return Mask.isSubsetOf(computeKnownBits(V, Depth).One); in MaskedValueIsAllOnes()
3055 KnownBits KnownAmt = computeKnownBits(V.getOperand(1), DemandedElts, Depth); in getValidShiftAmountRange()
3129 KnownBits SelectionDAG::computeKnownBits(SDValue Op, unsigned Depth) const { in computeKnownBits() function in SelectionDAG
3138 return computeKnownBits(Op, DemandedElts, Depth); in computeKnownBits()
3144 KnownBits SelectionDAG::computeKnownBits(SDValue Op, const APInt &DemandedElts, in computeKnownBits() function in SelectionDAG
3174 return computeKnownBits(Op.getOperand(Op.getResNo()), DemandedElts, in computeKnownBits()
3182 Known = computeKnownBits(SrcOp, Depth + 1).trunc(BitWidth); in computeKnownBits()
[all …]
H A DTargetLowering.cpp759 LHSKnown = DAG.computeKnownBits(Op.getOperand(0), DemandedElts, Depth + 1); in SimplifyMultipleUseDemandedBits()
760 RHSKnown = DAG.computeKnownBits(Op.getOperand(1), DemandedElts, Depth + 1); in SimplifyMultipleUseDemandedBits()
772 LHSKnown = DAG.computeKnownBits(Op.getOperand(0), DemandedElts, Depth + 1); in SimplifyMultipleUseDemandedBits()
773 RHSKnown = DAG.computeKnownBits(Op.getOperand(1), DemandedElts, Depth + 1); in SimplifyMultipleUseDemandedBits()
785 LHSKnown = DAG.computeKnownBits(Op.getOperand(0), DemandedElts, Depth + 1); in SimplifyMultipleUseDemandedBits()
786 RHSKnown = DAG.computeKnownBits(Op.getOperand(1), DemandedElts, Depth + 1); in SimplifyMultipleUseDemandedBits()
1017 DAG.computeKnownBits(ExtOpA, DemandedElts, Depth).countMinLeadingZeros(); in combineShiftToAVG()
1019 DAG.computeKnownBits(ExtOpB, DemandedElts, Depth).countMinLeadingZeros(); in combineShiftToAVG()
1186 Known = TLO.DAG.computeKnownBits(Op, DemandedElts, Depth); in SimplifyDemandedBits()
1203 Known = TLO.DAG.computeKnownBits(Op, DemandedElts, Depth); in SimplifyDemandedBits()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/InstCombine/
H A DInstCombiner.h431 void computeKnownBits(const Value *V, KnownBits &Known, unsigned Depth, in computeKnownBits() function
433 llvm::computeKnownBits(V, Known, Depth, SQ.getWithInstruction(CxtI)); in computeKnownBits()
436 KnownBits computeKnownBits(const Value *V, unsigned Depth, in computeKnownBits() function
438 return llvm::computeKnownBits(V, Depth, SQ.getWithInstruction(CxtI)); in computeKnownBits()
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DValueTracking.h58 void computeKnownBits(const Value *V, KnownBits &Known, const DataLayout &DL,
65 KnownBits computeKnownBits(const Value *V, const DataLayout &DL,
72 KnownBits computeKnownBits(const Value *V, const APInt &DemandedElts,
79 KnownBits computeKnownBits(const Value *V, const APInt &DemandedElts,
82 KnownBits computeKnownBits(const Value *V, unsigned Depth,
85 void computeKnownBits(const Value *V, KnownBits &Known, unsigned Depth,
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DInferAlignment.cpp73 KnownBits Known = computeKnownBits(PtrOp, DL, 0, &AC, &I, &DT); in inferAlignment()
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyISelDAGToDAG.cpp381 KnownBits Known0 = CurDAG->computeKnownBits(N->getOperand(0), 0); in SelectAddrOperands()
382 KnownBits Known1 = CurDAG->computeKnownBits(N->getOperand(1), 0); in SelectAddrOperands()
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMipsISelDAGToDAG.cpp343 KnownBits Known = CurDAG->computeKnownBits(N->getOperand(0)); in isUnneededShiftMask()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DBypassSlowDivision.cpp239 computeKnownBits(V, Known, DL); in getValueRange()
H A DLowerSwitch.cpp411 KnownBits Known = computeKnownBits(Val, DL, /*Depth=*/0, AC, SI); in ProcessSwitchInst()
/freebsd/contrib/llvm-project/llvm/lib/Target/LoongArch/
H A DLoongArchISelDAGToDAG.cpp252 KnownBits Known = CurDAG->computeKnownBits(N->getOperand(0)); in selectShiftMask()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86PartialReduction.cpp97 computeKnownBits(LHS, *DL).countMaxActiveBits() <= 8) && in matchVPDPBUSDPattern()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPULateCodeGenPrepare.cpp78 KnownBits Known = computeKnownBits(V, *DL, 0, AC); in isDWORDAligned()
H A DAMDGPUTargetTransformInfo.cpp982 return computeKnownBits(Mask, DL).countMinTrailingZeros() >= in isAlwaysUniform()
1067 KnownBits Known = computeKnownBits(MaskOp, DL, 0, nullptr, II); in rewriteIntrinsicWithAddressSpace()
/freebsd/contrib/llvm-project/llvm/lib/Target/XCore/
H A DXCoreISelLowering.cpp398 KnownBits Known = DAG.computeKnownBits(Value); in isWordAligned()
1562 KnownBits Known = DAG.computeKnownBits(N2); in PerformDAGCombine()
1584 KnownBits Known = DAG.computeKnownBits(N2); in PerformDAGCombine()
1599 KnownBits Known = DAG.computeKnownBits(N2); in PerformDAGCombine()
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZISelDAGToDAG.cpp768 KnownBits Known = CurDAG->computeKnownBits(Op.getOperand(0)); in detectOrAndInsertion()
828 KnownBits Known = CurDAG->computeKnownBits(Input); in expandRxSBG()
851 KnownBits Known = CurDAG->computeKnownBits(Input); in expandRxSBG()

123