[all-commits] [llvm/llvm-project] 4a2d45: [mlir][Vector] add pass option to `convert-vector-...
zero9178 via All-commits
all-commits at lists.llvm.org
Mon Feb 13 02:50:08 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 4a2d4588a041c4632e0d24cf21b01bb5d939266b
https://github.com/llvm/llvm-project/commit/4a2d4588a041c4632e0d24cf21b01bb5d939266b
Author: Markus Böck <markus.boeck02 at gmail.com>
Date: 2023-02-13 (Mon, 13 Feb 2023)
Changed paths:
M mlir/include/mlir/Conversion/Passes.td
M mlir/lib/Conversion/VectorToLLVM/ConvertVectorToLLVM.cpp
M mlir/lib/Conversion/VectorToLLVM/ConvertVectorToLLVMPass.cpp
A mlir/test/Conversion/VectorToLLVM/typed-pointers.mlir
M mlir/test/Conversion/VectorToLLVM/vector-mask-to-llvm.mlir
M mlir/test/Conversion/VectorToLLVM/vector-reduction-to-llvm.mlir
M mlir/test/Conversion/VectorToLLVM/vector-to-llvm.mlir
Log Message:
-----------
[mlir][Vector] add pass option to `convert-vector-to-llvm` to emit opaque pointers
Part of https://discourse.llvm.org/t/rfc-switching-the-llvm-dialect-and-dialect-lowerings-to-opaque-pointers/68179
This patch allows the use of `convert-vector-to-llvm` with LLVM opaque pointer types. The changes required were relatively minor:
* there were a few GEPs and loads that required specifying the result or base type
* a few bitcasts, especially when interacting with memref have to not be emitted when using opaque pointers
Differential Revision: https://reviews.llvm.org/D143853
Commit: 7c4e45ec7d6daf936c9a01f1ef2d107e9977f681
https://github.com/llvm/llvm-project/commit/7c4e45ec7d6daf936c9a01f1ef2d107e9977f681
Author: Markus Böck <markus.boeck02 at gmail.com>
Date: 2023-02-13 (Mon, 13 Feb 2023)
Changed paths:
M mlir/include/mlir/Conversion/Passes.td
M mlir/include/mlir/Conversion/SCFToOpenMP/SCFToOpenMP.h
M mlir/lib/Conversion/SCFToOpenMP/SCFToOpenMP.cpp
M mlir/test/Conversion/SCFToOpenMP/reductions.mlir
M mlir/test/Conversion/SCFToOpenMP/scf-to-openmp.mlir
A mlir/test/Conversion/SCFToOpenMP/typed-pointers.mlir
Log Message:
-----------
[mlir][SCFToOpenMP] Add pass option to emit LLVM opaque pointers
Part of https://discourse.llvm.org/t/rfc-switching-the-llvm-dialect-and-dialect-lowerings-to-opaque-pointers/68179
There were luckily only very few changes that had to be made. To allow users to also specify the pass option from C++ code I have also migrated the pass to use autogenerated constructors to autogenerate a pass option struct.
Differential Revision: https://reviews.llvm.org/D143855
Compare: https://github.com/llvm/llvm-project/compare/d5ea1b22cba3...7c4e45ec7d6d
More information about the All-commits
mailing list