Skip to content

Commit 274ce88

Browse files
authored
[mlir] Remove printCString() from RunnerUtils (llvm#70197)
This is now unused and can be replaced with `printString()` from CRunnerUtils or `vector.print str`.
1 parent 605fadf commit 274ce88

File tree

3 files changed

+0
-23
lines changed

3 files changed

+0
-23
lines changed

mlir/include/mlir/ExecutionEngine/RunnerUtils.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,6 @@ extern "C" MLIR_RUNNERUTILS_EXPORT void printMemrefF64(int64_t rank, void *ptr);
392392
extern "C" MLIR_RUNNERUTILS_EXPORT void printMemrefInd(int64_t rank, void *ptr);
393393
extern "C" MLIR_RUNNERUTILS_EXPORT void printMemrefC32(int64_t rank, void *ptr);
394394
extern "C" MLIR_RUNNERUTILS_EXPORT void printMemrefC64(int64_t rank, void *ptr);
395-
extern "C" MLIR_RUNNERUTILS_EXPORT void printCString(char *str);
396395

397396
extern "C" MLIR_RUNNERUTILS_EXPORT void
398397
_mlir_ciface_printMemref0dF32(StridedMemRefType<float, 0> *m);

mlir/lib/ExecutionEngine/RunnerUtils.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,6 @@ extern "C" void printMemrefC64(int64_t rank, void *ptr) {
158158
_mlir_ciface_printMemrefC64(&descriptor);
159159
}
160160

161-
/// Deprecated. This should be unified with printString from CRunnerUtils.
162-
extern "C" void printCString(char *str) { fputs(str, stdout); }
163-
164161
extern "C" void _mlir_ciface_printMemref0dF32(StridedMemRefType<float, 0> *M) {
165162
impl::printMemRef(*M);
166163
}

mlir/test/mlir-cpu-runner/print.mlir

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)