[all-commits] [llvm/llvm-project] 456ffd: [OpenMP] Ensure offloading sections do not have SH...

Joseph Huber via All-commits all-commits at lists.llvm.org
Mon Feb 21 18:35:34 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 456ffd7a225f908ca61d747be21439f6182ea40c
      https://github.com/llvm/llvm-project/commit/456ffd7a225f908ca61d747be21439f6182ea40c
  Author: Joseph Huber <jhuber6 at vols.utk.edu>
  Date:   2022-02-21 (Mon, 21 Feb 2022)

  Changed paths:
    M llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
    A llvm/test/CodeGen/X86/offload_sections.ll

  Log Message:
  -----------
  [OpenMP] Ensure offloading sections do not have SHF_ALLOC flag

We use offloading sections in the new Clang driver scheme to embed
device code into the host. We later use these sections to link the
device image, after which point they are completely unused and should
not be loaded into memory if they are still in the executable.

Reviewed By: JonChesterfield

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




More information about the All-commits mailing list