/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/ |
D | InstCombineAndOrXor.cpp | 196 ConstantInt *AndRHS, in OptAndOp() argument 201 Together = ConstantExpr::getAnd(AndRHS, OpRHS); in OptAndOp() 207 Value *And = Builder->CreateAnd(X, AndRHS); in OptAndOp() 218 return BinaryOperator::CreateAnd(Or, AndRHS); in OptAndOp() 226 Together = ConstantExpr::getXor(AndRHS, Together); in OptAndOp() 239 const APInt &AndRHSV = cast<ConstantInt>(AndRHS)->getValue(); in OptAndOp() 259 Value *NewAnd = Builder->CreateAnd(X, AndRHS); in OptAndOp() 261 return BinaryOperator::CreateXor(NewAnd, AndRHS); in OptAndOp() 272 uint32_t BitWidth = AndRHS->getType()->getBitWidth(); in OptAndOp() 275 ConstantInt *CI = ConstantInt::get(AndRHS->getContext(), in OptAndOp() [all …]
|
D | InstCombineSelect.cpp | 593 ConstantInt *AndRHS; in foldSelectICmpAnd() local 596 !match(LHS, m_And(m_Value(), m_ConstantInt(AndRHS)))) in foldSelectICmpAnd() 619 if (!AndRHS->getValue().isPowerOf2() || in foldSelectICmpAnd() 628 unsigned AndZeros = AndRHS->getValue().logBase2(); in foldSelectICmpAnd()
|
D | InstCombine.h | 350 ConstantInt *AndRHS, BinaryOperator &TheAnd);
|
D | InstCombineSimplifyDemanded.cpp | 347 ConstantInt *AndRHS = cast<ConstantInt>(LHSInst->getOperand(1)); in SimplifyDemandedUseBits() local 352 ConstantInt::get(I->getType(), NewMask & AndRHS->getValue()); in SimplifyDemandedUseBits()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineAndOrXor.cpp | 152 ConstantInt *AndRHS, in OptAndOp() argument 157 Together = ConstantExpr::getAnd(AndRHS, OpRHS); in OptAndOp() 163 Value *And = Builder->CreateAnd(X, AndRHS); in OptAndOp() 174 return BinaryOperator::CreateAnd(Or, AndRHS); in OptAndOp() 182 Together = ConstantExpr::getXor(AndRHS, Together); in OptAndOp() 195 const APInt &AndRHSV = AndRHS->getValue(); in OptAndOp() 215 Value *NewAnd = Builder->CreateAnd(X, AndRHS); in OptAndOp() 217 return BinaryOperator::CreateXor(NewAnd, AndRHS); in OptAndOp() 228 uint32_t BitWidth = AndRHS->getType()->getBitWidth(); in OptAndOp() 231 ConstantInt *CI = Builder->getInt(AndRHS->getValue() & ShlMask); in OptAndOp() [all …]
|
D | InstCombineSelect.cpp | 779 ConstantInt *AndRHS; in foldSelectICmpAnd() local 781 if (!match(LHS, m_And(m_Value(), m_ConstantInt(AndRHS)))) in foldSelectICmpAnd() 804 if (!AndRHS->getValue().isPowerOf2() || in foldSelectICmpAnd() 813 unsigned AndZeros = AndRHS->getValue().logBase2(); in foldSelectICmpAnd()
|
D | InstCombineSimplifyDemanded.cpp | 387 ConstantInt *AndRHS = cast<ConstantInt>(LHSInst->getOperand(1)); in SimplifyDemandedUseBits() local 392 ConstantInt::get(I->getType(), NewMask & AndRHS->getValue()); in SimplifyDemandedUseBits()
|
D | InstCombineInternal.h | 558 ConstantInt *AndRHS, BinaryOperator &TheAnd);
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/ |
D | AlignmentFromAssumptions.cpp | 231 Value *AndRHS = CmpBO->getOperand(1); in extractAlignmentInfo() local 233 const SCEV *AndRHSSCEV = SE->getSCEV(AndRHS); in extractAlignmentInfo() 235 std::swap(AndLHS, AndRHS); in extractAlignmentInfo()
|
D | GuardWidening.cpp | 546 Value *AndLHS, *AndRHS; in parseRangeChecks() local 547 if (match(CheckCond, m_And(m_Value(AndLHS), m_Value(AndRHS)))) in parseRangeChecks() 549 parseRangeChecks(AndRHS, Checks); in parseRangeChecks()
|
/external/llvm/lib/Transforms/Scalar/ |
D | AlignmentFromAssumptions.cpp | 231 Value *AndRHS = CmpBO->getOperand(1); in extractAlignmentInfo() local 233 const SCEV *AndRHSSCEV = SE->getSCEV(AndRHS); in extractAlignmentInfo() 235 std::swap(AndLHS, AndRHS); in extractAlignmentInfo()
|
D | GuardWidening.cpp | 489 Value *AndLHS, *AndRHS; in parseRangeChecks() local 490 if (match(CheckCond, m_And(m_Value(AndLHS), m_Value(AndRHS)))) in parseRangeChecks() 492 parseRangeChecks(AndRHS, Checks); in parseRangeChecks()
|
/external/llvm/lib/Analysis/ |
D | BranchProbabilityInfo.cpp | 422 if (ConstantInt *AndRHS = dyn_cast<ConstantInt>(LHS->getOperand(1))) in calcZeroHeuristics() local 423 if (AndRHS->getUniqueInteger().isPowerOf2()) in calcZeroHeuristics()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombineAndOrXor.cpp | 120 ConstantInt *AndRHS, in OptAndOp() argument 131 const APInt &AndRHSV = AndRHS->getValue(); in OptAndOp() 151 Value *NewAnd = Builder.CreateAnd(X, AndRHS); in OptAndOp() 153 return BinaryOperator::CreateXor(NewAnd, AndRHS); in OptAndOp() 1488 if (ConstantInt *AndRHS = dyn_cast<ConstantInt>(Op1)) { in visitAnd() local 1489 const APInt &AndRHSMask = AndRHS->getValue(); in visitAnd() 1514 auto *TruncC2 = ConstantExpr::getTrunc(AndRHS, X->getType()); in visitAnd() 1522 if (Instruction *Res = OptAndOp(Op0I, Op0CI, AndRHS, I)) in visitAnd() 1537 C3 = ConstantExpr::getAnd(C3, AndRHS); in visitAnd()
|
D | InstCombineSelect.cpp | 117 const APInt *AndRHS; in foldSelectICmpAnd() local 118 if (!match(V, m_And(m_Value(), m_Power2(AndRHS)))) in foldSelectICmpAnd() 121 AndMask = *AndRHS; in foldSelectICmpAnd()
|
D | InstCombineSimplifyDemanded.cpp | 296 ConstantInt *AndRHS = cast<ConstantInt>(LHSInst->getOperand(1)); in SimplifyDemandedUseBits() local 301 ConstantInt::get(I->getType(), NewMask & AndRHS->getValue()); in SimplifyDemandedUseBits()
|
D | InstCombineInternal.h | 878 ConstantInt *AndRHS, BinaryOperator &TheAnd);
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/ |
D | BranchProbabilityInfo.cpp | 673 if (ConstantInt *AndRHS = dyn_cast<ConstantInt>(LHS->getOperand(1))) in calcZeroHeuristics() local 674 if (AndRHS->getValue().isPowerOf2()) in calcZeroHeuristics()
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
D | TargetLowering.cpp | 1830 if (auto *AndRHS = dyn_cast<ConstantSDNode>(N0.getOperand(1))) { in SimplifySetCC() local 1836 if (AndRHS->getAPIntValue().isPowerOf2()) { in SimplifySetCC() 1839 DAG.getConstant(AndRHS->getAPIntValue().logBase2(), dl, in SimplifySetCC() 1842 } else if (Cond == ISD::SETEQ && C1 == AndRHS->getAPIntValue()) { in SimplifySetCC() 1860 if (auto *AndRHS = dyn_cast<ConstantSDNode>(N0.getOperand(1))) { in SimplifySetCC() local 1861 const APInt &AndRHSC = AndRHS->getAPIntValue(); in SimplifySetCC()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/SelectionDAG/ |
D | TargetLowering.cpp | 2464 if (auto *AndRHS = dyn_cast<ConstantSDNode>(N0.getOperand(1))) { in SimplifySetCC() local 2469 if (AndRHS->getAPIntValue().isPowerOf2()) { in SimplifySetCC() 2472 DAG.getConstant(AndRHS->getAPIntValue().logBase2(), dl, in SimplifySetCC() 2475 } else if (Cond == ISD::SETEQ && C1 == AndRHS->getAPIntValue()) { in SimplifySetCC() 2493 if (auto *AndRHS = dyn_cast<ConstantSDNode>(N0.getOperand(1))) { in SimplifySetCC() local 2494 const APInt &AndRHSC = AndRHS->getAPIntValue(); in SimplifySetCC()
|
/external/swiftshader/third_party/LLVM/lib/CodeGen/SelectionDAG/ |
D | TargetLowering.cpp | 2306 if (ConstantSDNode *AndRHS = in SimplifySetCC() local 2312 if (AndRHS->getAPIntValue().isPowerOf2()) { in SimplifySetCC() 2315 DAG.getConstant(AndRHS->getAPIntValue().logBase2(), ShiftTy))); in SimplifySetCC() 2317 } else if (Cond == ISD::SETEQ && C1 == AndRHS->getAPIntValue()) { in SimplifySetCC()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/NVPTX/ |
D | NVPTXISelDAGToDAG.cpp | 3459 SDValue AndRHS = LHS->getOperand(1); in tryBFE() local 3463 std::swap(AndLHS, AndRHS); in tryBFE() 3466 ConstantSDNode *MaskCnst = dyn_cast<ConstantSDNode>(AndRHS); in tryBFE()
|
/external/llvm/lib/Target/NVPTX/ |
D | NVPTXISelDAGToDAG.cpp | 4937 SDValue AndRHS = LHS->getOperand(1); in tryBFE() local 4941 std::swap(AndLHS, AndRHS); in tryBFE() 4944 ConstantSDNode *MaskCnst = dyn_cast<ConstantSDNode>(AndRHS); in tryBFE()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AArch64/ |
D | AArch64FastISel.cpp | 2299 const Value *AndRHS = AI->getOperand(1); in emitCompareAndBranch() local 2303 std::swap(AndLHS, AndRHS); in emitCompareAndBranch() 2305 if (const auto *C = dyn_cast<ConstantInt>(AndRHS)) in emitCompareAndBranch()
|
/external/llvm/lib/Target/AArch64/ |
D | AArch64FastISel.cpp | 2210 const Value *AndRHS = AI->getOperand(1); in emitCompareAndBranch() local 2214 std::swap(AndLHS, AndRHS); in emitCompareAndBranch() 2216 if (const auto *C = dyn_cast<ConstantInt>(AndRHS)) in emitCompareAndBranch()
|