[PATCH] D129052: [Object] Add ELF section type for offloading objects

Joseph Huber via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jul 3 15:24:24 PDT 2022


jhuber6 created this revision.
jhuber6 added reviewers: jdoerfert, tianshilei1992, MaskRay, yaxunl, tra, saiislam, alexander-shaposhnikov, jhenderson, JonChesterfield.
Herald added subscribers: jsji, StephenFan, pengfei, hiraditya, emaste.
Herald added a project: All.
jhuber6 requested review of this revision.
Herald added subscribers: llvm-commits, sstefan1.
Herald added a project: LLVM.

Currently we use the `.llvm.offloading` section to store device-side
objects inside the host, creating a fat binary. The contents of these
sections is currently determined by the name of the section while it
should ideally be determined by its type. This patch adds the new
`SHT_LLVM_OFFLOADING` section type to the ELF section types. Which
should make it easier to identify this specific data format.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D129052

Files:
  llvm/docs/Extensions.rst
  llvm/include/llvm/BinaryFormat/ELF.h
  llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
  llvm/lib/MC/MCParser/ELFAsmParser.cpp
  llvm/lib/MC/MCSectionELF.cpp
  llvm/lib/Object/ELF.cpp
  llvm/lib/ObjectYAML/ELFYAML.cpp
  llvm/test/CodeGen/X86/offload_sections.ll
  llvm/test/ObjectYAML/ELF/sht-offloading.yaml

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D129052.441983.patch
Type: text/x-patch
Size: 5880 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220703/b2a20b6a/attachment.bin>


More information about the llvm-commits mailing list