[all-commits] [llvm/llvm-project] 8735b7: [mlir] do not inject malloc/free in to-LLVM transl...
ftynse via All-commits
all-commits at lists.llvm.org
Thu Nov 23 04:38:39 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 8735b7dcc9ebcfd00f478660656f75432af38ed3
https://github.com/llvm/llvm-project/commit/8735b7dcc9ebcfd00f478660656f75432af38ed3
Author: Oleksandr "Alex" Zinenko <zinenko at google.com>
Date: 2023-11-23 (Thu, 23 Nov 2023)
Changed paths:
M mlir/lib/Target/LLVMIR/ModuleTranslation.cpp
M mlir/test/Target/LLVMIR/llvmir.mlir
Log Message:
-----------
[mlir] do not inject malloc/free in to-LLVM translation (#73224)
In the early days of MLIR-to-LLVM IR translation, it had to forcefully
inject declarations of `malloc` and `free` functions as then-standard
(now `memref`) dialect ops were unconditionally lowering to libc calls.
This is no longer the case. Even when they do lower to libc calls, the
signatures of those methods are injected at lowering since calls must
target declared functions in valid IR. Don't inject those declarations
anymore.
More information about the All-commits
mailing list