[PATCH] D72249: Detemplaize m_Op and RecursivePatternMatcher.

lorenzo chelini via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 6 01:40:08 PST 2020


chelini created this revision.
chelini added reviewers: nicolasvasilache, ftynse.
chelini added a project: LLVM.
Herald added subscribers: llvm-commits, lucyrfox, mgester, arpith-jacob, antiagainst, shauheen, burmako, jpienaar, rriddle, mehdi_amini.

As Alex Zinenko pointed out, there is no need for the 'OpClass' template in the op_matcher and RecursivePatternMatcher classes. It suffices to store the unique name of the operation to be matched in the constructor and use it as the matching key.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D72249

Files:
  mlir/include/mlir/IR/Matchers.h
  mlir/lib/Dialect/StandardOps/Ops.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D72249.236305.patch
Type: text/x-patch
Size: 4781 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200106/00843d38/attachment.bin>


More information about the llvm-commits mailing list