Home
last modified time | relevance | path

Searched refs:m_Constant (Results 1 – 6 of 6) sorted by relevance

/external/llvm/lib/Transforms/InstCombine/
DInstCombineMulDivRem.cpp201 if (match(&I, m_Mul(m_Shl(m_Value(NewOp), m_Constant(C2)), in visitMul()
202 m_Constant(C1))) && in visitMul()
216 if (match(&I, m_Mul(m_Value(NewOp), m_Constant(C1)))) { in visitMul()
283 if (match(Op0, m_OneUse(m_Add(m_Value(X), m_Constant(C1))))) { in visitMul()
1242 if (match(Op0, m_FMul(m_Value(X), m_Constant(C1)))) { in visitFDiv()
1248 } else if (match(Op0, m_FDiv(m_Value(X), m_Constant(C1)))) { in visitFDiv()
1281 if (match(Op1, m_FMul(m_Value(X), m_Constant(C2)))) in visitFDiv()
1283 else if (match(Op1, m_FDiv(m_Value(X), m_Constant(C2)))) { in visitFDiv()
1286 } else if (match(Op1, m_FDiv(m_Constant(C2), m_Value(X)))) { in visitFDiv()
DInstCombineAddSub.cpp1543 if (match(Op1, m_Add(m_Value(X), m_Constant(C2)))) in visitSub()
1639 if (match(Op1, m_SDiv(m_Value(X), m_Constant(C))) && match(Op0, m_Zero()) && in visitSub()
1657 if (match(Op1, m_Mul(m_Value(A), m_Constant(CI))) || in visitSub()
1658 match(Op1, m_Mul(m_Constant(CI), m_Value(A)))) { in visitSub()
DInstCombineShifts.cpp730 if (match(I.getOperand(0), m_OneUse(m_Shl(m_Constant(C1), m_Value(A)))) && in visitShl()
731 match(I.getOperand(1), m_Constant(C2))) in visitShl()
DInstCombineCasts.cpp942 match(SrcI, m_OneUse(m_And(m_Trunc(m_Value(X)), m_Constant(C)))) && in visitZExt()
948 if (SrcI && match(SrcI, m_OneUse(m_Xor(m_Value(And), m_Constant(C)))) && in visitZExt()
/external/llvm/lib/Analysis/
DVectorUtils.cpp405 if (match(V, m_Add(m_Value(Val), m_Constant(Con)))) in findScalarElement()
/external/llvm/include/llvm/IR/
DPatternMatch.h83 inline class_match<Constant> m_Constant() { return class_match<Constant>(); } in m_Constant() function
308 inline bind_ty<Constant> m_Constant(Constant *&C) { return C; } in m_Constant() function