[all-commits] [llvm/llvm-project] 94662e: [mlir] Add support for adding attribute+type trait...

River Riddle via All-commits all-commits at lists.llvm.org
Thu Apr 15 11:44:23 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 94662ee0c175165e60bc09fc73396a3e344829d4
      https://github.com/llvm/llvm-project/commit/94662ee0c175165e60bc09fc73396a3e344829d4
  Author: River Riddle <riddleriver at gmail.com>
  Date:   2021-04-15 (Thu, 15 Apr 2021)

  Changed paths:
    M mlir/include/mlir/Dialect/PDL/IR/PDLTypes.td
    M mlir/include/mlir/IR/BuiltinAttributes.td
    M mlir/include/mlir/IR/BuiltinLocationAttributes.td
    M mlir/include/mlir/IR/BuiltinTypes.td
    M mlir/include/mlir/IR/OpBase.td
    M mlir/include/mlir/TableGen/AttrOrTypeDef.h
    R mlir/include/mlir/TableGen/OpTrait.h
    M mlir/include/mlir/TableGen/Operator.h
    M mlir/include/mlir/TableGen/SideEffects.h
    A mlir/include/mlir/TableGen/Trait.h
    M mlir/lib/TableGen/AttrOrTypeDef.cpp
    M mlir/lib/TableGen/CMakeLists.txt
    R mlir/lib/TableGen/OpTrait.cpp
    M mlir/lib/TableGen/Operator.cpp
    M mlir/lib/TableGen/SideEffects.cpp
    A mlir/lib/TableGen/Trait.cpp
    M mlir/test/lib/Dialect/Test/TestInterfaces.td
    M mlir/test/lib/Dialect/Test/TestTypeDefs.td
    M mlir/test/lib/Dialect/Test/TestTypes.cpp
    M mlir/test/lib/Dialect/Test/TestTypes.h
    M mlir/test/mlir-tblgen/attrdefs.td
    M mlir/tools/mlir-tblgen/AttrOrTypeDefGen.cpp
    M mlir/tools/mlir-tblgen/DialectGen.cpp
    M mlir/tools/mlir-tblgen/OpDefinitionsGen.cpp
    M mlir/tools/mlir-tblgen/OpFormatGen.cpp

  Log Message:
  -----------
  [mlir] Add support for adding attribute+type traits/interfaces to tablegen defs

This matches the current support provided to operations, and allows attaching traits, interfaces, and using the DeclareInterfaceMethods utility. This was missed when attribute/type generation was first added.

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




More information about the All-commits mailing list