[Mlir-commits] [mlir] [mlir] Remove `printCString()` from RunnerUtils (PR #70197)

Benjamin Maxwell llvmlistbot at llvm.org
Wed Oct 25 10:32:03 PDT 2023


================
@@ -1,19 +0,0 @@
-// RUN: mlir-opt %s -pass-pipeline="builtin.module(convert-func-to-llvm,reconcile-unrealized-casts)" \
-// RUN: | mlir-cpu-runner -e main -entry-point-result=void \
-// RUN:   -shared-libs=%mlir_runner_utils,%mlir_c_runner_utils \
-// RUN: | FileCheck %s
-
-
-llvm.mlir.global internal constant @str_global("String to print\0A")
-llvm.func @printCString(!llvm.ptr<i8>)
-
-func.func @main() {
-  %0 = llvm.mlir.addressof @str_global : !llvm.ptr<array<16 x i8>>
-  %1 = llvm.mlir.constant(0 : index) : i64
-  %2 = llvm.getelementptr %0[%1, %1]
-    : (!llvm.ptr<array<16 x i8>>, i64, i64) -> !llvm.ptr<i8>
-  llvm.call @printCString(%2) : (!llvm.ptr<i8>) -> ()
----------------
MacDue wrote:

Because there's already a `test-print-str.mlir` integration test (with will hit `printString` and `vector.print str`).  

https://github.com/llvm/llvm-project/pull/70197


More information about the Mlir-commits mailing list