[Mlir-commits] [mlir] [MLIR][OpenMP] Use opaque pointers in OpenMP translation tests 2/2 (PR #70138)
Akash Banerjee
llvmlistbot at llvm.org
Wed Oct 25 07:44:08 PDT 2023
================
@@ -263,12 +263,12 @@ llvm.func @_QPopenmp_target_use_dev_addr() {
llvm.func @_QPopenmp_target_use_dev_addr_no_ptr() {
%0 = llvm.mlir.constant(1 : i64) : i64
- %a = llvm.alloca %0 x !llvm.ptr<i32> : (i64) -> !llvm.ptr<i32>
- %map = omp.map_info var_ptr(%a : !llvm.ptr<i32>, i32) map_clauses(tofrom) capture(ByRef) -> !llvm.ptr<i32> {name = ""}
- omp.target_data map_entries(%map : !llvm.ptr<i32>) use_device_addr(%a : !llvm.ptr<i32>) {
- ^bb0(%arg0: !llvm.ptr<i32>):
+ %a = llvm.alloca %0 x i32 : (i64) -> !llvm.ptr
----------------
TIFitis wrote:
This is fine.
I added this test to make sure use_dev_addr works with scalar variables, which I think is preserved.
https://github.com/llvm/llvm-project/pull/70138
More information about the Mlir-commits
mailing list