Changed all code and comments that used the phrase "sparse compiler" to instead use "sparsifier" (#71875)
The changes in this p.r. mostly center around the tests that use the flag sparse_compiler (also: sparse-compiler).
This commit is contained in:
parent
0901f918da
commit
dce7a7cf69
@ -15,7 +15,7 @@ def setup_passes(mlir_module):
|
|||||||
"parallelization-strategy=none"
|
"parallelization-strategy=none"
|
||||||
" vectorization-strategy=none vl=1 enable-simd-index32=False"
|
" vectorization-strategy=none vl=1 enable-simd-index32=False"
|
||||||
)
|
)
|
||||||
pipeline = f"sparse-compiler{{{opt}}}"
|
pipeline = f"sparsifier{{{opt}}}"
|
||||||
PassManager.parse(pipeline).run(mlir_module)
|
PassManager.parse(pipeline).run(mlir_module)
|
||||||
|
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@ namespace sparse_tensor {
|
|||||||
///
|
///
|
||||||
/// (1) To provide a uniform API for querying aspects of sparse-tensor
|
/// (1) To provide a uniform API for querying aspects of sparse-tensor
|
||||||
/// types; in particular, to make the "dimension" vs "level" distinction
|
/// types; in particular, to make the "dimension" vs "level" distinction
|
||||||
/// overt (i.e., explicit everywhere). Thus, throughout the sparse-compiler
|
/// overt (i.e., explicit everywhere). Thus, throughout the sparsifier
|
||||||
/// this class should be preferred over using `RankedTensorType` or
|
/// this class should be preferred over using `RankedTensorType` or
|
||||||
/// `ShapedType` directly, since the methods of the latter do not make
|
/// `ShapedType` directly, since the methods of the latter do not make
|
||||||
/// the "dimension" vs "level" distinction overt.
|
/// the "dimension" vs "level" distinction overt.
|
||||||
@ -34,7 +34,7 @@ namespace sparse_tensor {
|
|||||||
/// That is, we want to manipulate dense-tensor types using the same API
|
/// That is, we want to manipulate dense-tensor types using the same API
|
||||||
/// that we use for manipulating sparse-tensor types; both to keep the
|
/// that we use for manipulating sparse-tensor types; both to keep the
|
||||||
/// "dimension" vs "level" distinction overt, and to avoid needing to
|
/// "dimension" vs "level" distinction overt, and to avoid needing to
|
||||||
/// handle certain cases specially in the sparse-compiler.
|
/// handle certain cases specially in the sparsifier.
|
||||||
///
|
///
|
||||||
/// (3) To provide uniform handling of "defaults". In particular
|
/// (3) To provide uniform handling of "defaults". In particular
|
||||||
/// this means that dense-tensors should always return the same answers
|
/// this means that dense-tensors should always return the same answers
|
||||||
|
@ -23,12 +23,11 @@ using namespace llvm::cl;
|
|||||||
namespace mlir {
|
namespace mlir {
|
||||||
namespace sparse_tensor {
|
namespace sparse_tensor {
|
||||||
|
|
||||||
/// Options for the "sparse-compiler" pipeline. So far this only contains
|
/// Options for the "sparsifier" pipeline. So far this only contains
|
||||||
/// a subset of the options that can be set for the underlying passes,
|
/// a subset of the options that can be set for the underlying passes,
|
||||||
/// because it must be manually kept in sync with the tablegen files
|
/// because it must be manually kept in sync with the tablegen files
|
||||||
/// for those passes.
|
/// for those passes.
|
||||||
struct SparseCompilerOptions
|
struct SparsifierOptions : public PassPipelineOptions<SparsifierOptions> {
|
||||||
: public PassPipelineOptions<SparseCompilerOptions> {
|
|
||||||
// These options must be kept in sync with `SparsificationBase`.
|
// These options must be kept in sync with `SparsificationBase`.
|
||||||
// TODO(57514): These options are duplicated in Passes.td.
|
// TODO(57514): These options are duplicated in Passes.td.
|
||||||
PassOptions::Option<mlir::SparseParallelizationStrategy> parallelization{
|
PassOptions::Option<mlir::SparseParallelizationStrategy> parallelization{
|
||||||
@ -164,15 +163,14 @@ struct SparseCompilerOptions
|
|||||||
// Building and Registering.
|
// Building and Registering.
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
/// Adds the "sparse-compiler" pipeline to the `OpPassManager`. This
|
/// Adds the "sparsifier" pipeline to the `OpPassManager`. This
|
||||||
/// is the standard pipeline for taking sparsity-agnostic IR using
|
/// is the standard pipeline for taking sparsity-agnostic IR using
|
||||||
/// the sparse-tensor type and lowering it to LLVM IR with concrete
|
/// the sparse-tensor type and lowering it to LLVM IR with concrete
|
||||||
/// representations and algorithms for sparse tensors.
|
/// representations and algorithms for sparse tensors.
|
||||||
void buildSparseCompiler(OpPassManager &pm,
|
void buildSparsifier(OpPassManager &pm, const SparsifierOptions &options);
|
||||||
const SparseCompilerOptions &options);
|
|
||||||
|
|
||||||
/// Registers all pipelines for the `sparse_tensor` dialect. At present,
|
/// Registers all pipelines for the `sparse_tensor` dialect. At present,
|
||||||
/// this includes only "sparse-compiler".
|
/// this includes only "sparsifier".
|
||||||
void registerSparseTensorPipelines();
|
void registerSparseTensorPipelines();
|
||||||
|
|
||||||
} // namespace sparse_tensor
|
} // namespace sparse_tensor
|
||||||
|
@ -29,9 +29,10 @@
|
|||||||
// Pipeline implementation.
|
// Pipeline implementation.
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
void mlir::sparse_tensor::buildSparseCompiler(
|
void mlir::sparse_tensor::buildSparsifier(OpPassManager &pm,
|
||||||
OpPassManager &pm, const SparseCompilerOptions &options) {
|
const SparsifierOptions &options) {
|
||||||
// Rewrite named linalg ops into generic ops.
|
// Rewrite named linalg ops into generic ops.
|
||||||
|
|
||||||
pm.addNestedPass<func::FuncOp>(createLinalgGeneralizationPass());
|
pm.addNestedPass<func::FuncOp>(createLinalgGeneralizationPass());
|
||||||
|
|
||||||
// Sparsification and bufferization mini-pipeline.
|
// Sparsification and bufferization mini-pipeline.
|
||||||
@ -108,10 +109,10 @@ void mlir::sparse_tensor::buildSparseCompiler(
|
|||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
void mlir::sparse_tensor::registerSparseTensorPipelines() {
|
void mlir::sparse_tensor::registerSparseTensorPipelines() {
|
||||||
PassPipelineRegistration<SparseCompilerOptions>(
|
PassPipelineRegistration<SparsifierOptions>(
|
||||||
"sparse-compiler",
|
"sparsifier",
|
||||||
"The standard pipeline for taking sparsity-agnostic IR using the"
|
"The standard pipeline for taking sparsity-agnostic IR using the"
|
||||||
" sparse-tensor type, and lowering it to LLVM IR with concrete"
|
" sparse-tensor type, and lowering it to LLVM IR with concrete"
|
||||||
" representations and algorithms for sparse tensors.",
|
" representations and algorithms for sparse tensors.",
|
||||||
buildSparseCompiler);
|
buildSparsifier);
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: mlir-opt %s --sparse-compiler="enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true"
|
// RUN: mlir-opt %s --sparsifier="enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true"
|
||||||
|
|
||||||
#MAT_D_C = #sparse_tensor.encoding<{
|
#MAT_D_C = #sparse_tensor.encoding<{
|
||||||
map = (d0, d1) -> (d0 : dense, d1 : compressed)
|
map = (d0, d1) -> (d0 : dense, d1 : compressed)
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: mlir-opt %s -sparse-compiler="vl=8" | FileCheck %s
|
// RUN: mlir-opt %s -sparsifier="vl=8" | FileCheck %s
|
||||||
|
|
||||||
#Dense = #sparse_tensor.encoding<{
|
#Dense = #sparse_tensor.encoding<{
|
||||||
map = (d0, d1) -> (d0 : dense, d1 : dense)
|
map = (d0, d1) -> (d0 : dense, d1 : dense)
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -22,7 +22,7 @@
|
|||||||
//
|
//
|
||||||
// TODO: enable!
|
// TODO: enable!
|
||||||
// Do the same run, but now with direct IR generation.
|
// Do the same run, but now with direct IR generation.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false
|
||||||
// R_UN: %{compile} | env %{env} %{run} | FileCheck %s
|
// R_UN: %{compile} | env %{env} %{run} | FileCheck %s
|
||||||
|
|
||||||
!Filename = !llvm.ptr
|
!Filename = !llvm.ptr
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -20,11 +20,11 @@
|
|||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation.
|
// Do the same run, but now with direct IR generation.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false enable-buffer-initialization=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false enable-buffer-initialization=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and vectorization.
|
// Do the same run, but now with direct IR generation and vectorization.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false enable-buffer-initialization=true vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false enable-buffer-initialization=true vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and VLA vectorization.
|
// Do the same run, but now with direct IR generation and VLA vectorization.
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -20,11 +20,11 @@
|
|||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation.
|
// Do the same run, but now with direct IR generation.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false enable-buffer-initialization=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false enable-buffer-initialization=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and vectorization.
|
// Do the same run, but now with direct IR generation and vectorization.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false enable-buffer-initialization=true vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false enable-buffer-initialization=true vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and VLA vectorization.
|
// Do the same run, but now with direct IR generation and VLA vectorization.
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -20,11 +20,11 @@
|
|||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation.
|
// Do the same run, but now with direct IR generation.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false enable-buffer-initialization=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false enable-buffer-initialization=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and vectorization.
|
// Do the same run, but now with direct IR generation and vectorization.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false enable-buffer-initialization=true vl=4 reassociate-fp-reductions=true enable-index-optimizations=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false enable-buffer-initialization=true vl=4 reassociate-fp-reductions=true enable-index-optimizations=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
|
|
||||||
#MAT_C_C = #sparse_tensor.encoding<{map = (d0, d1) -> (d0 : compressed, d1 : compressed)}>
|
#MAT_C_C = #sparse_tensor.encoding<{map = (d0, d1) -> (d0 : compressed, d1 : compressed)}>
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -20,11 +20,11 @@
|
|||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation.
|
// Do the same run, but now with direct IR generation.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false enable-buffer-initialization=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false enable-buffer-initialization=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and vectorization.
|
// Do the same run, but now with direct IR generation and vectorization.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false enable-buffer-initialization=true vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false enable-buffer-initialization=true vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and VLA vectorization.
|
// Do the same run, but now with direct IR generation and VLA vectorization.
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -21,11 +21,11 @@
|
|||||||
// RUN: %{compile} | env %{env} %{run} | FileCheck %s
|
// RUN: %{compile} | env %{env} %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation.
|
// Do the same run, but now with direct IR generation.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false
|
||||||
// RUN: %{compile} | env %{env} %{run} | FileCheck %s
|
// RUN: %{compile} | env %{env} %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and vectorization.
|
// Do the same run, but now with direct IR generation and vectorization.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
||||||
// RUN: %{compile} | env %{env} %{run} | FileCheck %s
|
// RUN: %{compile} | env %{env} %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and VLA vectorization.
|
// Do the same run, but now with direct IR generation and VLA vectorization.
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -20,11 +20,11 @@
|
|||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation.
|
// Do the same run, but now with direct IR generation.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and vectorization.
|
// Do the same run, but now with direct IR generation and vectorization.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
|
|
||||||
// UNSUPPORTED: target=aarch64{{.*}}
|
// UNSUPPORTED: target=aarch64{{.*}}
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -20,11 +20,11 @@
|
|||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation.
|
// Do the same run, but now with direct IR generation.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and vectorization.
|
// Do the same run, but now with direct IR generation and vectorization.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and VLA vectorization.
|
// Do the same run, but now with direct IR generation and VLA vectorization.
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -20,11 +20,11 @@
|
|||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation.
|
// Do the same run, but now with direct IR generation.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and vectorization.
|
// Do the same run, but now with direct IR generation and vectorization.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and VLA vectorization.
|
// Do the same run, but now with direct IR generation and VLA vectorization.
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -22,11 +22,11 @@
|
|||||||
// RUN: %{compile} | %{env} %{run} | FileCheck %s
|
// RUN: %{compile} | %{env} %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation.
|
// Do the same run, but now with direct IR generation.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false
|
||||||
// RUN: %{compile} | %{env} %{run} | FileCheck %s
|
// RUN: %{compile} | %{env} %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and vectorization.
|
// Do the same run, but now with direct IR generation and vectorization.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
||||||
// RUN: %{compile} | %{env} %{run} | FileCheck %s
|
// RUN: %{compile} | %{env} %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and VLA vectorization.
|
// Do the same run, but now with direct IR generation and VLA vectorization.
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -20,11 +20,11 @@
|
|||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation.
|
// Do the same run, but now with direct IR generation.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false enable-buffer-initialization=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false enable-buffer-initialization=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and vectorization.
|
// Do the same run, but now with direct IR generation and vectorization.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and VLA vectorization.
|
// Do the same run, but now with direct IR generation and VLA vectorization.
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -20,11 +20,11 @@
|
|||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation.
|
// Do the same run, but now with direct IR generation.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false enable-buffer-initialization=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false enable-buffer-initialization=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and vectorization.
|
// Do the same run, but now with direct IR generation and vectorization.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false enable-buffer-initialization=true vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false enable-buffer-initialization=true vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and VLA vectorization.
|
// Do the same run, but now with direct IR generation and VLA vectorization.
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -20,11 +20,12 @@
|
|||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation.
|
// Do the same run, but now with direct IR generation.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and vectorization.
|
// Do the same run, but now with direct IR generation and vectorization.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
||||||
|
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and VLA vectorization.
|
// Do the same run, but now with direct IR generation and VLA vectorization.
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -20,11 +20,11 @@
|
|||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation.
|
// Do the same run, but now with direct IR generation.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false enable-buffer-initialization=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false enable-buffer-initialization=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and vectorization.
|
// Do the same run, but now with direct IR generation and vectorization.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and VLA vectorization.
|
// Do the same run, but now with direct IR generation and VLA vectorization.
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -20,11 +20,11 @@
|
|||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation.
|
// Do the same run, but now with direct IR generation.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false enable-buffer-initialization=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false enable-buffer-initialization=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and vectorization.
|
// Do the same run, but now with direct IR generation and vectorization.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and VLA vectorization.
|
// Do the same run, but now with direct IR generation and VLA vectorization.
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -20,11 +20,11 @@
|
|||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation.
|
// Do the same run, but now with direct IR generation.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and vectorization.
|
// Do the same run, but now with direct IR generation and vectorization.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and VLA vectorization.
|
// Do the same run, but now with direct IR generation and VLA vectorization.
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -20,11 +20,11 @@
|
|||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation.
|
// Do the same run, but now with direct IR generation.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and vectorization.
|
// Do the same run, but now with direct IR generation and vectorization.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and VLA vectorization.
|
// Do the same run, but now with direct IR generation and VLA vectorization.
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -20,11 +20,11 @@
|
|||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation.
|
// Do the same run, but now with direct IR generation.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false enable-buffer-initialization=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false enable-buffer-initialization=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and vectorization.
|
// Do the same run, but now with direct IR generation and vectorization.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and VLA vectorization.
|
// Do the same run, but now with direct IR generation and VLA vectorization.
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -20,11 +20,11 @@
|
|||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation.
|
// Do the same run, but now with direct IR generation.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false enable-buffer-initialization=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false enable-buffer-initialization=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and vectorization.
|
// Do the same run, but now with direct IR generation and vectorization.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false enable-buffer-initialization=true vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false enable-buffer-initialization=true vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and VLA vectorization.
|
// Do the same run, but now with direct IR generation and VLA vectorization.
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -17,11 +17,11 @@
|
|||||||
// DEFINE: %{env} =
|
// DEFINE: %{env} =
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and vectorization.
|
// Do the same run, but now with direct IR generation and vectorization.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and VLA vectorization.
|
// Do the same run, but now with direct IR generation and VLA vectorization.
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -20,11 +20,11 @@
|
|||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation.
|
// Do the same run, but now with direct IR generation.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and vectorization.
|
// Do the same run, but now with direct IR generation and vectorization.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and VLA vectorization.
|
// Do the same run, but now with direct IR generation and VLA vectorization.
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -20,11 +20,11 @@
|
|||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation.
|
// Do the same run, but now with direct IR generation.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false enable-buffer-initialization=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false enable-buffer-initialization=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and vectorization.
|
// Do the same run, but now with direct IR generation and vectorization.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false enable-buffer-initialization=true vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false enable-buffer-initialization=true vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and VLA vectorization.
|
// Do the same run, but now with direct IR generation and VLA vectorization.
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -20,11 +20,12 @@
|
|||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation.
|
// Do the same run, but now with direct IR generation.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false enable-buffer-initialization=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false enable-buffer-initialization=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and vectorization.
|
// Do the same run, but now with direct IR generation and vectorization.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false enable-buffer-initialization=true vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false enable-buffer-initialization=true vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
||||||
|
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and VLA vectorization.
|
// Do the same run, but now with direct IR generation and VLA vectorization.
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -20,11 +20,12 @@
|
|||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation.
|
// Do the same run, but now with direct IR generation.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and vectorization.
|
// Do the same run, but now with direct IR generation and vectorization.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
||||||
|
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and VLA vectorization.
|
// Do the same run, but now with direct IR generation and VLA vectorization.
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -20,11 +20,12 @@
|
|||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation.
|
// Do the same run, but now with direct IR generation.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false enable-buffer-initialization=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false enable-buffer-initialization=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and vectorization.
|
// Do the same run, but now with direct IR generation and vectorization.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false enable-buffer-initialization=true vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false enable-buffer-initialization=true vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
||||||
|
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and VLA vectorization.
|
// Do the same run, but now with direct IR generation and VLA vectorization.
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -20,11 +20,11 @@
|
|||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation.
|
// Do the same run, but now with direct IR generation.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false enable-buffer-initialization=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false enable-buffer-initialization=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and vectorization.
|
// Do the same run, but now with direct IR generation and vectorization.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false enable-buffer-initialization=true vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false enable-buffer-initialization=true vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and VLA vectorization.
|
// Do the same run, but now with direct IR generation and VLA vectorization.
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -20,11 +20,11 @@
|
|||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation.
|
// Do the same run, but now with direct IR generation.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false enable-buffer-initialization=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false enable-buffer-initialization=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and vectorization.
|
// Do the same run, but now with direct IR generation and vectorization.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false enable-buffer-initialization=true vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false enable-buffer-initialization=true vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and VLA vectorization.
|
// Do the same run, but now with direct IR generation and VLA vectorization.
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -20,11 +20,12 @@
|
|||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation.
|
// Do the same run, but now with direct IR generation.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false enable-buffer-initialization=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false enable-buffer-initialization=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and vectorization.
|
// Do the same run, but now with direct IR generation and vectorization.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false enable-buffer-initialization=true vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false enable-buffer-initialization=true vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
||||||
|
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and VLA vectorization.
|
// Do the same run, but now with direct IR generation and VLA vectorization.
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -20,11 +20,11 @@
|
|||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation.
|
// Do the same run, but now with direct IR generation.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false enable-buffer-initialization=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false enable-buffer-initialization=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and vectorization.
|
// Do the same run, but now with direct IR generation and vectorization.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false enable-buffer-initialization=true vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false enable-buffer-initialization=true vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and VLA vectorization.
|
// Do the same run, but now with direct IR generation and VLA vectorization.
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -20,11 +20,11 @@
|
|||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation.
|
// Do the same run, but now with direct IR generation.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false enable-buffer-initialization=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false enable-buffer-initialization=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and vectorization.
|
// Do the same run, but now with direct IR generation and vectorization.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false enable-buffer-initialization=true vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false enable-buffer-initialization=true vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and VLA vectorization.
|
// Do the same run, but now with direct IR generation and VLA vectorization.
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -20,11 +20,11 @@
|
|||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation.
|
// Do the same run, but now with direct IR generation.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false enable-buffer-initialization=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false enable-buffer-initialization=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and vectorization.
|
// Do the same run, but now with direct IR generation and vectorization.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false enable-buffer-initialization=true vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false enable-buffer-initialization=true vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and VLA vectorization.
|
// Do the same run, but now with direct IR generation and VLA vectorization.
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -17,12 +17,12 @@
|
|||||||
// DEFINE: %{env} =
|
// DEFINE: %{env} =
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false
|
||||||
|
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with vectorization.
|
// Do the same run, but now with vectorization.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with VLA vectorization.
|
// Do the same run, but now with VLA vectorization.
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -20,11 +20,11 @@
|
|||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation.
|
// Do the same run, but now with direct IR generation.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false enable-buffer-initialization=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false enable-buffer-initialization=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and vectorization.
|
// Do the same run, but now with direct IR generation and vectorization.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false enable-buffer-initialization=true vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false enable-buffer-initialization=true vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and VLA vectorization.
|
// Do the same run, but now with direct IR generation and VLA vectorization.
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -20,11 +20,11 @@
|
|||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation.
|
// Do the same run, but now with direct IR generation.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and vectorization.
|
// Do the same run, but now with direct IR generation and vectorization.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and VLA vectorization.
|
// Do the same run, but now with direct IR generation and VLA vectorization.
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -17,15 +17,15 @@
|
|||||||
// DEFINE: %{env} =
|
// DEFINE: %{env} =
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation.
|
// Do the same run, but now with direct IR generation.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and vectorization.
|
// Do the same run, but now with direct IR generation and vectorization.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and VLA vectorization.
|
// Do the same run, but now with direct IR generation and VLA vectorization.
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -20,11 +20,11 @@
|
|||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation.
|
// Do the same run, but now with direct IR generation.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and vectorization.
|
// Do the same run, but now with direct IR generation and vectorization.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and VLA vectorization.
|
// Do the same run, but now with direct IR generation and VLA vectorization.
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -20,11 +20,11 @@
|
|||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation.
|
// Do the same run, but now with direct IR generation.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and vectorization.
|
// Do the same run, but now with direct IR generation and vectorization.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and VLA vectorization.
|
// Do the same run, but now with direct IR generation and VLA vectorization.
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -22,7 +22,7 @@
|
|||||||
//
|
//
|
||||||
// TODO: enable!
|
// TODO: enable!
|
||||||
// Do the same run, but now with direct IR generation.
|
// Do the same run, but now with direct IR generation.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false
|
||||||
// R_UN: %{compile} | env %{env} %{run} | FileCheck %s
|
// R_UN: %{compile} | env %{env} %{run} | FileCheck %s
|
||||||
|
|
||||||
!Filename = !llvm.ptr
|
!Filename = !llvm.ptr
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -20,11 +20,11 @@
|
|||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation.
|
// Do the same run, but now with direct IR generation.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and vectorization.
|
// Do the same run, but now with direct IR generation and vectorization.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and VLA vectorization.
|
// Do the same run, but now with direct IR generation and VLA vectorization.
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -20,11 +20,11 @@
|
|||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation.
|
// Do the same run, but now with direct IR generation.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and vectorization.
|
// Do the same run, but now with direct IR generation and vectorization.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and VLA vectorization.
|
// Do the same run, but now with direct IR generation and VLA vectorization.
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -20,11 +20,11 @@
|
|||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation.
|
// Do the same run, but now with direct IR generation.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and vectorization.
|
// Do the same run, but now with direct IR generation and vectorization.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and VLA vectorization.
|
// Do the same run, but now with direct IR generation and VLA vectorization.
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -21,11 +21,11 @@
|
|||||||
// RUN: %{compile} | env %{env} %{run} | FileCheck %s
|
// RUN: %{compile} | env %{env} %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation.
|
// Do the same run, but now with direct IR generation.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false
|
||||||
// RUN: %{compile} | env %{env} %{run} | FileCheck %s
|
// RUN: %{compile} | env %{env} %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and vectorization.
|
// Do the same run, but now with direct IR generation and vectorization.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
||||||
// RUN: %{compile} | env %{env} %{run} | FileCheck %s
|
// RUN: %{compile} | env %{env} %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and VLA vectorization.
|
// Do the same run, but now with direct IR generation and VLA vectorization.
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -17,7 +17,7 @@
|
|||||||
// DEFINE: %{env} =
|
// DEFINE: %{env} =
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false
|
||||||
|
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
|
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -20,11 +20,11 @@
|
|||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation.
|
// Do the same run, but now with direct IR generation.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and vectorization.
|
// Do the same run, but now with direct IR generation and vectorization.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and VLA vectorization.
|
// Do the same run, but now with direct IR generation and VLA vectorization.
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -20,11 +20,11 @@
|
|||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation.
|
// Do the same run, but now with direct IR generation.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and vectorization.
|
// Do the same run, but now with direct IR generation and vectorization.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and VLA vectorization.
|
// Do the same run, but now with direct IR generation and VLA vectorization.
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -20,11 +20,11 @@
|
|||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation.
|
// Do the same run, but now with direct IR generation.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and vectorization.
|
// Do the same run, but now with direct IR generation and vectorization.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and VLA vectorization.
|
// Do the same run, but now with direct IR generation and VLA vectorization.
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -17,11 +17,11 @@
|
|||||||
// DEFINE: %{env} =
|
// DEFINE: %{env} =
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with vectorization.
|
// Do the same run, but now with vectorization.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now VLA vectorization.
|
// Do the same run, but now VLA vectorization.
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -17,11 +17,11 @@
|
|||||||
// DEFINE: %{env} =
|
// DEFINE: %{env} =
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with vectorization.
|
// Do the same run, but now with vectorization.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with VLA vectorization.
|
// Do the same run, but now with VLA vectorization.
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -20,7 +20,7 @@
|
|||||||
// RUN: %{compile} | env %{env} %{run} | FileCheck %s
|
// RUN: %{compile} | env %{env} %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation.
|
// Do the same run, but now with direct IR generation.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false
|
||||||
// RUN: %{compile} | env %{env} %{run} | FileCheck %s
|
// RUN: %{compile} | env %{env} %{run} | FileCheck %s
|
||||||
|
|
||||||
#CSR_hi = #sparse_tensor.encoding<{
|
#CSR_hi = #sparse_tensor.encoding<{
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -20,19 +20,19 @@
|
|||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation.
|
// Do the same run, but now with direct IR generation.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false enable-buffer-initialization=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false enable-buffer-initialization=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with parallelization strategy.
|
// Do the same run, but now with parallelization strategy.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=true parallelization-strategy=any-storage-any-loop
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=true parallelization-strategy=any-storage-any-loop
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and parallelization strategy.
|
// Do the same run, but now with direct IR generation and parallelization strategy.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false enable-buffer-initialization=true parallelization-strategy=any-storage-any-loop
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false enable-buffer-initialization=true parallelization-strategy=any-storage-any-loop
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and vectorization.
|
// Do the same run, but now with direct IR generation and vectorization.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false enable-buffer-initialization=true vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false enable-buffer-initialization=true vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and VLA vectorization.
|
// Do the same run, but now with direct IR generation and VLA vectorization.
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -17,7 +17,7 @@
|
|||||||
// DEFINE: %{env} =
|
// DEFINE: %{env} =
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
|
|
||||||
// TODO: support lib path.
|
// TODO: support lib path.
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -20,11 +20,11 @@
|
|||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation.
|
// Do the same run, but now with direct IR generation.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and vectorization.
|
// Do the same run, but now with direct IR generation and vectorization.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and VLA vectorization.
|
// Do the same run, but now with direct IR generation and VLA vectorization.
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -21,19 +21,19 @@
|
|||||||
// RUN: %{compile} | env %{env} %{run} | FileCheck %s
|
// RUN: %{compile} | env %{env} %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation.
|
// Do the same run, but now with direct IR generation.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false
|
||||||
// RUN: %{compile} | env %{env} %{run} | FileCheck %s
|
// RUN: %{compile} | env %{env} %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with parallelization strategy.
|
// Do the same run, but now with parallelization strategy.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=true parallelization-strategy=any-storage-any-loop
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=true parallelization-strategy=any-storage-any-loop
|
||||||
// RUN: %{compile} | env %{env} %{run} | FileCheck %s
|
// RUN: %{compile} | env %{env} %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and parallelization strategy.
|
// Do the same run, but now with direct IR generation and parallelization strategy.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false parallelization-strategy=any-storage-any-loop
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false parallelization-strategy=any-storage-any-loop
|
||||||
// RUN: %{compile} | env %{env} %{run} | FileCheck %s
|
// RUN: %{compile} | env %{env} %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and vectorization.
|
// Do the same run, but now with direct IR generation and vectorization.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
||||||
// RUN: %{compile} | env %{env} %{run} | FileCheck %s
|
// RUN: %{compile} | env %{env} %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and, if available, VLA
|
// Do the same run, but now with direct IR generation and, if available, VLA
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -21,11 +21,11 @@
|
|||||||
// RUN: %{compile} | env %{env} %{run} | FileCheck %s
|
// RUN: %{compile} | env %{env} %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation.
|
// Do the same run, but now with direct IR generation.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false
|
||||||
// RUN: %{compile} | env %{env} %{run} | FileCheck %s
|
// RUN: %{compile} | env %{env} %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and vectorization.
|
// Do the same run, but now with direct IR generation and vectorization.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
||||||
// RUN: %{compile} | env %{env} %{run} | FileCheck %s
|
// RUN: %{compile} | env %{env} %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and, if available, VLA
|
// Do the same run, but now with direct IR generation and, if available, VLA
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -20,11 +20,11 @@
|
|||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation.
|
// Do the same run, but now with direct IR generation.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false enable-buffer-initialization=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false enable-buffer-initialization=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and vectorization.
|
// Do the same run, but now with direct IR generation and vectorization.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false enable-buffer-initialization=true vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false enable-buffer-initialization=true vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and VLA vectorization.
|
// Do the same run, but now with direct IR generation and VLA vectorization.
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -20,11 +20,11 @@
|
|||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation.
|
// Do the same run, but now with direct IR generation.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false enable-buffer-initialization=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false enable-buffer-initialization=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and vectorization.
|
// Do the same run, but now with direct IR generation and vectorization.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false enable-buffer-initialization=true vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false enable-buffer-initialization=true vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and VLA vectorization.
|
// Do the same run, but now with direct IR generation and VLA vectorization.
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -21,7 +21,7 @@
|
|||||||
// RUN: %{compile} | env %{env} %{run} | FileCheck %s
|
// RUN: %{compile} | env %{env} %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and vectorization.
|
// Do the same run, but now with direct IR generation and vectorization.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
||||||
// RUN: %{compile} | env %{env} %{run} | FileCheck %s
|
// RUN: %{compile} | env %{env} %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and, if available, VLA
|
// Do the same run, but now with direct IR generation and, if available, VLA
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -17,14 +17,15 @@
|
|||||||
// DEFINE: %{env} =
|
// DEFINE: %{env} =
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
<<<<<<< HEAD
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation.
|
// Do the same run, but now with direct IR generation.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and vectorization.
|
// Do the same run, but now with direct IR generation and vectorization.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and VLA vectorization.
|
// Do the same run, but now with direct IR generation and VLA vectorization.
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -17,11 +17,11 @@
|
|||||||
// DEFINE: %{env} =
|
// DEFINE: %{env} =
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation.
|
// Do the same run, but now with direct IR generation.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false enable-buffer-initialization=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false enable-buffer-initialization=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
|
|
||||||
#CCCC = #sparse_tensor.encoding<{ map = (d0, d1, d2, d3) -> (d0 : compressed, d1 : compressed, d2 : compressed, d3 : compressed), posWidth = 32, crdWidth = 32 }>
|
#CCCC = #sparse_tensor.encoding<{ map = (d0, d1, d2, d3) -> (d0 : compressed, d1 : compressed, d2 : compressed, d3 : compressed), posWidth = 32, crdWidth = 32 }>
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -20,11 +20,11 @@
|
|||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation.
|
// Do the same run, but now with direct IR generation.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and vectorization.
|
// Do the same run, but now with direct IR generation and vectorization.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and VLA vectorization.
|
// Do the same run, but now with direct IR generation and VLA vectorization.
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -20,11 +20,11 @@
|
|||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation.
|
// Do the same run, but now with direct IR generation.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and vectorization.
|
// Do the same run, but now with direct IR generation and vectorization.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and VLA vectorization.
|
// Do the same run, but now with direct IR generation and VLA vectorization.
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -20,11 +20,11 @@
|
|||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation.
|
// Do the same run, but now with direct IR generation.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false enable-buffer-initialization=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false enable-buffer-initialization=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and vectorization.
|
// Do the same run, but now with direct IR generation and vectorization.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false enable-buffer-initialization=true vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false enable-buffer-initialization=true vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and VLA vectorization.
|
// Do the same run, but now with direct IR generation and VLA vectorization.
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -20,11 +20,11 @@
|
|||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation.
|
// Do the same run, but now with direct IR generation.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false enable-buffer-initialization=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false enable-buffer-initialization=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and vectorization.
|
// Do the same run, but now with direct IR generation and vectorization.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false enable-buffer-initialization=true vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false enable-buffer-initialization=true vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
|
|
||||||
// Product reductions - kept in a seperate file as these are not supported by
|
// Product reductions - kept in a seperate file as these are not supported by
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -20,11 +20,11 @@
|
|||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation.
|
// Do the same run, but now with direct IR generation.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and vectorization.
|
// Do the same run, but now with direct IR generation and vectorization.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
|
|
||||||
#SV = #sparse_tensor.encoding<{ map = (d0) -> (d0 : compressed) }>
|
#SV = #sparse_tensor.encoding<{ map = (d0) -> (d0 : compressed) }>
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -20,11 +20,11 @@
|
|||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation.
|
// Do the same run, but now with direct IR generation.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and vectorization.
|
// Do the same run, but now with direct IR generation and vectorization.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and VLA vectorization.
|
// Do the same run, but now with direct IR generation and VLA vectorization.
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -20,11 +20,11 @@
|
|||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation.
|
// Do the same run, but now with direct IR generation.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and vectorization.
|
// Do the same run, but now with direct IR generation and vectorization.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and VLA vectorization.
|
// Do the same run, but now with direct IR generation and VLA vectorization.
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -20,11 +20,11 @@
|
|||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation.
|
// Do the same run, but now with direct IR generation.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false enable-buffer-initialization=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false enable-buffer-initialization=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and vectorization.
|
// Do the same run, but now with direct IR generation and vectorization.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false enable-buffer-initialization=true vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false enable-buffer-initialization=true vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
|
|
||||||
#SV = #sparse_tensor.encoding<{ map = (d0) -> (d0 : compressed) }>
|
#SV = #sparse_tensor.encoding<{ map = (d0) -> (d0 : compressed) }>
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -20,11 +20,11 @@
|
|||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation.
|
// Do the same run, but now with direct IR generation.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and vectorization.
|
// Do the same run, but now with direct IR generation and vectorization.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and VLA vectorization.
|
// Do the same run, but now with direct IR generation and VLA vectorization.
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -17,11 +17,11 @@
|
|||||||
// DEFINE: %{env} =
|
// DEFINE: %{env} =
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with vectorization.
|
// Do the same run, but now with vectorization.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with VLA vectorization.
|
// Do the same run, but now with VLA vectorization.
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -17,12 +17,12 @@
|
|||||||
// DEFINE: %{env} =
|
// DEFINE: %{env} =
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false
|
||||||
|
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with vectorization.
|
// Do the same run, but now with vectorization.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with VLA vectorization.
|
// Do the same run, but now with VLA vectorization.
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -21,11 +21,11 @@
|
|||||||
// RUN: %{compile} | env %{env} %{run} | FileCheck %s
|
// RUN: %{compile} | env %{env} %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation.
|
// Do the same run, but now with direct IR generation.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false
|
||||||
// RUN: %{compile} | env %{env} %{run} | FileCheck %s
|
// RUN: %{compile} | env %{env} %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and vectorization.
|
// Do the same run, but now with direct IR generation and vectorization.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
||||||
// RUN: %{compile} | env %{env} %{run} | FileCheck %s
|
// RUN: %{compile} | env %{env} %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and, if available, VLA
|
// Do the same run, but now with direct IR generation and, if available, VLA
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -20,11 +20,11 @@
|
|||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation.
|
// Do the same run, but now with direct IR generation.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false enable-buffer-initialization=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false enable-buffer-initialization=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and vectorization.
|
// Do the same run, but now with direct IR generation and vectorization.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false enable-buffer-initialization=true vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false enable-buffer-initialization=true vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and VLA vectorization.
|
// Do the same run, but now with direct IR generation and VLA vectorization.
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -20,11 +20,11 @@
|
|||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation.
|
// Do the same run, but now with direct IR generation.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with vectorization.
|
// Do the same run, but now with vectorization.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false vl=4
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false vl=4
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with VLA vectorization.
|
// Do the same run, but now with VLA vectorization.
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -20,11 +20,11 @@
|
|||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation.
|
// Do the same run, but now with direct IR generation.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with vectorization.
|
// Do the same run, but now with vectorization.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false vl=4
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false vl=4
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with VLA vectorization.
|
// Do the same run, but now with VLA vectorization.
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -20,11 +20,11 @@
|
|||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation.
|
// Do the same run, but now with direct IR generation.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false enable-buffer-initialization=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false enable-buffer-initialization=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with vectorization.
|
// Do the same run, but now with vectorization.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false vl=4 enable-buffer-initialization=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false vl=4 enable-buffer-initialization=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with VLA vectorization.
|
// Do the same run, but now with VLA vectorization.
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -20,11 +20,11 @@
|
|||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation.
|
// Do the same run, but now with direct IR generation.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false enable-buffer-initialization=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false enable-buffer-initialization=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with vectorization.
|
// Do the same run, but now with vectorization.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false vl=4 enable-buffer-initialization=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false vl=4 enable-buffer-initialization=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with VLA vectorization.
|
// Do the same run, but now with VLA vectorization.
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -20,11 +20,11 @@
|
|||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation.
|
// Do the same run, but now with direct IR generation.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false enable-buffer-initialization=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false enable-buffer-initialization=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with vectorization.
|
// Do the same run, but now with vectorization.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false vl=4 enable-buffer-initialization=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false vl=4 enable-buffer-initialization=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with VLA vectorization.
|
// Do the same run, but now with VLA vectorization.
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -22,11 +22,11 @@
|
|||||||
// RUN: %{compile} | env %{env} %{run} | FileCheck %s
|
// RUN: %{compile} | env %{env} %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation.
|
// Do the same run, but now with direct IR generation.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false enable-buffer-initialization=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false enable-buffer-initialization=true
|
||||||
// RUN: %{compile} | env %{env} %{run} | FileCheck %s
|
// RUN: %{compile} | env %{env} %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with vectorization.
|
// Do the same run, but now with vectorization.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false vl=4 enable-buffer-initialization=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false vl=4 enable-buffer-initialization=true
|
||||||
// RUN: %{compile} | env %{env} %{run} | FileCheck %s
|
// RUN: %{compile} | env %{env} %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with VLA vectorization.
|
// Do the same run, but now with VLA vectorization.
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -21,11 +21,11 @@
|
|||||||
// RUN: %{compile} | env %{env} %{run} | FileCheck %s
|
// RUN: %{compile} | env %{env} %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation.
|
// Do the same run, but now with direct IR generation.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false
|
||||||
// RUN: %{compile} | env %{env} %{run} | FileCheck %s
|
// RUN: %{compile} | env %{env} %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with vectorization.
|
// Do the same run, but now with vectorization.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
||||||
// RUN: %{compile} | env %{env} %{run} | FileCheck %s
|
// RUN: %{compile} | env %{env} %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with VLA vectorization.
|
// Do the same run, but now with VLA vectorization.
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -20,11 +20,11 @@
|
|||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation.
|
// Do the same run, but now with direct IR generation.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with vectorization.
|
// Do the same run, but now with vectorization.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with VLA vectorization.
|
// Do the same run, but now with VLA vectorization.
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -20,11 +20,11 @@
|
|||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation.
|
// Do the same run, but now with direct IR generation.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false enable-buffer-initialization=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false enable-buffer-initialization=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and vectorization.
|
// Do the same run, but now with direct IR generation and vectorization.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false enable-buffer-initialization=true vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false enable-buffer-initialization=true vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation and VLA vectorization.
|
// Do the same run, but now with direct IR generation and VLA vectorization.
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -21,11 +21,11 @@
|
|||||||
// RUN: %{compile} | env %{env} %{run} | FileCheck %s
|
// RUN: %{compile} | env %{env} %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation.
|
// Do the same run, but now with direct IR generation.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false
|
||||||
// RUN: %{compile} | env %{env} %{run} | FileCheck %s
|
// RUN: %{compile} | env %{env} %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with vectorization.
|
// Do the same run, but now with vectorization.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
||||||
// RUN: %{compile} | env %{env} %{run} | FileCheck %s
|
// RUN: %{compile} | env %{env} %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with VLA vectorization.
|
// Do the same run, but now with VLA vectorization.
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -19,11 +19,11 @@
|
|||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation.
|
// Do the same run, but now with direct IR generation.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with vectorization.
|
// Do the same run, but now with vectorization.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with VLA vectorization.
|
// Do the same run, but now with VLA vectorization.
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -21,11 +21,11 @@
|
|||||||
// RUN: %{compile} | env %{env} %{run} | FileCheck %s
|
// RUN: %{compile} | env %{env} %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation.
|
// Do the same run, but now with direct IR generation.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false
|
||||||
// RUN: %{compile} | env %{env} %{run} | FileCheck %s
|
// RUN: %{compile} | env %{env} %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with vectorization.
|
// Do the same run, but now with vectorization.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
||||||
// RUN: %{compile} | env %{env} %{run} | FileCheck %s
|
// RUN: %{compile} | env %{env} %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with VLA vectorization.
|
// Do the same run, but now with VLA vectorization.
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -20,11 +20,11 @@
|
|||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation.
|
// Do the same run, but now with direct IR generation.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with vectorization.
|
// Do the same run, but now with vectorization.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with VLA vectorization.
|
// Do the same run, but now with VLA vectorization.
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -20,11 +20,11 @@
|
|||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation.
|
// Do the same run, but now with direct IR generation.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with vectorization.
|
// Do the same run, but now with vectorization.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with VLA vectorization.
|
// Do the same run, but now with VLA vectorization.
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -20,11 +20,11 @@
|
|||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation.
|
// Do the same run, but now with direct IR generation.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with vectorization.
|
// Do the same run, but now with vectorization.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with VLA vectorization.
|
// Do the same run, but now with VLA vectorization.
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -20,11 +20,11 @@
|
|||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation.
|
// Do the same run, but now with direct IR generation.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with vectorization.
|
// Do the same run, but now with vectorization.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with VLA vectorization.
|
// Do the same run, but now with VLA vectorization.
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -20,11 +20,11 @@
|
|||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation.
|
// Do the same run, but now with direct IR generation.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false enable-buffer-initialization=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false enable-buffer-initialization=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with vectorization.
|
// Do the same run, but now with vectorization.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false enable-buffer-initialization=true vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false enable-buffer-initialization=true vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with VLA vectorization.
|
// Do the same run, but now with VLA vectorization.
|
||||||
@ -74,7 +74,7 @@ module {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// However, even better, the sparse compiler is able to insert such a
|
// However, even better, the sparsifier is able to insert such a
|
||||||
// conversion automatically to resolve a cycle in the iteration graph!
|
// conversion automatically to resolve a cycle in the iteration graph!
|
||||||
//
|
//
|
||||||
func.func @sparse_transpose_auto(%arga: tensor<3x4xf64, #DCSR>)
|
func.func @sparse_transpose_auto(%arga: tensor<3x4xf64, #DCSR>)
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -21,11 +21,11 @@
|
|||||||
// R_U_N: %{compile} | %{run} | FileCheck %s
|
// R_U_N: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation.
|
// Do the same run, but now with direct IR generation.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with vectorization.
|
// Do the same run, but now with vectorization.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with VLA vectorization.
|
// Do the same run, but now with VLA vectorization.
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -20,11 +20,11 @@
|
|||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation.
|
// Do the same run, but now with direct IR generation.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false enable-buffer-initialization=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false enable-buffer-initialization=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with vectorization.
|
// Do the same run, but now with vectorization.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false enable-buffer-initialization=true vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false enable-buffer-initialization=true vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with VLA vectorization.
|
// Do the same run, but now with VLA vectorization.
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
// config could be moved to lit.local.cfg. However, there are downstream users that
|
// config could be moved to lit.local.cfg. However, there are downstream users that
|
||||||
// do not use these LIT config files. Hence why this is kept inline.
|
// do not use these LIT config files. Hence why this is kept inline.
|
||||||
//
|
//
|
||||||
// DEFINE: %{sparse_compiler_opts} = enable-runtime-library=true
|
// DEFINE: %{sparsifier_opts} = enable-runtime-library=true
|
||||||
// DEFINE: %{sparse_compiler_opts_sve} = enable-arm-sve=true %{sparse_compiler_opts}
|
// DEFINE: %{sparsifier_opts_sve} = enable-arm-sve=true %{sparsifier_opts}
|
||||||
// DEFINE: %{compile} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts}"
|
// DEFINE: %{compile} = mlir-opt %s --sparsifier="%{sparsifier_opts}"
|
||||||
// DEFINE: %{compile_sve} = mlir-opt %s --sparse-compiler="%{sparse_compiler_opts_sve}"
|
// DEFINE: %{compile_sve} = mlir-opt %s --sparsifier="%{sparsifier_opts_sve}"
|
||||||
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
// DEFINE: %{run_libs} = -shared-libs=%mlir_c_runner_utils,%mlir_runner_utils
|
||||||
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
// DEFINE: %{run_opts} = -e entry -entry-point-result=void
|
||||||
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
// DEFINE: %{run} = mlir-cpu-runner %{run_opts} %{run_libs}
|
||||||
@ -20,11 +20,11 @@
|
|||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with direct IR generation.
|
// Do the same run, but now with direct IR generation.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false enable-buffer-initialization=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false enable-buffer-initialization=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with vectorization.
|
// Do the same run, but now with vectorization.
|
||||||
// REDEFINE: %{sparse_compiler_opts} = enable-runtime-library=false enable-buffer-initialization=true vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
// REDEFINE: %{sparsifier_opts} = enable-runtime-library=false enable-buffer-initialization=true vl=2 reassociate-fp-reductions=true enable-index-optimizations=true
|
||||||
// RUN: %{compile} | %{run} | FileCheck %s
|
// RUN: %{compile} | %{run} | FileCheck %s
|
||||||
//
|
//
|
||||||
// Do the same run, but now with VLA vectorization.
|
// Do the same run, but now with VLA vectorization.
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
// NOTE: this test requires gpu-sm80 and cusparselt
|
// NOTE: this test requires gpu-sm80 and cusparselt
|
||||||
//
|
//
|
||||||
// DEFINE: %{compile} = mlir-opt %s \
|
// DEFINE: %{compile} = mlir-opt %s \
|
||||||
// DEFINE: --sparse-compiler="enable-gpu-libgen gpu-triple=nvptx64-nvidia-cuda gpu-chip=sm_80 gpu-features=+ptx71 gpu-format=%gpu_compilation_format
|
// DEFINE: --sparsifier="enable-gpu-libgen gpu-triple=nvptx64-nvidia-cuda gpu-chip=sm_80 gpu-features=+ptx71 gpu-format=%gpu_compilation_format
|
||||||
// DEFINE: %{run} = mlir-cpu-runner \
|
// DEFINE: %{run} = mlir-cpu-runner \
|
||||||
// DEFINE: --shared-libs=%mlir_cuda_runtime \
|
// DEFINE: --shared-libs=%mlir_cuda_runtime \
|
||||||
// DEFINE: --shared-libs=%mlir_c_runner_utils \
|
// DEFINE: --shared-libs=%mlir_c_runner_utils \
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
// NOTE: this test requires gpu-sm80 and cusparselt
|
// NOTE: this test requires gpu-sm80 and cusparselt
|
||||||
//
|
//
|
||||||
// DEFINE: %{compile} = mlir-opt %s \
|
// DEFINE: %{compile} = mlir-opt %s \
|
||||||
// DEFINE: --sparse-compiler="enable-gpu-libgen gpu-triple=nvptx64-nvidia-cuda gpu-chip=sm_80 gpu-features=+ptx71 gpu-format=%gpu_compilation_format
|
// DEFINE: --sparsifier="enable-gpu-libgen gpu-triple=nvptx64-nvidia-cuda gpu-chip=sm_80 gpu-features=+ptx71 gpu-format=%gpu_compilation_format
|
||||||
// DEFINE: %{run} = mlir-cpu-runner \
|
// DEFINE: %{run} = mlir-cpu-runner \
|
||||||
// DEFINE: --shared-libs=%mlir_cuda_runtime \
|
// DEFINE: --shared-libs=%mlir_cuda_runtime \
|
||||||
// DEFINE: --shared-libs=%mlir_c_runner_utils \
|
// DEFINE: --shared-libs=%mlir_c_runner_utils \
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user