/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()
|
D | SelectionDAG.cpp | 5565 if (ConstantSDNode *AndRHS = dyn_cast<ConstantSDNode>(N3.getOperand(1))) { in getNode() 5569 if ((AndRHS->getValue() & (NumBits-1)) == NumBits-1) in getNode()
|
/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()
|
D | SelectionDAG.cpp | 6738 if (ConstantSDNode *AndRHS = dyn_cast<ConstantSDNode>(N3.getOperand(1))) { in getNode() 6742 if ((AndRHS->getValue() & (NumBits-1)) == NumBits-1) in getNode()
|
/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()
|
/external/llvm/lib/Target/X86/ |
D | X86ISelLowering.cpp | 15019 ConstantSDNode *AndRHS = cast<ConstantSDNode>(Op1); in LowerToBT() local 15020 uint64_t AndRHSVal = AndRHS->getZExtValue(); in LowerToBT() 20998 SDValue AndRHS = GetMask(Srl, APInt::getSplat(Len, APInt(8, 0x33))); in LowerVectorCTPOPBitmath() local 20999 V = DAG.getNode(ISD::ADD, DL, VT, AndLHS, AndRHS); in LowerVectorCTPOPBitmath()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/X86/ |
D | X86ISelLowering.cpp | 18166 ConstantSDNode *AndRHS = cast<ConstantSDNode>(Op1); in LowerAndToBT() local 18167 uint64_t AndRHSVal = AndRHS->getZExtValue(); in LowerAndToBT() 24599 SDValue AndRHS = GetMask(Srl, APInt::getSplat(Len, APInt(8, 0x33))); in LowerVectorCTPOPBitmath() local 24600 V = DAG.getNode(ISD::ADD, DL, VT, AndLHS, AndRHS); in LowerVectorCTPOPBitmath()
|