[all-commits] [llvm/llvm-project] 72df59: [mlir] resolve types from attributes in assemblyFo...

Martin Waitz via All-commits all-commits at lists.llvm.org
Mon Jul 6 21:40:43 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 72df59d59097a0c9ed5f420401cf377eaff896aa
      https://github.com/llvm/llvm-project/commit/72df59d59097a0c9ed5f420401cf377eaff896aa
  Author: Martin Waitz <tali at admingilde.org>
  Date:   2020-07-07 (Tue, 07 Jul 2020)

  Changed paths:
    M mlir/docs/OpDefinitions.md
    M mlir/test/lib/Dialect/Test/TestOps.td
    M mlir/test/mlir-tblgen/op-format.mlir
    M mlir/tools/mlir-tblgen/OpFormatGen.cpp

  Log Message:
  -----------
  [mlir] resolve types from attributes in assemblyFormat

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

Use these constraints 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.

Reviewed By: rriddle

Differential Revision: https://reviews.llvm.org/D78434




More information about the All-commits mailing list