[PATCH] D149019: [Clang] Accept and forward `-fconvergent-functions` in the driver

Joseph Huber via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Apr 23 06:50:54 PDT 2023


jhuber6 created this revision.
jhuber6 added reviewers: JonChesterfield, tra, yaxunl, tianshilei1992, MaskRay, jdoerfert.
Herald added subscribers: kosarev, abrachet, phosek, kerbowa, s.egerton, simoncook, asb, jvesely.
Herald added a project: All.
jhuber6 requested review of this revision.
Herald added subscribers: cfe-commits, pcwang-thead.
Herald added a project: clang.

Currently the `-fconvergent-functions` option is primarily used by GPU
toolchains to enforce convergent operations in line with the semantics.
This option previously was only supported via `-Xclang` and would show
up as unused if passed to the driver. This patch allows the driver to
forward it. This is mostly useful for users wishing to target GPU
toolchains directly via `--target=` without an offloading runtime.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D149019

Files:
  clang/include/clang/Driver/Options.td
  clang/lib/Driver/ToolChains/Clang.cpp
  clang/test/Driver/amdgpu-toolchain.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D149019.516164.patch
Type: text/x-patch
Size: 34999 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230423/a0856578/attachment-0001.bin>


More information about the cfe-commits mailing list