[PATCH] D138862: [Clang] Do not set offload kind in a freestanding build

Joseph Huber via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Dec 5 08:53:52 PST 2022


jhuber6 added a comment.

In D138862#3955581 <https://reviews.llvm.org/D138862#3955581>, @tra wrote:

> OK. So, we do need a flag, at least for now. I think we'll need a new one, because `-freestanding` will likely do a lot of things we don't actually want on the host side.
> How about `--offload-generic`  or `--[no-]offload-runtime`.

I figured this was fine since we can specify it only for the device if we use `-Xopenmp-target=`. But I suppose we are overloading some behavior of freestanding here, I'm not exactly sure what `-ffreestanding` implies.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D138862



More information about the cfe-commits mailing list