| Issue |
166539
|
| Summary |
How to set function arguments when using mlir-runner?
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
Subway2023
|
I don’t know how to pass arguments to mlir-runner.
```mlir
module {
func.func @func1(%arg0: f16, %arg1: tensor<?xi1>, %arg2: index) -> memref<17xf32> {
%c1661746278_i32 = arith.constant 1661746278 : i32
%cst = arith.constant 2.768000e+04 : f16
%c365126088_i32 = arith.constant 365126088 : i32
%true = arith.constant true
}
```
```
mlir-opt \
--arith-expand --arith-unsigned-when-equivalent --convert-vector-to-scf --convert-vector-to-llvm --finalize-memref-to-llvm --one-shot-bufferize=""dialect-filter=arith"" --convert-arith-to-llvm -convert-to-llvm \
program_7489.mlir | mlir-runner -e func1 --entry-point-result="memref<17xf32>" --shared-libs=/llvm-project-llvmorg-21.1.2/build/lib/libmlir_runner_utils.so,/llvm-project-llvmorg-21.1.2/build/lib/libmlir_c_runner_utils.so
```
```
loc("<stdin>":10:3): error: Dialect `func' not found for custom op 'func.func'
could not parse the input IR
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs