Home
last modified time | relevance | path

Searched refs:m_AllOnes (Results 1 – 21 of 21) sorted by relevance

/external/llvm/lib/Transforms/InstCombine/
DInstCombineSelect.cpp573 } else if (Pred == ICmpInst::ICMP_SGT && match(CmpRHS, m_AllOnes())) { in visitSelectInstWithICmp()
970 if (match(TrueVal, m_AllOnes()) && match(FalseVal, m_Zero())) in visitSelectInst()
980 if (match(TrueVal, m_Zero()) && match(FalseVal, m_AllOnes())) { in visitSelectInst()
DInstCombineCompares.cpp3860 match(B, m_AllOnes())) in visitICmpInst()
3865 match(B, m_AllOnes())) in visitICmpInst()
3880 match(D, m_AllOnes())) in visitICmpInst()
3885 match(D, m_AllOnes())) in visitICmpInst()
4077 auto LSubOne = m_Add(m_Specific(Op1), m_AllOnes()); in visitICmpInst()
DInstCombineAndOrXor.cpp1603 if (!((match(EltC1, m_Zero()) && match(EltC2, m_AllOnes())) || in areInverseVectorBitmasks()
1604 (match(EltC2, m_Zero()) && match(EltC1, m_AllOnes())))) in areInverseVectorBitmasks()
DInstCombineMulDivRem.cpp189 if (match(Op1, m_AllOnes())) { in visitMul()
DInstCombineAddSub.cpp1507 if (match(Op0, m_AllOnes())) in visitSub()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/
DInstCombineAddSub.cpp933 match(Op1, m_AllOnes())) in foldAddWithConstant()
1114 if (!match(&I, m_Add(m_OneUse(m_Shl(m_One(), m_Value(NBits))), m_AllOnes()))) in canonicalizeLowbitMask()
1609 if (match(Op0, m_AllOnes())) in visitSub()
1618 if (match(Op0, m_OneUse(m_Add(m_Value(X), m_AllOnes())))) in visitSub()
DInstCombineAndOrXor.cpp1697 if (!((match(EltC1, m_Zero()) && match(EltC2, m_AllOnes())) || in areInverseVectorBitmasks()
1698 (match(EltC2, m_Zero()) && match(EltC1, m_AllOnes())))) in areInverseVectorBitmasks()
2366 if ((PredL == CmpInst::ICMP_SGT && match(LHS1, m_AllOnes()) && in foldXorOfICmps()
2367 PredR == CmpInst::ICMP_SGT && match(RHS1, m_AllOnes())) || in foldXorOfICmps()
2375 if ((PredL == CmpInst::ICMP_SGT && match(LHS1, m_AllOnes()) && in foldXorOfICmps()
2378 PredR == CmpInst::ICMP_SGT && match(RHS1, m_AllOnes()))) { in foldXorOfICmps()
2766 match(Op1, m_AllOnes())) { in visitXor()
DInstCombineSelect.cpp529 if ((IsEqualZero && !match(CmpRHS, m_AllOnes())) || in foldSelectICmpAndOr()
963 } else if (Pred == ICmpInst::ICMP_SGT && match(CmpRHS, m_AllOnes())) { in foldSelectInstWithICmp()
1601 if (match(TrueVal, m_AllOnes()) && match(FalseVal, m_Zero())) in visitSelectInst()
1611 if (match(TrueVal, m_Zero()) && match(FalseVal, m_AllOnes())) { in visitSelectInst()
DInstCombineCompares.cpp2881 auto m_Mask = m_CombineOr(m_LShr(m_AllOnes(), m_Value()), m_LowBitMask()); in foldICmpWithLowBitMaskedVal()
3109 match(B, m_AllOnes())) in foldICmpBinOp()
3114 match(B, m_AllOnes())) in foldICmpBinOp()
3127 match(D, m_AllOnes())) in foldICmpBinOp()
3132 match(D, m_AllOnes())) in foldICmpBinOp()
3359 auto LSubOne = m_Add(m_Specific(Op1), m_AllOnes()); in foldICmpBinOp()
4744 if (Pred == ICmpInst::ICMP_SGT && match(Op1, m_AllOnes())) in visitICmpInst()
DInstCombineMulDivRem.cpp144 if (match(Op1, m_AllOnes())) { in visitMul()
1041 if (match(Op1, m_AllOnes()) || in visitSDiv()
DInstCombineCasts.cpp1199 (Pred == ICmpInst::ICMP_SGT && match(Op1, m_AllOnes()))) { in transformSExtICmp()
DInstCombineCalls.cpp3576 (match(Src1, m_AllOnes()) && match(Src0, m_SExt(m_Value(ExtSrc))))) && in visitCallInst()
/external/swiftshader/third_party/LLVM/include/llvm/Support/
DPatternMatch.h190 inline cst_pred_ty<is_all_ones> m_AllOnes() {return cst_pred_ty<is_all_ones>();} in m_AllOnes() function
191 inline api_pred_ty<is_all_ones> m_AllOnes(const APInt *&V) { return V; } in m_AllOnes() function
/external/llvm/include/llvm/IR/
DPatternMatch.h252 inline cst_pred_ty<is_all_ones> m_AllOnes() { in m_AllOnes() function
255 inline api_pred_ty<is_all_ones> m_AllOnes(const APInt *&V) { return V; } in m_AllOnes() function
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineMulDivRem.cpp109 if (match(Op1, m_AllOnes())) // X * -1 == 0 - X in visitMul()
DInstCombineAddSub.cpp552 if (match(Op0, m_AllOnes())) in visitSub()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/
DInstructionSimplify.cpp611 if (IsNUW && match(Op1, m_AllOnes())) in SimplifyAddInst()
1363 if (match(Op0, m_AllOnes())) in SimplifyAShrInst()
1789 if (match(Op1, m_AllOnes())) in SimplifyAndInst()
1917 if (match(Op1, m_Undef()) || match(Op1, m_AllOnes())) in SimplifyOrInst()
2632 if (Pred == ICmpInst::ICMP_SGT && match(RHS, m_AllOnes())) in simplifyICmpWithConstant()
3955 m_Xor(m_PtrToInt(m_Specific(StrippedBasePtr)), m_AllOnes()))) { in SimplifyGEPInst()
DValueTracking.cpp4642 auto ZeroOrAllOnes = m_CombineOr(m_ZeroInt(), m_AllOnes()); in matchSelectPattern()
/external/swiftshader/third_party/LLVM/lib/Analysis/
DInstructionSimplify.cpp1132 if (match(Op0, m_AllOnes())) in SimplifyAShrInst()
1181 if (match(Op1, m_AllOnes())) in SimplifyAndInst()
1270 if (match(Op1, m_AllOnes())) in SimplifyOrInst()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/
DPatternMatch.h306 inline cst_pred_ty<is_all_ones> m_AllOnes() { in m_AllOnes() function
1692 return m_c_Xor(V, m_AllOnes());
/external/llvm/lib/Analysis/
DInstructionSimplify.cpp1434 if (match(Op0, m_AllOnes())) in SimplifyAShrInst()
1586 if (match(Op1, m_AllOnes())) in SimplifyAndInst()
1760 if (match(Op1, m_AllOnes())) in SimplifyOrInst()
3422 } else if (Pred == ICmpInst::ICMP_SGT && match(CmpRHS, m_AllOnes())) { in SimplifySelectInst()