[all-commits] [llvm/llvm-project] 5837fd: [mlir][llvm] Pass struct results as parameter in c...
Stephan Herhut via All-commits
all-commits at lists.llvm.org
Wed Mar 17 04:59:30 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 5837fdc4ccc4d61e9eb7b6d310760c0be2e52124
https://github.com/llvm/llvm-project/commit/5837fdc4ccc4d61e9eb7b6d310760c0be2e52124
Author: Stephan Herhut <herhut at google.com>
Date: 2021-03-17 (Wed, 17 Mar 2021)
Changed paths:
M mlir/docs/LLVMDialectMemRefConvention.md
M mlir/include/mlir/Conversion/StandardToLLVM/ConvertStandardToLLVM.h
M mlir/lib/Conversion/StandardToLLVM/StandardToLLVM.cpp
M mlir/test/Conversion/StandardToLLVM/calling-convention.mlir
Log Message:
-----------
[mlir][llvm] Pass struct results as parameter in c wrapper
Returning structs directly in LLVM does not necessarily align with the C ABI of
the platform. This might happen to work on Linux but for small structs this
breaks on Windows. With this change, the wrappers work platform independently.
Differential Revision: https://reviews.llvm.org/D98725
More information about the All-commits
mailing list