diff options
author | Sergio Afonso <safonsof@amd.com> | 2023-10-23 16:40:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-23 17:40:55 +0200 |
commit | 4b15c0ed0a5d5804ecd68bf44efce9277f15a4d7 (patch) | |
tree | 6d53fa96c90a7837103cae7a0e14b4e81e2850b1 /lldb/source/Plugins/ScriptInterpreter/Python/SWIGPythonBridge.h | |
parent | 2326b2ba493a3197e0af0eaaa13a0049e2e282df (diff) | |
download | llvm-4b15c0ed0a5d5804ecd68bf44efce9277f15a4d7.zip llvm-4b15c0ed0a5d5804ecd68bf44efce9277f15a4d7.tar.gz llvm-4b15c0ed0a5d5804ecd68bf44efce9277f15a4d7.tar.bz2 |
[Flang][HLFIR][OpenMP] Fix offloading tests broken by HLFIR (#69457)
This patch makes changes to the early outlining pass to avoid compiler
crashes due to not handling `hlfir.declare` operations correctly. That
pass is intended to eventually be removed (#67319), but in the meantime
this fixes some issues arising in different parts of the OpenMP
offloading compilation process.
The main changes included in this patch are the following:
- Added support for mapped values defined by an `hlfir.declare`
operation. These operations are now kept in outlined target functions,
so that both of their outputs (base and original base) are available to
the corresponding `omp.target`'s map arguments and region.
- Added a fix by @agozillon to prevent unused map clauses from producing
a compiler crash. All these unused mapped variables are added to the
outlined function's inputs.
- Added a fix to the OpenMP translation to MLIR to support integer
arguments to these outlined functions. This enables successfully
compiling and running the tests in
opemp/libomptarget/test/offloading/fortran using HLFIR.
Co-authored-by: agozillon <Andrew.Gozillon@amd.com>
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/SWIGPythonBridge.h')
0 files changed, 0 insertions, 0 deletions