forked from OSchip/llvm-project
[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:
parent
67a1b7f053
commit
3c9bf77b2e
|
@ -1,3 +1,3 @@
|
|||
add_subdirectory(LLJITDumpObjects)
|
||||
add_subdirectory(LLJITWithObjectCache)
|
||||
add_subdirectory(LLJITWithJITLink)
|
||||
add_subdirectory(LLJITWithCustomObjectLinkingLayer)
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
set(LLVM_LINK_COMPONENTS
|
||||
Core
|
||||
IRReader
|
||||
OrcJIT
|
||||
Support
|
||||
nativecodegen
|
||||
)
|
||||
|
||||
add_llvm_example(LLJITWithCustomObjectLinkingLayer
|
||||
LLJITWithCustomObjectLinkingLayer.cpp
|
||||
)
|
|
@ -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).
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
set(LLVM_LINK_COMPONENTS
|
||||
Core
|
||||
IRReader
|
||||
OrcJIT
|
||||
Support
|
||||
nativecodegen
|
||||
)
|
||||
|
||||
add_llvm_example(LLJITWithJITLink
|
||||
LLJITWithJITLink.cpp
|
||||
)
|
Loading…
Reference in New Issue