[all-commits] [llvm/llvm-project] 041f1a: [mlir][memref] Fix num elements in lowering of mem...
Fabian Mora via All-commits
all-commits at lists.llvm.org
Mon May 22 09:27:39 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 041f1abee11c0d5b790776bb26287bdbc7fe058c
https://github.com/llvm/llvm-project/commit/041f1abee11c0d5b790776bb26287bdbc7fe058c
Author: Fabian Mora <fmora.dev at gmail.com>
Date: 2023-05-22 (Mon, 22 May 2023)
Changed paths:
M mlir/include/mlir/Conversion/LLVMCommon/Pattern.h
M mlir/include/mlir/Conversion/MemRefToLLVM/AllocLikeConversion.h
M mlir/lib/Conversion/LLVMCommon/Pattern.cpp
M mlir/lib/Conversion/MemRefToLLVM/AllocLikeConversion.cpp
M mlir/lib/Conversion/MemRefToLLVM/MemRefToLLVM.cpp
M mlir/test/Conversion/GPUToNVVM/wmma-ops-to-nvvm.mlir
M mlir/test/Conversion/MemRefToLLVM/convert-dynamic-memref-ops.mlir
M mlir/test/Conversion/MemRefToLLVM/convert-static-memref-ops.mlir
Log Message:
-----------
[mlir][memref] Fix num elements in lowering of memref.alloca op to LLVM
Fixes a mistake in the lowering of memref.alloca to llvm.alloca, as llvm.alloca uses the number of elements to allocate in the stack and not the size in bytes.
Reference:
LLVM IR: https://llvm.org/docs/LangRef.html#alloca-instruction
LLVM MLIR: https://mlir.llvm.org/docs/Dialects/LLVM/#llvmalloca-mlirllvmallocaop
Reviewed By: ftynse
Differential Revision: https://reviews.llvm.org/D150705
More information about the All-commits
mailing list