[all-commits] [llvm/llvm-project] 1054a7: [Clang] Change host/device only compilation to a d...

Joseph Huber via All-commits all-commits at lists.llvm.org
Mon Jun 13 08:34:19 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1054a7318788beb99536d84b34f84fccf2289769
  Author: Joseph Huber <jhuber6 at vols.utk.edu>
  Date:   2022-06-13 (Mon, 13 Jun 2022)

  Changed paths:
    M clang/include/clang/Driver/Driver.h
    M clang/lib/Driver/Driver.cpp
    R clang/test/Driver/cuda-unused-arg-warning.cu

  Log Message:
  [Clang] Change host/device only compilation to a driver mode

We use the flags `--offload-host-only` and `--offload-device-only` to
change the driver's code generation for offloading programs. These are
currently parsed out independently in many places. This patch simply
refactors this to work as a mode for the Driver. This stopped us from
emitting warnings if unused because it's always used now, but I don't
think this is a great loss.

Reviewed By: tra

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

More information about the All-commits mailing list