[PATCH] D85740: Universal MachO: support LLVM IR objects

Adrien Guinet via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 11 08:43:00 PDT 2020


aguinet created this revision.
aguinet added reviewers: alexshap, smeenai, enderby, llvm-commits.
Herald added subscribers: dexonsmith, hiraditya, mgorny.
Herald added a project: LLVM.
aguinet requested review of this revision.

This adds support for LLVM IR "objects" within universal MachO, as this can append when using LTO when compiling iOS/tvOS applications (or any universal MachO object compiled with clang).

This also improve llvm-lipo in order to support these LLVM IR objects. llvm-lipo is know able to extract, create and dump information for universal MachO with LLVM IR bitcode objects.

One strategy to test this properly would require implementing LLVM IR description within the ObjectYAML library. Before doing so, I would like to here about other potential strategy!


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D85740

Files:
  llvm/include/llvm/Object/Binary.h
  llvm/include/llvm/Object/MachOUniversal.h
  llvm/lib/Object/Binary.cpp
  llvm/lib/Object/MachOUniversal.cpp
  llvm/tools/llvm-lipo/CMakeLists.txt
  llvm/tools/llvm-lipo/LLVMBuild.txt
  llvm/tools/llvm-lipo/llvm-lipo.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D85740.284752.patch
Type: text/x-patch
Size: 15335 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200811/3122cd61/attachment.bin>


More information about the llvm-commits mailing list