[all-commits] [llvm/llvm-project] 0d9afe: [OpenMP] Adjust phases for AMDGPU offloading for O...

Joseph Huber via All-commits all-commits at lists.llvm.org
Wed Jan 11 08:32:03 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0d9afee3d159f5b7cdac7637808f3e25ff16a536
      https://github.com/llvm/llvm-project/commit/0d9afee3d159f5b7cdac7637808f3e25ff16a536
  Author: Joseph Huber <jhuber6 at vols.utk.edu>
  Date:   2023-01-11 (Wed, 11 Jan 2023)

  Changed paths:
    M clang/lib/Driver/Action.cpp
    M clang/lib/Driver/Driver.cpp
    M clang/test/Driver/amdgpu-openmp-toolchain.c

  Log Message:
  -----------
  [OpenMP] Adjust phases for AMDGPU offloading for OpenMP in save-temps mode

Currently, the behaviour of `-save-temps` changes the generated output
when offloading to AMDGPU. This is because we only have a single phase
and it contains the `-disable-llvm-passes` flags which results in
unoptimized bitcode. We need to make sure we generate another phase that
produces both the optimized and unoptimized bitcode. There used to be a
check that turned these phases into a no-op. But I believe it is more
correct to not generate them this way in the first place. Doing this
requires a bit of a hack, replacing an already generated phase action,
but it should be fine.

Reviewed By: JonChesterfield

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




More information about the All-commits mailing list