[all-commits] [llvm/llvm-project] 20b93a: Update ODS variadic segments "magic" attributes to...
Mehdi Amini via All-commits
all-commits at lists.llvm.org
Mon Jul 24 11:38:25 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 20b93abca6516bbb23689c3777536fea04e46e14
https://github.com/llvm/llvm-project/commit/20b93abca6516bbb23689c3777536fea04e46e14
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/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