[Mlir-commits] [mlir] b5276b5 - [mlir][sparse] Run an integration test with codegen.
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Thu Nov 17 09:59:59 PST 2022
Author: bixia1
Date: 2022-11-17T09:59:53-08:00
New Revision: b5276b50e9d5eba4358272a271f33d63326e4dc0
URL: https://github.com/llvm/llvm-project/commit/b5276b50e9d5eba4358272a271f33d63326e4dc0
DIFF: https://github.com/llvm/llvm-project/commit/b5276b50e9d5eba4358272a271f33d63326e4dc0.diff
LOG: [mlir][sparse] Run an integration test with codegen.
Reviewed By: Peiming
Differential Revision: https://reviews.llvm.org/D138213
Added:
Modified:
mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_transpose.mlir
Removed:
################################################################################
diff --git a/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_transpose.mlir b/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_transpose.mlir
index 355c3704ae4c2..35af1195d54b4 100644
--- a/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_transpose.mlir
+++ b/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_transpose.mlir
@@ -1,7 +1,15 @@
-// RUN: mlir-opt %s --sparse-compiler | \
-// RUN: mlir-cpu-runner -e entry -entry-point-result=void \
-// RUN: -shared-libs=%mlir_lib_dir/libmlir_c_runner_utils%shlibext | \
-// RUN: FileCheck %s
+// DEFINE: %{option} = enable-runtime-library=true
+// DEFINE: %{command} = mlir-opt %s --sparse-compiler=%{option}
+// DxEFINE: mlir-cpu-runner \
+// DxEFINE: -e entry -entry-point-result=void \
+// DxEFINE: -shared-libs=%mlir_lib_dir/libmlir_c_runner_utils%shlibext | \
+// DxEFINE: FileCheck %s
+//
+// RUN: %{command}
+//
+// Do the same run, but now with direct IR generation.
+// REDEFINE: %{option} = "enable-runtime-library=false enable-buffer-initialization=true"
+// RUN: %{command}
#DCSR = #sparse_tensor.encoding<{
dimLevelType = [ "compressed", "compressed" ]
More information about the Mlir-commits
mailing list