Home
last modified time | relevance | path

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

1234

/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineSimplifyDemanded.cpp103 llvm::computeKnownBits(V, Known, Q, Depth); in SimplifyDemandedBits()
116 llvm::computeKnownBits(V, Known, Q, Depth); in SimplifyDemandedBits()
213 llvm::computeKnownBits(I, Known, Q, Depth); in SimplifyDemandedUseBits()
643 llvm::computeKnownBits(I, Known, Q, Depth); in SimplifyDemandedUseBits()
664 llvm::computeKnownBits(I, Known, Q, Depth); in SimplifyDemandedUseBits()
729 llvm::computeKnownBits(I, Known, Q, Depth); in SimplifyDemandedUseBits()
746 llvm::computeKnownBits(I, Known, Q, Depth); in SimplifyDemandedUseBits()
803 llvm::computeKnownBits(I, Known, Q, Depth); in SimplifyDemandedUseBits()
858 llvm::computeKnownBits(I, Known, Q, Depth); in SimplifyDemandedUseBits()
880 llvm::computeKnownBits(I, Known, Q, Depth); in SimplifyDemandedUseBits()
[all …]
H A DInstCombineCasts.cpp310 llvm::computeKnownBits(I->getOperand(1), IC.getDataLayout()); in canEvaluateTruncated()
324 KnownBits AmtKnownBits = IC.computeKnownBits(I->getOperand(1), CxtI); in canEvaluateTruncated()
351 llvm::computeKnownBits(I->getOperand(1), IC.getDataLayout()); in canEvaluateTruncated()
1006 KnownBits Known = computeKnownBits(Cmp->getOperand(0), &Zext); in transformZExtICmp()
1372 KnownBits Known = computeKnownBits(Op0, &Sext); in transformSExtICmp()
1748 KnownBits SrcKnown = IC.computeKnownBits(Src, &I); in isKnownExactCastIntToFP()
H A DInstCombineShifts.cpp1006 KnownBits KnownCnt = computeKnownBits(I.getOperand(1), Q); in setShiftFlags()
1012 KnownBits KnownAmt = computeKnownBits(I.getOperand(0), Q); in setShiftFlags()
1314 computeKnownBits(X, &I).countMaxActiveBits() <= 1 && in visitLShr()
1315 computeKnownBits(Y, &I).countMaxActiveBits() <= 1) in visitLShr()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DValueTracking.cpp134 static void computeKnownBits(const Value *V, const APInt &DemandedElts,
138 void llvm::computeKnownBits(const Value *V, KnownBits &Known, in computeKnownBits() function in llvm
146 ::computeKnownBits(V, DemandedElts, Known, Q, Depth); in computeKnownBits()
149 void llvm::computeKnownBits(const Value *V, KnownBits &Known, in computeKnownBits() function in llvm
153 computeKnownBits(V, Known, in computeKnownBits()
158 KnownBits llvm::computeKnownBits(const Value *V, const DataLayout &DL, in computeKnownBits() function in llvm
162 return computeKnownBits( in computeKnownBits()
166 KnownBits llvm::computeKnownBits(const Value *V, const APInt &DemandedElts, in computeKnownBits() function in llvm
171 return computeKnownBits( in computeKnownBits()
281 return computeKnownBits(V, SQ, Depth).isNonNegative(); in isKnownNonNegative()
[all …]
H A DDemandedBits.cpp72 computeKnownBits(V1, Known, DL, &AC, UserI, &DT); in determineLiveOperandBits()
76 computeKnownBits(V2, Known2, DL, &AC, UserI, &DT); in determineLiveOperandBits()
H A DInstructionSimplify.cpp773 KnownBits Known = computeKnownBits(Op1, Q); in simplifySubInst()
1032 if (match(Y, m_APInt(C)) && computeKnownBits(X, Q).getMaxValue().ult(*C)) in isDivZero()
1081 KnownBits Known = computeKnownBits(Op1, Q); in simplifyDivRem()
1151 KnownBits KnownOp0 = computeKnownBits(Op0, Q); in simplifyDiv()
1338 KnownBits KnownAmt = computeKnownBits(Op1, Q); in simplifyShift()
1351 KnownBits KnownVal = computeKnownBits(Op0, Q); in simplifyShift()
1387 KnownBits Op0Known = computeKnownBits(Op0, Q); in simplifyRightShift()
1459 const KnownBits YKnown = computeKnownBits(Y, Q); in simplifyLShrInst()
2083 KnownBits Known = computeKnownBits(Shift, Q); in simplifyAndInst()
2147 const KnownBits YKnown = computeKnownBits(Y, Q); in simplifyAndInst()
[all …]
H A DLint.cpp554 KnownBits Known = computeKnownBits(V, DL, AC, dyn_cast<Instruction>(V), DT); in isZero()
574 KnownBits Known = computeKnownBits(Elem, DL); in isZero()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/AggressiveInstCombine/
H A DAggressiveInstCombineInternal.h109 KnownBits computeKnownBits(const Value *V) const { in computeKnownBits() function
110 return llvm::computeKnownBits(V, DL, &AC, in computeKnownBits()
H A DTruncInstCombine.cpp309 KnownBits KnownRHS = computeKnownBits(I->getOperand(1)); in getBestTruncatedType()
316 KnownBits KnownLHS = computeKnownBits(I->getOperand(0)); in getBestTruncatedType()
332 KnownBits Known = computeKnownBits(Op); in getBestTruncatedType()
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DWithCache.h25 LLVM_ABI KnownBits computeKnownBits(const Value *V, const SimplifyQuery &Q,
48 Known = computeKnownBits(Pointer.getPointer(), Q, 0); in calculateKnownBits()
H A DValueTracking.h61 LLVM_ABI void computeKnownBits(const Value *V, KnownBits &Known,
69 LLVM_ABI KnownBits computeKnownBits(const Value *V, const DataLayout &DL,
77 LLVM_ABI KnownBits computeKnownBits(const Value *V, const APInt &DemandedElts,
85 LLVM_ABI KnownBits computeKnownBits(const Value *V, const APInt &DemandedElts,
88 LLVM_ABI KnownBits computeKnownBits(const Value *V, const SimplifyQuery &Q,
91 LLVM_ABI void computeKnownBits(const Value *V, KnownBits &Known,
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAG.cpp2936 return Mask.isSubsetOf(computeKnownBits(V, Depth).Zero); in MaskedValueIsZero()
2945 return Mask.isSubsetOf(computeKnownBits(V, DemandedElts, Depth).Zero); in MaskedValueIsZero()
2952 return computeKnownBits(V, DemandedElts, Depth).isZero(); in MaskedVectorIsZero()
2958 return Mask.isSubsetOf(computeKnownBits(V, Depth).One); in MaskedValueIsAllOnes()
3302 KnownBits KnownAmt = computeKnownBits(V.getOperand(1), DemandedElts, Depth); in getValidShiftAmountRange()
3376 KnownBits SelectionDAG::computeKnownBits(SDValue Op, unsigned Depth) const { in computeKnownBits() function in SelectionDAG
3385 return computeKnownBits(Op, DemandedElts, Depth); in computeKnownBits()
3391 KnownBits SelectionDAG::computeKnownBits(SDValue Op, const APInt &DemandedElts, in computeKnownBits() function in SelectionDAG
3417 return computeKnownBits(Op.getOperand(Op.getResNo()), DemandedElts, in computeKnownBits()
3425 Known = computeKnownBits(SrcOp, Depth + 1).trunc(BitWidth); in computeKnownBits()
[all …]
H A DTargetLowering.cpp786 LHSKnown = DAG.computeKnownBits(Op.getOperand(0), DemandedElts, Depth + 1); in SimplifyMultipleUseDemandedBits()
787 RHSKnown = DAG.computeKnownBits(Op.getOperand(1), DemandedElts, Depth + 1); in SimplifyMultipleUseDemandedBits()
799 LHSKnown = DAG.computeKnownBits(Op.getOperand(0), DemandedElts, Depth + 1); in SimplifyMultipleUseDemandedBits()
800 RHSKnown = DAG.computeKnownBits(Op.getOperand(1), DemandedElts, Depth + 1); in SimplifyMultipleUseDemandedBits()
812 LHSKnown = DAG.computeKnownBits(Op.getOperand(0), DemandedElts, Depth + 1); in SimplifyMultipleUseDemandedBits()
813 RHSKnown = DAG.computeKnownBits(Op.getOperand(1), DemandedElts, Depth + 1); in SimplifyMultipleUseDemandedBits()
824 RHSKnown = DAG.computeKnownBits(Op.getOperand(1), DemandedElts, Depth + 1); in SimplifyMultipleUseDemandedBits()
828 LHSKnown = DAG.computeKnownBits(Op.getOperand(0), DemandedElts, Depth + 1); in SimplifyMultipleUseDemandedBits()
1072 DAG.computeKnownBits(ExtOpA, DemandedElts, Depth).countMinLeadingZeros(); in combineShiftToAVG()
1074 DAG.computeKnownBits(ExtOpB, DemandedElts, Depth).countMinLeadingZeros(); in combineShiftToAVG()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/InstCombine/
H A DInstCombiner.h433 void computeKnownBits(const Value *V, KnownBits &Known,
435 llvm::computeKnownBits(V, Known, SQ.getWithInstruction(CxtI), Depth);
438 KnownBits computeKnownBits(const Value *V, const Instruction *CxtI,
440 return llvm::computeKnownBits(V, SQ.getWithInstruction(CxtI), Depth);
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DInferAlignment.cpp65 KnownBits Known = computeKnownBits(PtrOp, DL, &AC, &I, &DT); in inferAlignment()
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyISelDAGToDAG.cpp408 KnownBits Known0 = CurDAG->computeKnownBits(N->getOperand(0), 0); in SelectAddrOperands()
409 KnownBits Known1 = CurDAG->computeKnownBits(N->getOperand(1), 0); in SelectAddrOperands()
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMipsISelDAGToDAG.cpp302 KnownBits Known = CurDAG->computeKnownBits(N->getOperand(0)); in isUnneededShiftMask()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUCodeGenPrepare.cpp599 return computeKnownBits(Op, DL, AC).countMaxActiveBits(); in numBitsUnsigned()
1216 KnownBits Known = computeKnownBits(Den, DL, AC, &I); in getDivNumBits()
1224 Known = computeKnownBits(Num, DL, AC, &I); in getDivNumBits()
1381 KnownBits Known = computeKnownBits(V, DL); in getSign32()
1588 unsigned MaxBitsNeeded = computeKnownBits(I, DL).countMaxActiveBits(); in tryNarrowMathIfNoOverflow()
2151 auto SrcPtrKB = computeKnownBits(V, DL); in isPtrKnownNeverNull()
H A DAMDGPUISelLowering.cpp52 return DAG.computeKnownBits(Op).countMaxActiveBits(); in numBitsUnsigned()
4094 KnownBits Known = DAG.computeKnownBits(X); in performShlCombine()
4113 KnownBits Known = DAG.computeKnownBits(RHS); in performShlCombine()
4178 KnownBits Known = DAG.computeKnownBits(RHS); in performSraCombine()
4230 KnownBits KnownLHS = DAG.computeKnownBits(LHS); in performSraCombine()
4300 KnownBits Known = DAG.computeKnownBits(RHS); in performSrlCombine()
4425 KnownBits Known = DAG.computeKnownBits(Amt); in performTruncateCombine()
5891 KnownBits LHSKnown = DAG.computeKnownBits(Op.getOperand(0), Depth + 1); in computeKnownBitsForTargetNode()
5892 KnownBits RHSKnown = DAG.computeKnownBits(Op.getOperand(1), Depth + 1); in computeKnownBitsForTargetNode()
5937 KnownBits LHSKnown = DAG.computeKnownBits(Op.getOperand(0), Depth + 1); in computeKnownBitsForTargetNode()
[all …]
H A DAMDGPULateCodeGenPrepare.cpp64 KnownBits Known = computeKnownBits(V, DL, AC); in isDWORDAligned()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DBypassSlowDivision.cpp238 computeKnownBits(V, Known, DL); in getValueRange()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86PartialReduction.cpp95 computeKnownBits(LHS, *DL).countMaxActiveBits() <= 8) && in matchVPDPBUSDPattern()
/freebsd/contrib/llvm-project/llvm/lib/Target/LoongArch/
H A DLoongArchISelDAGToDAG.cpp291 KnownBits Known = CurDAG->computeKnownBits(N->getOperand(0)); in selectShiftMask()
/freebsd/contrib/llvm-project/llvm/lib/Target/XCore/
H A DXCoreISelLowering.cpp371 KnownBits Known = DAG.computeKnownBits(Value); in isWordAligned()
1533 KnownBits Known = DAG.computeKnownBits(N2); in PerformDAGCombine()
1555 KnownBits Known = DAG.computeKnownBits(N2); in PerformDAGCombine()
1570 KnownBits Known = DAG.computeKnownBits(N2); in PerformDAGCombine()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVGISel.td131 KnownBits Known = CurDAG->computeKnownBits(N->getOperand(0), 0);

1234