[PATCH] D85974: [ORC] Add a LLJITWithThinLTOSummaries example in OrcV2Examples

Stefan Gränitz via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 14 07:47:55 PDT 2020


sgraenitz created this revision.
sgraenitz added a reviewer: lhames.
Herald added subscribers: dexonsmith, steven_wu, mgrang, hiraditya, inglorion, mgorny.
Herald added a project: LLVM.
sgraenitz requested review of this revision.

The example demonstrates how to use a module summary index file produced for ThinLTO to:

- find the module that defines the main entry point
- find all extra modules that are required for the build

A LIT test runs the example as part of the LLVM test suite [1] and shows how to create a module summary index file.
The code also provides two Error types that can be useful when working with ThinLTO summaries.

[1] if LLVM_BUILD_EXAMPLES=ON and platform is not Windows


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D85974

Files:
  llvm/examples/OrcV2Examples/CMakeLists.txt
  llvm/examples/OrcV2Examples/LLJITWithThinLTOSummaries/CMakeLists.txt
  llvm/examples/OrcV2Examples/LLJITWithThinLTOSummaries/LLJITWithThinLTOSummaries.cpp
  llvm/test/Examples/OrcV2Examples/Inputs/bar-mod.ll
  llvm/test/Examples/OrcV2Examples/Inputs/foo-mod.ll
  llvm/test/Examples/OrcV2Examples/Inputs/main-mod.ll
  llvm/test/Examples/OrcV2Examples/lljit-with-thinlto-summaries.test

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D85974.285651.patch
Type: text/x-patch
Size: 13850 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200814/0d4fe900/attachment.bin>


More information about the llvm-commits mailing list