[all-commits] [llvm/llvm-project] b653b4: [OpenMP] Don't build the offloading driver without...

Joseph Huber via All-commits all-commits at lists.llvm.org
Mon May 16 15:19:17 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b653b409ff44b09ade04bb6e579f5f9790424611
      https://github.com/llvm/llvm-project/commit/b653b409ff44b09ade04bb6e579f5f9790424611
  Author: Joseph Huber <jhuber6 at vols.utk.edu>
  Date:   2022-05-16 (Mon, 16 May 2022)

  Changed paths:
    M clang/lib/Driver/Driver.cpp
    M clang/test/Driver/openmp-offload-gpu-new.c

  Log Message:
  -----------
  [OpenMP] Don't build the offloading driver without a source input

The Clang driver additional stages to build a complete offloading
program for applications using CUDA or OpenMP offloading. This normally
requires either a source file input or a valid object file to be
handled. This would cause problems when trying to compile an assembly or
LLVM IR file through clang with flags that would enable offloading. This
patch simply adds a check to prevent the offloading toolchain from being
used if we don't have a valid source file.

Reviewed By: jdoerfert

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




More information about the All-commits mailing list