[all-commits] [llvm/llvm-project] 4b897d: [mlir][ods] Add nested OpTrait

Jacques Pienaar via All-commits all-commits at lists.llvm.org
Tue Jul 20 10:45:19 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4b897de5fa0298398cb7e993963cc3507c961985
      https://github.com/llvm/llvm-project/commit/4b897de5fa0298398cb7e993963cc3507c961985
  Author: Jacques Pienaar <jpienaar at google.com>
  Date:   2021-07-20 (Tue, 20 Jul 2021)

  Changed paths:
    M mlir/include/mlir/IR/OpBase.td
    M mlir/lib/TableGen/Operator.cpp
    M mlir/test/mlir-tblgen/op-decl-and-defs.td

  Log Message:
  -----------
  [mlir][ods] Add nested OpTrait

Allows for grouping OpTraits with list of OpTrait to make it easier to group OpTraits together without needing to use list concats (e.g., enable using `[Traits, ..., UsefulGroupOfTraits, Others, ...]` instead of `[Traits, ...] # UsefulGroupOfTraits # [Others, ...]`). Flatten in construction of Operation. This recurses here as the expectation is that these aren't expected to be deeply nested (most likely only 1 level of nesting).

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




More information about the All-commits mailing list