Home
last modified time | relevance | path

Searched refs:AndRHS (Results 1 – 19 of 19) sorted by relevance

/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineAndOrXor.cpp196 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 …]
DInstCombineSelect.cpp593 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()
DInstCombine.h350 ConstantInt *AndRHS, BinaryOperator &TheAnd);
DInstCombineSimplifyDemanded.cpp347 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/
DInstCombineAndOrXor.cpp152 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 …]
DInstCombineSelect.cpp779 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()
DInstCombineSimplifyDemanded.cpp387 ConstantInt *AndRHS = cast<ConstantInt>(LHSInst->getOperand(1)); in SimplifyDemandedUseBits() local
392 ConstantInt::get(I->getType(), NewMask & AndRHS->getValue()); in SimplifyDemandedUseBits()
DInstCombineInternal.h558 ConstantInt *AndRHS, BinaryOperator &TheAnd);
/external/llvm/lib/Transforms/Scalar/
DAlignmentFromAssumptions.cpp231 Value *AndRHS = CmpBO->getOperand(1); in extractAlignmentInfo() local
233 const SCEV *AndRHSSCEV = SE->getSCEV(AndRHS); in extractAlignmentInfo()
235 std::swap(AndLHS, AndRHS); in extractAlignmentInfo()
DGuardWidening.cpp489 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/
DBranchProbabilityInfo.cpp422 if (ConstantInt *AndRHS = dyn_cast<ConstantInt>(LHS->getOperand(1))) in calcZeroHeuristics() local
423 if (AndRHS->getUniqueInteger().isPowerOf2()) in calcZeroHeuristics()
/external/llvm/lib/CodeGen/SelectionDAG/
DTargetLowering.cpp1830 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()
DSelectionDAG.cpp5565 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/lib/CodeGen/SelectionDAG/
DTargetLowering.cpp2306 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()
DSelectionDAG.cpp4501 if (ConstantSDNode *AndRHS = dyn_cast<ConstantSDNode>(N3.getOperand(1))) { in getNode()
4505 if ((AndRHS->getValue() & (NumBits-1)) == NumBits-1) in getNode()
/external/llvm/lib/Target/NVPTX/
DNVPTXISelDAGToDAG.cpp4937 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/llvm/lib/Target/AArch64/
DAArch64FastISel.cpp2210 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/swiftshader/third_party/LLVM/lib/Target/X86/
DX86ISelLowering.cpp8338 ConstantSDNode *AndRHS = cast<ConstantSDNode>(Op1); in LowerToBT() local
8340 if (AndRHS->getZExtValue() == 1 && AndLHS.getOpcode() == ISD::SRL) { in LowerToBT()
/external/llvm/lib/Target/X86/
DX86ISelLowering.cpp15019 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()