[all-commits] [llvm/llvm-project] cd9d48: [MLIR][ExecutionEngine] don't dump decls (#164478)
Maksim Levental via All-commits
all-commits at lists.llvm.org
Mon Oct 27 12:22:34 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: cd9d48777e3b1f2d46791e7d834a80f1b6a14c74
https://github.com/llvm/llvm-project/commit/cd9d48777e3b1f2d46791e7d834a80f1b6a14c74
Author: Maksim Levental <maksim.levental at gmail.com>
Date: 2025-10-27 (Mon, 27 Oct 2025)
Changed paths:
M mlir/lib/ExecutionEngine/ExecutionEngine.cpp
M mlir/test/python/CMakeLists.txt
M mlir/test/python/execution_engine.py
Log Message:
-----------
[MLIR][ExecutionEngine] don't dump decls (#164478)
Currently ExecutionEngine tries to dump all functions declared in the
module, even those which are "external" (i.e., linked/loaded at
runtime). E.g.
```mlir
func.func private @printF32(f32)
func.func @supported_arg_types(%arg0: i32, %arg1: f32) {
call @printF32(%arg1) : (f32) -> ()
return
}
```
fails with
```
Could not compile printF32:
Symbols not found: [ __mlir_printF32 ]
Program aborted due to an unhandled Error:
Symbols not found: [ __mlir_printF32 ]
```
even though `printF32` can be provided at final build time (i.e., when
the object file is linked to some executable or shlib). E.g, if our own
`libmlir_c_runner_utils` is linked.
So just skip functions which have no bodies during dump (i.e., are decls
without defns).
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list