Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

[Flang][OpenMP][OMPIRBuilder] Add lowering of TargetOp for device codegen #209

Conversation

skatrak
Copy link
Contributor

@skatrak skatrak commented Apr 28, 2023

No description provided.

…egen

This patch adds support in the `OpenMPIRBuilder` for generating working
device code for OpenMP target regions. It generates and handles the
result of a call to `__kmpc_target_init()` at the beginning of the
function resulting from outlining each target region, and it also
generates the matching `__kmpc_target_deinit()` call before returning.

It relies on the implementation of target region outlining for host
codegen to handle the production of the new function and the lowering of
its body based on the contents of the associated target region.

Depends on D147172

Differential Revision: https://reviews.llvm.org/D147940
@skatrak skatrak self-assigned this Apr 28, 2023
@skatrak
Copy link
Contributor Author

skatrak commented May 18, 2023

Upstreamed

@skatrak skatrak closed this May 18, 2023
@skatrak skatrak deleted the skatrak/atd-target-outline branch September 11, 2023 09:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
1 participant