reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

lib/Analysis/InstructionSimplify.cpp
  565       return ConstantFoldBinaryOpOperands(Opcode, CLHS, CRHS, Q.DL);
  720     KnownBits Known = computeKnownBits(Op1, Q.DL, 0, Q.AC, Q.CxtI, Q.DT);
  804     if (Constant *Result = computePointerDifference(Q.DL, X, Y))
 1230   KnownBits Known = computeKnownBits(Op1, Q.DL, 0, Q.AC, Q.CxtI, Q.DT);
 1262     KnownBits Op0Known = computeKnownBits(Op0, Q.DL, /*Depth=*/0, Q.AC, Q.CxtI, Q.DT);
 1325     const KnownBits YKnown = computeKnownBits(Y, Q.DL, 0, Q.AC, Q.CxtI, Q.DT);
 1359   unsigned NumSignBits = ComputeNumSignBits(Op0, Q.DL, 0, Q.AC, Q.CxtI, Q.DT);
 1428           isKnownNonZero(B, Q.DL, /*Depth=*/0, Q.AC, Q.CxtI, Q.DT))
 1432           isKnownNonZero(B, Q.DL, /*Depth=*/0, Q.AC, Q.CxtI, Q.DT))
 1455       isKnownNonZero(X, Q.DL, /*Depth=*/0, Q.AC, Q.CxtI, Q.DT))
 1466       isKnownNonZero(X, Q.DL, /*Depth=*/0, Q.AC, Q.CxtI, Q.DT))
 1966     if (isKnownToBeAPowerOfTwo(Op0, Q.DL, /*OrZero*/ true, 0, Q.AC, Q.CxtI,
 1969     if (isKnownToBeAPowerOfTwo(Op1, Q.DL, /*OrZero*/ true, 0, Q.AC, Q.CxtI,
 1978       isKnownToBeAPowerOfTwo(Op1, Q.DL, /*OrZero*/ true, 0, Q.AC, Q.CxtI, Q.DT))
 1981       isKnownToBeAPowerOfTwo(Op0, Q.DL, /*OrZero*/ true, 0, Q.AC, Q.CxtI, Q.DT))
 2033     const KnownBits YKnown = computeKnownBits(Y, Q.DL, 0, Q.AC, Q.CxtI, Q.DT);
 2036       const KnownBits XKnown = computeKnownBits(X, Q.DL, 0, Q.AC, Q.CxtI,
 2175         if (MaskedValueIsZero(N, *C2, Q.DL, 0, Q.AC, Q.CxtI, Q.DT))
 2182         if (MaskedValueIsZero(N, *C1, Q.DL, 0, Q.AC, Q.CxtI, Q.DT))
 2537     if (isImpliedCondition(RHS, LHS, Q.DL).getValueOr(false))
 2548     if (isImpliedCondition(LHS, RHS, Q.DL).getValueOr(false))
 2552     if (isImpliedCondition(LHS, RHS, Q.DL).getValueOr(false))
 2576     if (isKnownNonZero(LHS, Q.DL, 0, Q.AC, Q.CxtI, Q.DT, Q.IIQ.UseInstrInfo))
 2581     if (isKnownNonZero(LHS, Q.DL, 0, Q.AC, Q.CxtI, Q.DT, Q.IIQ.UseInstrInfo))
 2585     KnownBits LHSKnown = computeKnownBits(LHS, Q.DL, 0, Q.AC, Q.CxtI, Q.DT);
 2593     KnownBits LHSKnown = computeKnownBits(LHS, Q.DL, 0, Q.AC, Q.CxtI, Q.DT);
 2597         isKnownNonZero(LHS, Q.DL, 0, Q.AC, Q.CxtI, Q.DT))
 2602     KnownBits LHSKnown = computeKnownBits(LHS, Q.DL, 0, Q.AC, Q.CxtI, Q.DT);
 2610     KnownBits LHSKnown = computeKnownBits(LHS, Q.DL, 0, Q.AC, Q.CxtI, Q.DT);
 2614         isKnownNonZero(LHS, Q.DL, 0, Q.AC, Q.CxtI, Q.DT))
 2749         KnownBits RHSKnown = computeKnownBits(RHS, Q.DL, 0, Q.AC, Q.CxtI, Q.DT);
 2750         KnownBits YKnown = computeKnownBits(Y, Q.DL, 0, Q.AC, Q.CxtI, Q.DT);
 2765         KnownBits LHSKnown = computeKnownBits(LHS, Q.DL, 0, Q.AC, Q.CxtI, Q.DT);
 2766         KnownBits YKnown = computeKnownBits(Y, Q.DL, 0, Q.AC, Q.CxtI, Q.DT);
 2819       KnownBits Known = computeKnownBits(RHS, Q.DL, 0, Q.AC, Q.CxtI, Q.DT);
 2830       KnownBits Known = computeKnownBits(RHS, Q.DL, 0, Q.AC, Q.CxtI, Q.DT);
 2849       KnownBits Known = computeKnownBits(LHS, Q.DL, 0, Q.AC, Q.CxtI, Q.DT);
 2860       KnownBits Known = computeKnownBits(LHS, Q.DL, 0, Q.AC, Q.CxtI, Q.DT);
 3189       return ConstantFoldCompareInstOperands(Pred, CLHS, CRHS, Q.DL, Q.TLI);
 3253         Q.DL.getTypeSizeInBits(SrcTy) == DstTy->getPrimitiveSizeInBits()) {
 3404       isKnownNonEqual(LHS, RHS, Q.DL, Q.AC, Q.CxtI, Q.DT, Q.IIQ.UseInstrInfo)) {
 3417     if (auto *C = computePointerICmp(Q.DL, Q.TLI, Q.DT, Pred, Q.AC, Q.CxtI,
 3422       if (Q.DL.getTypeSizeInBits(CLHS->getPointerOperandType()) ==
 3423               Q.DL.getTypeSizeInBits(CLHS->getType()) &&
 3424           Q.DL.getTypeSizeInBits(CRHS->getPointerOperandType()) ==
 3425               Q.DL.getTypeSizeInBits(CRHS->getType()))
 3426         if (auto *C = computePointerICmp(Q.DL, Q.TLI, Q.DT, Pred, Q.AC, Q.CxtI,
 3484       return ConstantFoldCompareInstOperands(Pred, CLHS, CRHS, Q.DL, Q.TLI);
 3749                                                ConstOps[1], Q.DL, Q.TLI);
 3753           return ConstantFoldLoadFromConstPtr(ConstOps[0], LI->getType(), Q.DL);
 3755       return ConstantFoldInstOperands(I, ConstOps, Q.DL, Q.TLI);
 3974   Optional<bool> Imp = isImpliedByDomCondition(Cond, Q.CxtI, Q.DL);
 4018       uint64_t TyAllocSize = Q.DL.getTypeAllocSize(Ty);
 4026           Q.DL.getIndexSizeInBits(AS)) {
 4063   if (Q.DL.getTypeAllocSize(LastType) == 1 &&
 4067         Q.DL.getIndexSizeInBits(Ops[0]->getType()->getPointerAddressSpace());
 4068     if (Q.DL.getTypeSizeInBits(Ops.back()->getType()) == IdxWidth) {
 4071           Ops[0]->stripAndAccumulateInBoundsConstantOffsets(Q.DL,
 4095   if (auto *CEFolded = ConstantFoldConstant(CE, Q.DL))
 4279     return ConstantFoldCastOperand(CastOpc, C, Ty, Q.DL);
 4290           SrcTy->isPtrOrPtrVectorTy() ? Q.DL.getIntPtrType(SrcTy) : nullptr;
 4292           MidTy->isPtrOrPtrVectorTy() ? Q.DL.getIntPtrType(MidTy) : nullptr;
 4294           DstTy->isPtrOrPtrVectorTy() ? Q.DL.getIntPtrType(DstTy) : nullptr;
 4451     return ConstantFoldUnaryOpOperand(Opcode, C, Q.DL);
 5074         return SimplifyRelativeLoad(C0, C1, Q.DL);
 5245     Result = ConstantFoldInstruction(I, Q.DL, Q.TLI);
 5392     KnownBits Known = computeKnownBits(I, Q.DL, /*Depth*/ 0, Q.AC, I, Q.DT, ORE);
lib/CodeGen/CodeGenPrepare.cpp
 3198     Type *IntPtrTy = SQ.DL.getIntPtrType(AddrModes[0].OriginalValue->getType());
lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
 1065     return isKnownNonZero(V, Q.DL, /*Depth=*/0, Q.AC, Q.CxtI, Q.DT);
lib/Transforms/InstCombine/InstCombineCompares.cpp
 3553         KnownBits Known = computeKnownBits(C, SQ.DL);
 3564         KnownBits Known = computeKnownBits(C, SQ.DL);
 3872       isKnownNonZero(B, Q.DL, /*Depth=*/0, Q.AC, Q.CxtI, Q.DT))
 3876       isKnownNonZero(D, Q.DL, /*Depth=*/0, Q.AC, Q.CxtI, Q.DT))
lib/Transforms/Utils/PromoteMemoryToRegister.cpp
  566       if (rewriteSingleStoreAlloca(AI, Info, LBI, SQ.DL, DT, AC)) {
  577         promoteSingleBlockAlloca(AI, Info, LBI, SQ.DL, DT, AC)) {
  950           !isKnownNonZero(V, SQ.DL, 0, AC, LI, &DT))