[all-commits] [llvm/llvm-project] 9ea6b3: Update ODS variadic segments "magic" attributes to...

Mehdi Amini via All-commits all-commits at lists.llvm.org
Mon Jul 24 18:17:34 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9ea6b30ac20f8223fb6aeae853e5c73691850a8d
      https://github.com/llvm/llvm-project/commit/9ea6b30ac20f8223fb6aeae853e5c73691850a8d
  Author: Mehdi Amini <joker.eph at gmail.com>
  Date:   2023-07-24 (Mon, 24 Jul 2023)

  Changed paths:
    M mlir/include/mlir/Bytecode/BytecodeImplementation.h
    M mlir/include/mlir/Bytecode/Encoding.h
    M mlir/include/mlir/IR/ODSSupport.h
    M mlir/include/mlir/IR/OpBase.td
    M mlir/include/mlir/IR/OpDefinition.h
    M mlir/include/mlir/IR/OperationSupport.h
    M mlir/include/mlir/TableGen/Property.h
    M mlir/lib/Bytecode/Reader/BytecodeReader.cpp
    M mlir/lib/Bytecode/Writer/IRNumbering.cpp
    M mlir/lib/Bytecode/Writer/IRNumbering.h
    M mlir/lib/CAPI/IR/IR.cpp
    M mlir/lib/IR/ODSSupport.cpp
    M mlir/lib/TableGen/Property.cpp
    M mlir/test/Dialect/LLVMIR/invalid.mlir
    M mlir/test/IR/traits.mlir
    M mlir/test/lib/Dialect/Test/TestOps.td
    M mlir/test/python/dialects/linalg/ops.py
    M mlir/tools/mlir-tblgen/OpDefinitionsGen.cpp
    M mlir/tools/mlir-tblgen/OpFormatGen.cpp
    M mlir/unittests/IR/AdaptorTest.cpp
    M mlir/unittests/IR/OpPropertiesTest.cpp

  Log Message:
  -----------
  Update ODS variadic segments "magic" attributes to use native Properties

The operand_segment_sizes and result_segment_sizes Attributes are now inlined
in the operation as native propertie. We continue to support building an
Attribute on the fly for `getAttr("operand_segment_sizes")` and setting the
property from an attribute with `setAttr("operand_segment_sizes", attr)`.

A new bytecode version is introduced to support backward compatibility and
backdeployments.

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




More information about the All-commits mailing list