[PATCH] D145815: [Flang][Driver] Add support for fopenmp-is-device and fembed-offload-object to Flang ToolChain

Andrew Gozillon via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Mar 10 10:55:33 PST 2023


agozillon created this revision.
Herald added subscribers: sunshaoce, guansong, yaxunl.
Herald added a reviewer: sscalpone.
Herald added a reviewer: awarzynski.
Herald added projects: Flang, All.
agozillon requested review of this revision.
Herald added subscribers: cfe-commits, sstefan1, jdoerfert, MaskRay.
Herald added a reviewer: jdoerfert.
Herald added a project: clang.

This allows-fembed-offload-object's and -fopenmp-is-device 
compiler invocation arguments to be passed to the Flang frontend 
during split compilation when offloading in OpenMP.

An example use case is when passing an offload-arch alongside 
-fopenmp to embed device objects compiled for the offload-arch 
within the host architecture.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D145815

Files:
  clang/lib/Driver/ToolChains/Flang.cpp
  clang/lib/Driver/ToolChains/Flang.h
  clang/test/Driver/flang/flang-omp.f90
  flang/test/Driver/omp-frontend-forwarding.f90

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D145815.504219.patch
Type: text/x-patch
Size: 6455 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230310/b30d6eb8/attachment.bin>


More information about the cfe-commits mailing list