[PATCH] D77649: [mlir][DRR] Add location directive

Jacques Pienaar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 7 08:07:13 PDT 2020


jpienaar created this revision.
jpienaar added reviewers: antiagainst, mehdi_amini.
Herald added subscribers: llvm-commits, grosul1, Joonsoo, liufengdb, aartbik, lucyrfox, mgester, arpith-jacob, nicolasvasilache, shauheen, burmako, rriddle.
Herald added a reviewer: rriddle.
Herald added a project: LLVM.

Add directive to indicate the location to give to op being created. This
directive is optional and if unused the location will still be the fused
location of all source operations.

Currently this directive only works with other op locations, reusing an
existing op location or a fusion of op locations. But doesn't yet support
supplying metadata for the FusedLoc.

Based off initial revision by antiagainst@ and effectively mirrors GlobalIsel
debug_locations directive.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D77649

Files:
  mlir/docs/DeclarativeRewrites.md
  mlir/include/mlir/IR/OpBase.td
  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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D77649.255675.patch
Type: text/x-patch
Size: 14305 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200407/1e6691a7/attachment.bin>


More information about the llvm-commits mailing list