Files
clang-p2996/mlir/test/Conversion/GPUToROCDL/memref.mlir
Christian Ulmann 4279a642fb [MLIR][GPUToROCDL] Remove typed pointer support (#70908)
This commit removes the support for lowering GPU to ROCDL dialect with
typed pointers. Typed pointers have been deprecated for a while now and
it's planned to soon remove them from the LLVM dialect.

Related PSA:
https://discourse.llvm.org/t/psa-removal-of-typed-pointers-from-the-llvm-dialect/74502
2023-11-01 10:13:06 +01:00

16 lines
536 B
MLIR

// RUN: mlir-opt %s -convert-gpu-to-rocdl -split-input-file | FileCheck %s
// RUN: mlir-opt %s \
// RUN: -convert-gpu-to-rocdl='use-bare-ptr-memref-call-conv=true' \
// RUN: -split-input-file \
// RUN: | FileCheck %s --check-prefix=BARE
gpu.module @memref_conversions {
// CHECK: llvm.func @kern
// CHECK-SAME: (%{{.*}}: !llvm.ptr, %{{.*}}: !llvm.ptr, %{{.*}}: i64, %{{.*}}: i64, %{{.*}}: i64)
// BARE: llvm.func @kern
// BARE-SAME: (%{{.*}}: !llvm.ptr)
gpu.func @kern(%arg0: memref<8xf32>) kernel {
gpu.return
}
}