[PATCH] D141717: [Clang] Only emit textual LLVM-IR in device only mode

Joseph Huber via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 13 18:26:50 PST 2023


jhuber6 added a comment.

In D141717#4053164 <https://reviews.llvm.org/D141717#4053164>, @tra wrote:

>> So are you suggesting that we complete the whole pipeline? So -S -emit-llvm gives host IR, but the device will go all the way to object?
>
> That would match my expectations and would solve the " it can't be handled by LTO or anything else." issue you've highlighted above. It will give us a valid output in the form user specified. I.e. you will be able to pass the IR further down the compilation pipeline. I.e. if we get it for the host compilation it should be the same IR we'd have captured if we we'd get it from `-save-temps`.

Might work, I'll see how difficult it is to override the phases.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D141717/new/

https://reviews.llvm.org/D141717



More information about the cfe-commits mailing list