[all-commits] [llvm/llvm-project] bde13a: [HIP] Fix job action offloading kind for mixed HIP...

Yaxun (Sam) Liu via All-commits all-commits at lists.llvm.org
Fri Mar 4 12:34:49 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bde13a8102baef4d79723064e6bd27cd39124d91
      https://github.com/llvm/llvm-project/commit/bde13a8102baef4d79723064e6bd27cd39124d91
  Author: Yaxun (Sam) Liu <yaxun.liu at amd.com>
  Date:   2022-03-04 (Fri, 04 Mar 2022)

  Changed paths:
    M clang/lib/Driver/Driver.cpp
    A clang/test/Driver/Inputs/empty.cpp
    A clang/test/Driver/Inputs/empty.hip
    M clang/test/Driver/hip-phases.hip

  Log Message:
  -----------
  [HIP] Fix job action offloading kind for mixed HIP/C++ compilation

When both HIP and C++ programs are input files to clang
with -c, clang treats C++ programs as HIP programs,
which is incorrect.

This is due to action builder does not set correct
offloading kind for job actions for C++ programs.

Reviewed by: Artem Belevich

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




More information about the All-commits mailing list