Use fused location for rewritten ops in generated rewrites.
authorJacques Pienaar <jpienaar@google.com>
Sat, 25 May 2019 18:03:51 +0000 (11:03 -0700)
committerMehdi Amini <joker.eph@gmail.com>
Sun, 2 Jun 2019 03:03:12 +0000 (20:03 -0700)
commit2f50b6c401fd4d6ff63718ef3b889a79ba32a640
tree9e08caf6dde999cb36c9cfc69f9104da023af166
parentb0a26768ec99e66c38bc965405cf6d05d3ef4c02
Use fused location for rewritten ops in generated rewrites.

    This does tracks the location by recording all the ops in the source pattern and using the fused location for the transformed op. Track the locations via the rewrite state which is a bit heavy weight, in follow up to change to matchAndRewrite this will be addressed (and need for extra array go away).

--

PiperOrigin-RevId: 249986555
mlir/test/mlir-tblgen/pattern.td
mlir/tools/mlir-tblgen/RewriterGen.cpp