Home
last modified time | relevance | path

Searched refs:m_And (Results 1 – 25 of 26) sorted by relevance

12

/external/llvm/lib/Target/Hexagon/
DHexagonGenExtract.cpp94 bool Match = match(In, m_And(m_Shl(m_LShr(m_Value(BF), m_ConstantInt(CSR)), in INITIALIZE_PASS_DEPENDENCY()
101 Match = match(In, m_And(m_Shl(m_AShr(m_Value(BF), m_ConstantInt(CSR)), in INITIALIZE_PASS_DEPENDENCY()
109 Match = match(In, m_And(m_Shl(m_Value(BF), m_ConstantInt(CSL)), in INITIALIZE_PASS_DEPENDENCY()
118 Match = match(In, m_And(m_LShr(m_Value(BF), m_ConstantInt(CSR)), in INITIALIZE_PASS_DEPENDENCY()
125 Match = match(In, m_And(m_AShr(m_Value(BF), m_ConstantInt(CSR)), in INITIALIZE_PASS_DEPENDENCY()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineAndOrXor.cpp604 } else if (!match(L1, m_And(m_Value(L11), m_Value(L12)))) { in foldLogOpOfMaskedICmpsHelper()
614 } else if (!match(L2, m_And(m_Value(L21), m_Value(L22)))) { in foldLogOpOfMaskedICmpsHelper()
638 if (!match(R1, m_And(m_Value(R11), m_Value(R12)))) { in foldLogOpOfMaskedICmpsHelper()
658 if (!match(R2, m_And(m_Value(R11), m_Value(R12)))) { in foldLogOpOfMaskedICmpsHelper()
925 match(Val, m_And(m_Specific(V), m_ConstantInt(AndCst)))) { in FoldAndOfICmps()
929 match(Val2, m_And(m_Specific(V), m_ConstantInt(AndCst)))) { in FoldAndOfICmps()
1417 if (match(Op0, m_Trunc(m_And(m_Value(X), m_ConstantInt(YC))))) { in visitAnd()
1445 match(Op1, m_Not(m_And(m_Value(C), m_Value(D)))) && in visitAnd()
1451 match(Op0, m_Not(m_And(m_Value(C), m_Value(D)))) && in visitAnd()
1521 if (LHS && match(Op1, m_OneUse(m_And(m_Value(X), m_Value(Y))))) { in visitAnd()
[all …]
DInstCombineAddSub.cpp1001 } else if (match(Y, m_And(m_Value(Z), m_APInt(C2))) && (*C1 == *C2)) { in checkForNegativeOperand()
1023 if (match(Y, m_And(m_Value(Z), m_APInt(C2))) && *C1 == (*C2 + 1)) { in checkForNegativeOperand()
1157 match(LHS, m_And(m_Value(X), m_ConstantInt(C2))) && in visitAdd()
1246 (match(LHS, m_And(m_Specific(A), m_Specific(B))) || in visitAdd()
1247 match(LHS, m_And(m_Specific(B), m_Specific(A))))) in visitAdd()
1251 (match(RHS, m_And(m_Specific(A), m_Specific(B))) || in visitAdd()
1252 match(RHS, m_And(m_Specific(B), m_Specific(A))))) in visitAdd()
1260 (match(LHS, m_And(m_Specific(A), m_Specific(B))) || in visitAdd()
1261 match(LHS, m_And(m_Specific(B), m_Specific(A))))) { in visitAdd()
1269 (match(RHS, m_And(m_Specific(A), m_Specific(B))) || in visitAdd()
[all …]
DInstCombineSelect.cpp324 if (!match(CmpLHS, m_And(m_Value(X), m_Power2(C1)))) in foldSelectICmpAndOr()
564 match(CmpLHS, m_And(m_Value(X), m_Power2(Y))) && in visitSelectInstWithICmp()
781 if (!match(LHS, m_And(m_Value(), m_ConstantInt(AndRHS)))) in foldSelectICmpAnd()
DInstCombineCompares.cpp2766 if (match(OtherVal, m_And(m_Value(ValToMask), m_ConstantInt(CI)))) { in ProcessUMulZExtIdiom()
3426 if (!match(Op0, m_And(m_Value(LHS), m_ConstantInt(LHSC))) || in visitICmpInst()
3470 if (!match(Op0, m_And(m_Value(LHS), m_ConstantInt(LHSC))) || in visitICmpInst()
4079 m_CombineOr(m_And(m_Value(), LSubOne), m_And(LSubOne, m_Value())); in visitICmpInst()
4092 if (match(Op0, m_And(m_Value(A), m_Not(m_Value(B)))) && in visitICmpInst()
4169 if (match(Op0, m_OneUse(m_And(m_Value(A), m_Value(B)))) && in visitICmpInst()
4170 match(Op1, m_OneUse(m_And(m_Value(C), m_Value(D))))) { in visitICmpInst()
4197 match(Op1, m_And(m_Value(B), m_ConstantInt(Cst1)))) || in visitICmpInst()
4199 match(Op0, m_And(m_Value(B), m_ConstantInt(Cst1))) && in visitICmpInst()
DInstCombineShifts.cpp448 m_And(m_OneUse(m_Shr(m_Value(V1), m_Specific(Op1))), in FoldShiftByConstant()
483 m_And(m_OneUse(m_Shr(m_Value(V1), m_Value(V2))), in FoldShiftByConstant()
DInstCombineCasts.cpp569 match(Src, m_And(m_Value(A), m_ConstantInt(Cst)))) { in visitTrunc()
942 match(SrcI, m_OneUse(m_And(m_Trunc(m_Value(X)), m_Constant(C)))) && in visitZExt()
949 match(And, m_OneUse(m_And(m_Trunc(m_Value(X)), m_Specific(C)))) && in visitZExt()
DInstCombineCalls.cpp2261 if (match(IIOperand, m_And(m_Value(A), m_Value(B)))) { in visitCallInst()
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineAndOrXor.cpp585 if (match(L1, m_And(m_Value(L11), m_Value(L12)))) { in foldLogOpOfMaskedICmpsHelper()
586 if (!match(L2, m_And(m_Value(L21), m_Value(L22)))) in foldLogOpOfMaskedICmpsHelper()
590 if (!match(L2, m_And(m_Value(L11), m_Value(L12)))) in foldLogOpOfMaskedICmpsHelper()
600 if (match(R1, m_And(m_Value(R11), m_Value(R12)))) { in foldLogOpOfMaskedICmpsHelper()
609 if (!ok && match(R2, m_And(m_Value(R11), m_Value(R12)))) { in foldLogOpOfMaskedICmpsHelper()
783 match(Val, m_And(m_Specific(V), m_ConstantInt(AndCst)))) { in FoldAndOfICmps()
789 match(Val2, m_And(m_Specific(V), m_ConstantInt(AndCst)))) { in FoldAndOfICmps()
1132 if (match(Op0, m_Trunc(m_And(m_Value(X), m_ConstantInt(YC))))) { in visitAnd()
1167 match(Op1, m_Not(m_And(m_Value(C), m_Value(D)))) && in visitAnd()
1173 match(Op0, m_Not(m_And(m_Value(C), m_Value(D)))) && in visitAnd()
[all …]
DInstCombineAddSub.cpp237 match(LHS, m_And(m_Value(X), m_ConstantInt(C2))) && in visitAdd()
616 if (match(Op1, m_And(m_Value(Y), m_Specific(Op0))) || in visitSub()
617 match(Op1, m_And(m_Specific(Op0), m_Value(Y)))) in visitSub()
DInstCombineShifts.cpp432 m_And(m_Shr(m_Value(V1), m_Specific(Op1)), in FoldShiftByConstant()
464 m_And(m_Shr(m_Value(V1), m_Value(V2)), in FoldShiftByConstant()
DInstCombineCompares.cpp1961 if (!match(Op0, m_And(m_Value(LHS), m_ConstantInt(LHSC))) || in visitICmpInst()
1998 if (!match(Op0, m_And(m_Value(LHS), m_ConstantInt(LHSC))) || in visitICmpInst()
2508 if (match(Op0, m_OneUse(m_And(m_Value(A), m_Value(B)))) && in visitICmpInst()
2509 match(Op1, m_OneUse(m_And(m_Value(C), m_Value(D))))) { in visitICmpInst()
DInstCombineSelect.cpp596 !match(LHS, m_And(m_Value(), m_ConstantInt(AndRHS)))) in foldSelectICmpAnd()
DInstCombineCasts.cpp492 match(Src, m_And(m_Value(A), m_ConstantInt(Cst)))) { in visitTrunc()
/external/llvm/lib/Analysis/
DInstructionSimplify.cpp1770 if (match(Op0, m_And(m_Value(A), m_Value(B))) && in SimplifyOrInst()
1775 if (match(Op1, m_And(m_Value(A), m_Value(B))) && in SimplifyOrInst()
1780 if (match(Op0, m_Not(m_And(m_Value(A), m_Value(B)))) && in SimplifyOrInst()
1785 if (match(Op1, m_Not(m_And(m_Value(A), m_Value(B)))) && in SimplifyOrInst()
1817 if (match(Op0, m_And(m_Value(A), m_Value(C))) && in SimplifyOrInst()
1818 match(Op1, m_And(m_Value(B), m_Value(D)))) { in SimplifyOrInst()
2402 } else if (match(LHS, m_And(m_Value(), m_ConstantInt(CI2)))) { in SimplifyICmpInst()
2724 if (LBO && match(LBO, m_CombineOr(m_And(m_Value(), m_Specific(RHS)), in SimplifyICmpInst()
2725 m_And(m_Specific(RHS), m_Value())))) { in SimplifyICmpInst()
2732 if (RBO && match(RBO, m_CombineOr(m_And(m_Value(), m_Specific(LHS)), in SimplifyICmpInst()
[all …]
DValueTracking.cpp1533 if (OrZero && match(V, m_And(m_Value(X), m_Value(Y)))) { in isKnownToBeAPowerOfTwo()
1549 if (match(X, m_And(m_Specific(Y), m_Value())) || in isKnownToBeAPowerOfTwo()
1550 match(X, m_And(m_Value(), m_Specific(Y)))) in isKnownToBeAPowerOfTwo()
1553 if (match(Y, m_And(m_Specific(X), m_Value())) || in isKnownToBeAPowerOfTwo()
1554 match(Y, m_And(m_Value(), m_Specific(X)))) in isKnownToBeAPowerOfTwo()
/external/llvm/lib/Transforms/Utils/
DLoopUtils.cpp88 if (match(J, m_CombineOr(m_And(m_Instruction(I), m_APInt(M)), in lookThroughAnd()
89 m_And(m_APInt(M), m_Instruction(I))))) { in lookThroughAnd()
/external/swiftshader/third_party/LLVM/lib/Analysis/
DInstructionSimplify.cpp1280 if (match(Op0, m_And(m_Value(A), m_Value(B))) && in SimplifyOrInst()
1285 if (match(Op1, m_And(m_Value(A), m_Value(B))) && in SimplifyOrInst()
1290 if (match(Op0, m_Not(m_And(m_Value(A), m_Value(B)))) && in SimplifyOrInst()
1295 if (match(Op1, m_Not(m_And(m_Value(A), m_Value(B)))) && in SimplifyOrInst()
1597 } else if (match(LHS, m_And(m_Value(), m_ConstantInt(CI2)))) { in SimplifyICmpInst()
/external/llvm/include/llvm/IR/
DPatternMatch.h506 inline BinaryOp_match<LHS, RHS, Instruction::And> m_And(const LHS &L, in m_And() function
1333 return m_CombineOr(m_And(L, R), m_And(R, L));
/external/llvm/lib/Transforms/Scalar/
DGuardWidening.cpp490 if (match(CheckCond, m_And(m_Value(AndLHS), m_Value(AndRHS)))) in parseRangeChecks()
DInductiveRangeCheckElimination.cpp328 if (match(Condition, m_And(m_Value(), m_Value()))) { in extractRangeChecksFromCond()
DGVN.cpp1975 if ((isKnownTrue && match(LHS, m_And(m_Value(A), m_Value(B)))) || in propagateEquality()
/external/swiftshader/third_party/LLVM/include/llvm/Support/
DPatternMatch.h364 m_And(const LHS &L, const RHS &R) { in m_And() function
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/
DGVN.cpp1961 if ((isKnownTrue && match(LHS, m_And(m_Value(A), m_Value(B)))) || in propagateEquality()
/external/llvm/lib/CodeGen/
DCodeGenPrepare.cpp5500 if (match(LogicOp, m_And(m_OneUse(m_Value(Cond1)), in splitBranchCondition()

12