Lines Matching refs:countMatches
25 static unsigned countMatches(FuncOp f, Matcher &matcher) { in countMatches() function
44 llvm::outs() << "Pattern add(*) matched " << countMatches(f, p0) in test1()
48 llvm::outs() << "Pattern mul(*) matched " << countMatches(f, p1) in test1()
52 llvm::outs() << "Pattern add(add(*), *) matched " << countMatches(f, p2) in test1()
56 llvm::outs() << "Pattern add(*, add(*)) matched " << countMatches(f, p3) in test1()
60 llvm::outs() << "Pattern mul(add(*), *) matched " << countMatches(f, p4) in test1()
64 llvm::outs() << "Pattern mul(*, add(*)) matched " << countMatches(f, p5) in test1()
68 llvm::outs() << "Pattern mul(mul(*), *) matched " << countMatches(f, p6) in test1()
72 llvm::outs() << "Pattern mul(mul(*), mul(*)) matched " << countMatches(f, p7) in test1()
79 << countMatches(f, p8) << " times\n"; in test1()
90 << countMatches(f, p9) << " times\n"; in test1()
93 llvm::outs() << "Pattern add(a, b) matched " << countMatches(f, p10) in test1()
97 llvm::outs() << "Pattern add(a, c) matched " << countMatches(f, p11) in test1()
101 llvm::outs() << "Pattern add(b, a) matched " << countMatches(f, p12) in test1()
105 llvm::outs() << "Pattern add(c, a) matched " << countMatches(f, p13) in test1()
109 llvm::outs() << "Pattern mul(a, add(c, b)) matched " << countMatches(f, p14) in test1()
113 llvm::outs() << "Pattern mul(a, add(b, c)) matched " << countMatches(f, p15) in test1()
119 << countMatches(f, p16) << " times\n"; in test1()
123 << countMatches(f, p17) << " times\n"; in test1()