brintos

brintos / llvm-project-archived public Read only

0
0
Text · 733 B · b0f7c62 Raw
15 lines · plain
1// RUN: mlir-opt %s --sparse-tensor-codegen --sparse-storage-specifier-to-llvm | FileCheck %s2 3#SparseVector = #sparse_tensor.encoding<{ map = (d0) -> (d0 : compressed) }>4 5// CHECK-LABEL: func @sparse_nop(6//  CHECK-SAME: %[[A0:.*0]]: memref<?xindex>,7//  CHECK-SAME: %[[A1:.*1]]: memref<?xindex>,8//  CHECK-SAME: %[[A2:.*2]]: memref<?xf64>,9//  CHECK-SAME: %[[A3:.*3]]: !llvm.struct<(array<1 x i64>, array<3 x i64>)>)10//       CHECK: return %[[A0]], %[[A1]], %[[A2]], %[[A3]] :11//  CHECK-SAME: memref<?xindex>, memref<?xindex>, memref<?xf64>, !llvm.struct<(array<1 x i64>, array<3 x i64>)>12func.func @sparse_nop(%arg0: tensor<?xf64, #SparseVector>) -> tensor<?xf64, #SparseVector> {13  return %arg0 : tensor<?xf64, #SparseVector>14}15