[all-commits] [llvm/llvm-project] 92bdc5: [mlir][ods] Add convertFromStorage field to parame...

Jeff Niu via All-commits all-commits at lists.llvm.org
Mon Jun 27 15:57:34 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 92bdc5c3e55fb1d48fe3a2bfad99911e8534db92
      https://github.com/llvm/llvm-project/commit/92bdc5c3e55fb1d48fe3a2bfad99911e8534db92
  Author: Mogball <jeffniu22 at gmail.com>
  Date:   2022-06-27 (Mon, 27 Jun 2022)

  Changed paths:
    M mlir/docs/AttributesAndTypes.md
    M mlir/include/mlir/IR/AttrTypeBase.td
    M mlir/include/mlir/TableGen/AttrOrTypeDef.h
    M mlir/lib/TableGen/AttrOrTypeDef.cpp
    M mlir/test/mlir-tblgen/attr-or-type-format.td
    M mlir/tools/mlir-tblgen/AttrOrTypeFormatGen.cpp

  Log Message:
  -----------
  [mlir][ods] Add convertFromStorage field to parameters

This patch adds a `convertFromStorage` field to attribute or type parameters that can implement more complex logic for converting from the parameter's C++ storage type (e.g. `Optional<SmallVector<T>>`) to its C++ type (e.g. `Optional<ArrayRef<T>>`).

Reviewed By: rriddle

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




More information about the All-commits mailing list