[Mlir-commits] [flang] [mlir] [llvm] [flang][mlir][OpenMP] Add support for COPYPRIVATE (PR #73128)

Kiran Chandramohan llvmlistbot at llvm.org
Wed Jan 17 05:13:04 PST 2024


kiranchandramohan wrote:

> The problem is that vla/assumed-shape arrays become `!fir.box<!fir.array<?xTYPE>>` and `!fir.box` is not accepted by the `omp` dialect (at least not by `OpenMP_PointerLikeType`). Modifying `OpenMP.cpp` to also pass boxes to `copyprivate` results in the following error: `'omp.single' op operand #0 must be variadic of OpenMP-compatible variable type, but got '!fir.box<!fir.array<?xi32>>'`
> 
> Is there a way to get the address of a box, to make it become a `!fir.ref<!fir.box<!fir.array<?xTYPE>>>`? `fir.box_addr` returns only the boxed value, without the other parameters needed to perform the copy.

@agozillon is this something that you faced with MapInfo as well?

https://github.com/llvm/llvm-project/pull/73128


More information about the Mlir-commits mailing list