[mlir][drr] Allow specifying string in location
authorJacques Pienaar <jpienaar@google.com>
Fri, 10 Apr 2020 00:18:34 +0000 (17:18 -0700)
committerJacques Pienaar <jpienaar@google.com>
Fri, 10 Apr 2020 19:43:22 +0000 (12:43 -0700)
commitd6b32e39ae27e029f9e73a4d8b61755e369e428e
tree49cb050c72c9d8ce481f8180c1d6dd666d0dfd2f
parentb8a108140df4818d3cffb849503c01537f6f5506
[mlir][drr] Allow specifying string in location

Summary:
The string in the location is used to provide metadata for the fused location
or create a NamedLoc. This allows tagging individual locations to convey
additional rewrite information.

Differential Revision: https://reviews.llvm.org/D77840
mlir/docs/DeclarativeRewrites.md
mlir/include/mlir/TableGen/Pattern.h
mlir/lib/TableGen/Pattern.cpp
mlir/test/lib/Dialect/Test/TestOps.td
mlir/test/mlir-tblgen/pattern.mlir
mlir/tools/mlir-tblgen/RewriterGen.cpp