reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

lib/Analysis/InlineCost.cpp
 1097       !match(&I, m_FNeg(m_Value())))
lib/Analysis/InstructionSimplify.cpp
 4464   if (match(Op, m_FNeg(m_Value(X))))
 4530     if (match(Op0, m_FNeg(m_Specific(Op1))) ||
 4531         match(Op1, m_FNeg(m_Specific(Op0))))
 4569       match(Op1, m_FNeg(m_Value(X))))
 4576        match(Op1, m_FNeg(m_Value(X)))))
lib/CodeGen/SelectionDAG/FastISel.cpp
 1802     if (match(I, m_FNeg(m_Value(X))))
lib/Transforms/InstCombine/InstCombineAddSub.cpp
 1492   if (match(&I, m_c_FAdd(m_FNeg(m_Value(X)), m_Value(Y))))
 1498   if (match(&I, m_c_FAdd(m_OneUse(m_c_FMul(m_FNeg(m_Value(X)), m_Value(Y))),
 1505   if (match(&I, m_c_FAdd(m_OneUse(m_FDiv(m_FNeg(m_Value(X)), m_Value(Y))),
 1507       match(&I, m_c_FAdd(m_OneUse(m_FDiv(m_Value(X), m_FNeg(m_Value(Y)))),
 2039   if (match(&I, m_FNeg(m_OneUse(m_FMul(m_Value(X), m_Constant(C))))))
 2042   if (match(&I, m_FNeg(m_OneUse(m_FDiv(m_Value(X), m_Constant(C))))))
 2045   if (match(&I, m_FNeg(m_OneUse(m_FDiv(m_Constant(C), m_Value(X))))))
 2054   if (!match(&I, m_FNeg(m_Value(FNeg))))
 2139   if (match(Op1, m_FNeg(m_Value(Y))))
 2145   if (match(Op1, m_OneUse(m_FPTrunc(m_FNeg(m_Value(Y))))))
 2149   if (match(Op1, m_OneUse(m_FPExt(m_FNeg(m_Value(Y))))))
 2155   if (match(Op1, m_OneUse(m_c_FMul(m_FNeg(m_Value(X)), m_Value(Y))))) {
 2161   if (match(Op1, m_OneUse(m_FDiv(m_FNeg(m_Value(X)), m_Value(Y)))) ||
 2162       match(Op1, m_OneUse(m_FDiv(m_Value(X), m_FNeg(m_Value(Y)))))) {
lib/Transforms/InstCombine/InstCombineCalls.cpp
 2163     if (match(Arg0, m_FNeg(m_Value(X))) && match(Arg1, m_FNeg(m_Value(Y))) &&
 2163     if (match(Arg0, m_FNeg(m_Value(X))) && match(Arg1, m_FNeg(m_Value(Y))) &&
 2256     if (match(Src0, m_FNeg(m_Value(X))) && match(Src1, m_FNeg(m_Value(Y)))) {
 2256     if (match(Src0, m_FNeg(m_Value(X))) && match(Src1, m_FNeg(m_Value(Y)))) {
 2312     if (match(Src, m_FNeg(m_Value(X))) || match(Src, m_FAbs(m_Value(X)))) {
 2322     if (match(II->getArgOperand(0), m_OneUse(m_FNeg(m_Value(X))))) {
lib/Transforms/InstCombine/InstCombineCasts.cpp
 1624     if (match(Op, m_FNeg(m_Value(X)))) {
lib/Transforms/InstCombine/InstCombineCompares.cpp
 6011   if (match(Op0, m_FNeg(m_Value(X))) && match(Op1, m_FNeg(m_Value(Y))))
 6011   if (match(Op0, m_FNeg(m_Value(X))) && match(Op1, m_FNeg(m_Value(Y))))
 6072   if (match(Op0, m_FNeg(m_Value(X)))) {
lib/Transforms/InstCombine/InstCombineInternal.h
   86         match(V, m_Not(m_Value())) || match(V, m_FNeg(m_Value())))
lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
  418   if (match(Op0, m_FNeg(m_Value(X))) && match(Op1, m_FNeg(m_Value(Y))))
  418   if (match(Op0, m_FNeg(m_Value(X))) && match(Op1, m_FNeg(m_Value(Y))))
  423   if (match(Op0, m_FNeg(m_Value(X))) && match(Op1, m_Constant(C)))
 1148   if (match(I.getOperand(0), m_FNeg(m_Value(X))))
 1177   if (match(I.getOperand(1), m_FNeg(m_Value(X))))
 1271   if (match(Op0, m_FNeg(m_Value(X))) && match(Op1, m_FNeg(m_Value(Y)))) {
 1271   if (match(Op0, m_FNeg(m_Value(X))) && match(Op1, m_FNeg(m_Value(Y)))) {
lib/Transforms/InstCombine/InstCombineSelect.cpp
  338   if (match(TI, m_FNeg(m_Value(X))) && match(FI, m_FNeg(m_Value(Y))) &&
  338   if (match(TI, m_FNeg(m_Value(X))) && match(FI, m_FNeg(m_Value(Y))) &&
 2373       match(TrueVal, m_FNeg(m_Specific(FalseVal))) &&
 2385       match(FalseVal, m_FNeg(m_Specific(TrueVal))) &&
lib/Transforms/Scalar/Reassociate.cpp
  210       !match(I, m_FNeg(m_Value())))
  583             (Opcode == Instruction::FMul && match(Tmp, m_FNeg(m_Value())))) {
  857     if (!match(U, m_Neg(m_Value())) && !match(U, m_FNeg(m_Value())))
  924   if (match(Sub, m_Neg(m_Value())) || match(Sub, m_FNeg(m_Value()))) 
 1486         !match(TheOp, m_FNeg(m_Value(X))))
 1495         (match(TheOp, m_Neg(m_Value())) || match(TheOp, m_FNeg(m_Value()))))
 2145     } else if (match(I, m_FNeg(m_Value()))) {
lib/Transforms/Utils/SimplifyLibCalls.cpp
 1369     if (match(Call->getArgOperand(0), m_OneUse(m_FNeg(m_Value(X)))))
 1376     if (match(Call->getArgOperand(0), m_FNeg(m_Value(X))))
unittests/IR/PatternMatch.cpp
 1067   EXPECT_TRUE(match(V, m_FNeg(m_Value(Match))));
 1071   EXPECT_TRUE(match(V1, m_FNeg(m_Value(Match))));
 1075   EXPECT_FALSE(match(V2, m_FNeg(m_Value(Match))));
 1077   EXPECT_TRUE(match(V2, m_FNeg(m_Value(Match))));
 1081   EXPECT_FALSE(match(V3, m_FNeg(m_Value(Match))));