[all-commits] [llvm/llvm-project] f66576: [Clang] Accept and forward `-fconvergent-functions...

Joseph Huber via All-commits all-commits at lists.llvm.org
Mon Apr 24 07:11:38 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f6657601629005cc9e488f159e310ae4008a25ea
      https://github.com/llvm/llvm-project/commit/f6657601629005cc9e488f159e310ae4008a25ea
  Author: Joseph Huber <jhuber6 at vols.utk.edu>
  Date:   2023-04-24 (Mon, 24 Apr 2023)

  Changed paths:
    M clang/include/clang/Driver/Options.td
    M clang/lib/Driver/ToolChains/Clang.cpp
    M clang/lib/Frontend/CompilerInvocation.cpp
    M clang/test/Driver/amdgpu-toolchain.c

  Log Message:
  -----------
  [Clang] Accept and forward `-fconvergent-functions` in the driver

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.

Reviewed By: JonChesterfield, MaskRay

Differential Revision: https://reviews.llvm.org/D149019




More information about the All-commits mailing list