[all-commits] [llvm/llvm-project] 4f14b8: [HIP] unbundle bundled preprocessor output

Yaxun (Sam) Liu via All-commits all-commits at lists.llvm.org
Tue Dec 15 19:19:43 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 4f14b80803a458209b6b11daa3ec05076b8c4973
      https://github.com/llvm/llvm-project/commit/4f14b80803a458209b6b11daa3ec05076b8c4973
  Author: Yaxun (Sam) Liu <yaxun.liu at amd.com>
  Date:   2020-12-15 (Tue, 15 Dec 2020)

  Changed paths:
    M clang/lib/Driver/Driver.cpp
    A clang/test/Driver/hip-unbundle-preproc.hip

  Log Message:
  -----------
  [HIP] unbundle bundled preprocessor output

There is a use case that users want to emit preprocessor
output as file and compile the preprocessor output later
with -x hip-cpp-output.

Clang emits bundled preprocessor output when users
compile with -E for combined host/device compilations.
Clang should be able to compile the bundled preprocessor
output with -x hip-cpp-output. Basically clang should
unbundle the bundled preprocessor output and launch
device and host compilation actions.

Currently there is a bug in clang driver causing bundled
preprocessor output not unbundled.

This patch fixes that.

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




More information about the All-commits mailing list