[all-commits] [llvm/llvm-project] d49d83: [MLIR][LLVM] Don't use void return type in `getCal...
definelicht via All-commits
all-commits at lists.llvm.org
Thu Jan 19 01:02:08 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d49d83e79ca0b59c3d68ff6c46eea69d848b0617
https://github.com/llvm/llvm-project/commit/d49d83e79ca0b59c3d68ff6c46eea69d848b0617
Author: Johannes de Fine Licht <johannes.definelicht at nextsilicon.com>
Date: 2023-01-19 (Thu, 19 Jan 2023)
Changed paths:
M mlir/include/mlir/Dialect/LLVMIR/LLVMOps.td
Log Message:
-----------
[MLIR][LLVM] Don't use void return type in `getCallableResults`.
In the LLVM IR dialect, `LLVMVoidType` is used to model the return type
of LLVM IR functions with no return value. This is inconsistent with
MLIR APIs, which expect a function with no return value to have an
empty return type. Handle this special case in `LLVMFuncOp` to avoid
mismatches between the number of return values and return types between
caller and callee.
Reviewed By: ftynse
Differential Revision: https://reviews.llvm.org/D141676
More information about the All-commits
mailing list