[PATCH] D122679: [OpenMP] Use offload bundler when outputting textual formats with new driver

Joseph Huber via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 29 12:22:20 PDT 2022


jhuber6 created this revision.
jhuber6 added reviewers: jdoerfert, tianshilei1992, saiislam.
Herald added subscribers: guansong, yaxunl.
Herald added a project: All.
jhuber6 requested review of this revision.
Herald added subscribers: cfe-commits, sstefan1, MaskRay.
Herald added a project: clang.

The new OpenMP offloading currently driver embeds offloading IR directly
into the host object. This is easier to handle in the tooling, however
makes it difficult to easily inspect the output generated by the
compiler. The old method used the clang-offload-bundler tool put the IR
side-by-side. We should do something similar with the new driver to
prevent the need to use save-temps for simple cases. An example of this
is shown when using a tool like godbolt to share code:
https://godbolt.org/z/eYEcYsbs5.

This doesn't address bundling preprocessor output yet.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D122679

Files:
  clang/include/clang/Driver/Driver.h
  clang/lib/Driver/Driver.cpp
  clang/test/Driver/openmp-offload-gpu.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D122679.418951.patch
Type: text/x-patch
Size: 4780 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220329/5dbfcd25/attachment.bin>


More information about the cfe-commits mailing list