[PATCH] D78434: [mlir] resolve types from attributes in assemblyFormat

Martin Waitz via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Apr 18 12:22:31 PDT 2020


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

An operation can specify that an operation or result type matches the
type of another operation, result, or attribute via the `TypesMatchWith`
constraint.

Use this constaint to also automatically resolve types in the
automatically generated assembly parser.
This way, only the attribute needs to be listed in `assemblyFormat`,
e.g. for constant operations.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D78434

Files:
  mlir/tools/mlir-tblgen/OpFormatGen.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D78434.258540.patch
Type: text/x-patch
Size: 6426 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200418/241a5282/attachment.bin>


More information about the llvm-commits mailing list