1 // RUN: mlir-opt -pass-pipeline="builtin.module(gpu.module(lower-affine))" %s | FileCheck %s
3 #map0gpufunc = affine_map<(d0) -> (d0)>
5 gpu.func @foo(%arg0 : index, %arg1 : memref<?xf32>) -> f32 {
6 %0 = affine.apply #map0gpufunc(%arg0)
7 %1 = memref.load %arg1[%0] : memref<?xf32>
12 // CHECK-SAME: %[[ARG0:.*]]: index
13 // CHECK-NOT: affine.apply
14 // CHECK: memref.load %{{.*}}[%[[ARG0]]]