brintos

brintos / llvm-project-archived public Read only

0
0
Text · 624 B · f810678 Raw
19 lines · plain
1// RUN: mlir-opt %s \2// RUN:  | mlir-opt -gpu-lower-to-nvvm-pipeline="allow-pattern-rollback=0" -debug-only=dump-sass \3// RUN:  2>&1 | FileCheck %s4 5// CHECK: MOV6// CHECK: STG.E 7 8func.func @other_func(%arg0 : f32, %arg1 : memref<?xf32>) {9  %cst = arith.constant 1 : index10  %c0 = arith.constant 0 : index11  %cst2 = memref.dim %arg1, %c0 : memref<?xf32>12  gpu.launch blocks(%bx, %by, %bz) in (%grid_x = %cst, %grid_y = %cst, %grid_z = %cst)13             threads(%tx, %ty, %tz) in (%block_x = %cst2, %block_y = %cst, %block_z = %cst) {14    memref.store %arg0, %arg1[%tx] : memref<?xf32>15    gpu.terminator16  }17  return18}19