[all-commits] [llvm/llvm-project] 2092d1: [mlir] Change the syntax of dense arrays
Jeff Niu via All-commits
all-commits at lists.llvm.org
Thu Aug 11 17:56:57 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 2092d1438c36606d82df20fd36f16de033d31147
https://github.com/llvm/llvm-project/commit/2092d1438c36606d82df20fd36f16de033d31147
Author: Jeff Niu <jeff at modular.com>
Date: 2022-08-11 (Thu, 11 Aug 2022)
Changed paths:
M mlir/include/mlir/IR/BuiltinAttributes.td
M mlir/lib/AsmParser/AttributeParser.cpp
M mlir/lib/AsmParser/Parser.h
M mlir/lib/AsmParser/TokenKinds.def
M mlir/lib/IR/AsmPrinter.cpp
M mlir/test/Dialect/LLVMIR/dynamic-gep-index.mlir
M mlir/test/Dialect/LLVMIR/invalid.mlir
M mlir/test/IR/attribute.mlir
M mlir/test/IR/elements-attr-interface.mlir
Log Message:
-----------
[mlir] Change the syntax of dense arrays
Follow-up to D123774, where the syntax of dense arrays was discussed. It
was included that the syntax should be changed to `array<i32: 1, 2>`.
This patch changes the syntax but importantly preserves the `[1, 2]`
syntax when embedding these attributes in assembly formats through ODS.
Reviewed By: mehdi_amini, jpienaar
Differential Revision: https://reviews.llvm.org/D131738
Commit: 30171e76f0e5ea8037bc4d1450dd3e12af4d9938
https://github.com/llvm/llvm-project/commit/30171e76f0e5ea8037bc4d1450dd3e12af4d9938
Author: Jeff Niu <jeff at modular.com>
Date: 2022-08-11 (Thu, 11 Aug 2022)
Changed paths:
M flang/include/flang/Optimizer/Dialect/FIROps.td
M flang/lib/Lower/OpenACC.cpp
M flang/lib/Optimizer/Dialect/FIROps.cpp
M flang/test/Fir/convert-to-llvm-openmp-and-fir.fir
M flang/test/Fir/convert-to-llvm.fir
M mlir/docs/PatternRewriter.md
M mlir/include/mlir/Dialect/ControlFlow/IR/ControlFlowOps.td
M mlir/include/mlir/Dialect/LLVMIR/LLVMOps.td
M mlir/include/mlir/Dialect/MemRef/IR/MemRefOps.td
M mlir/include/mlir/Dialect/PDLInterp/IR/PDLInterpOps.td
M mlir/include/mlir/IR/ValueRange.h
M mlir/lib/Dialect/Async/IR/Async.cpp
M mlir/lib/Dialect/Bufferization/IR/BufferizationOps.cpp
M mlir/lib/Dialect/GPU/IR/GPUDialect.cpp
M mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp
M mlir/lib/Dialect/LLVMIR/IR/NVVMDialect.cpp
M mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
M mlir/lib/Dialect/OpenACC/IR/OpenACC.cpp
M mlir/lib/Dialect/SCF/IR/SCF.cpp
M mlir/lib/Dialect/SPIRV/IR/SPIRVOps.cpp
M mlir/lib/Dialect/Vector/IR/VectorOps.cpp
M mlir/lib/IR/Operation.cpp
M mlir/lib/IR/OperationSupport.cpp
M mlir/lib/Rewrite/ByteCode.cpp
M mlir/lib/Target/LLVMIR/ConvertFromLLVMIR.cpp
M mlir/test/Conversion/OpenMPToLLVM/convert-to-llvmir.mlir
M mlir/test/Dialect/GPU/invalid.mlir
M mlir/test/Dialect/Linalg/named-ops.mlir
M mlir/test/Dialect/OpenMP/invalid.mlir
M mlir/test/Dialect/OpenMP/ops.mlir
M mlir/test/Dialect/PDL/invalid.mlir
M mlir/test/Dialect/PDLInterp/invalid.mlir
M mlir/test/Dialect/SCF/invalid.mlir
M mlir/test/Dialect/SPIRV/IR/control-flow-ops.mlir
M mlir/test/IR/parser.mlir
M mlir/test/IR/traits.mlir
M mlir/test/Rewrite/pdl-bytecode.mlir
M mlir/test/Target/LLVMIR/openmp-llvm.mlir
M mlir/test/Transforms/canonicalize-block-merge.mlir
M mlir/test/Transforms/sccp.mlir
M mlir/test/lib/Dialect/Test/TestOps.td
M mlir/test/python/dialects/linalg/ops.py
M mlir/test/python/dialects/ods_helpers.py
M mlir/tools/mlir-tblgen/OpDefinitionsGen.cpp
M mlir/tools/mlir-tblgen/OpFormatGen.cpp
Log Message:
-----------
[mlir] Switch segment size attributes to DenseI32ArrayAttr
Switch variadic operand and result segment size attributes to use the
dense i32 array. Dense integer arrays were introduced primarily to
represent index lists. They are a better fit for segment sizes than
dense elements attrs.
Depends on D131738
Reviewed By: mehdi_amini
Differential Revision: https://reviews.llvm.org/D131702
Compare: https://github.com/llvm/llvm-project/compare/5e22ef3198d1...30171e76f0e5
More information about the All-commits
mailing list