1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 12:12:47 +01:00

[examples] Rename LLJITWithJITLink to LLJITWithCustomObjectLinkingLayer.

LLJIT now uses JITLink/ObjectLinkingLayer by default where available, so
these steps aren't required to use it. The tutorial is still useful though:
Clients can use it to test altervative linking layer implementations (e.g.
handing off to the system linker) or to test implementations of JITLink that
are still under development.
This commit is contained in:
Lang Hames 2019-12-15 20:30:01 -08:00
parent d8537b7cc4
commit ac013ec9a1
4 changed files with 15 additions and 17 deletions

View File

@ -1,3 +1,3 @@
add_subdirectory(LLJITDumpObjects)
add_subdirectory(LLJITWithObjectCache)
add_subdirectory(LLJITWithJITLink)
add_subdirectory(LLJITWithCustomObjectLinkingLayer)

View File

@ -0,0 +1,11 @@
set(LLVM_LINK_COMPONENTS
Core
IRReader
OrcJIT
Support
nativecodegen
)
add_llvm_example(LLJITWithCustomObjectLinkingLayer
LLJITWithCustomObjectLinkingLayer.cpp
)

View File

@ -1,4 +1,4 @@
//===-- LLJITWithJITLink.cpp - Configure LLJIT to use ObjectLinkingLayer --===//
//===--------------- LLJITWithCustomObjectLinkingLayer.cpp ----------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
@ -6,10 +6,8 @@
//
//===----------------------------------------------------------------------===//
//
// This file shows how to switch LLJIT to use ObjectLinkingLayer (which is
// backed by JITLink) rather than RTDyldObjectLinkingLayer (which is backed by
// RuntimeDyld). Using JITLink as the underlying allocator enables use of
// small code model in JIT'd code.
// This file shows how to switch LLJIT to use a custom object linking layer (we
// use ObjectLinkingLayer, which is backed by JITLink, as an example).
//
//===----------------------------------------------------------------------===//

View File

@ -1,11 +0,0 @@
set(LLVM_LINK_COMPONENTS
Core
IRReader
OrcJIT
Support
nativecodegen
)
add_llvm_example(LLJITWithJITLink
LLJITWithJITLink.cpp
)