[all-commits] [llvm/llvm-project] 5d5d58: [mlir] Enhance classof() checks in StructsGen

Lei Zhang via All-commits all-commits at lists.llvm.org
Fri Jan 3 12:13:45 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 5d5d5838ce07a62c1c98c8a4e82270aa927dfc10
      https://github.com/llvm/llvm-project/commit/5d5d5838ce07a62c1c98c8a4e82270aa927dfc10
  Author: Lei Zhang <antiagainst at google.com>
  Date:   2020-01-03 (Fri, 03 Jan 2020)

  Changed paths:
    M mlir/tools/mlir-tblgen/StructsGen.cpp
    M mlir/unittests/TableGen/StructsGenTest.cpp
    M mlir/unittests/TableGen/structs.td

  Log Message:
  -----------
  [mlir] Enhance classof() checks in StructsGen

Previously we only check that each field is of the correct
mlir::Attribute subclass. This commit enhances to also consider
the attribute's types, by leveraging the constraints already
encoded in TableGen attribute definitions.

Reviewed By: rsuderman

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




More information about the All-commits mailing list