Skip to content

Commit 3c9bf77

Browse files
committed
[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.
1 parent 67a1b7f commit 3c9bf77

File tree

4 files changed

+15
-17
lines changed

4 files changed

+15
-17
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
add_subdirectory(LLJITDumpObjects)
22
add_subdirectory(LLJITWithObjectCache)
3-
add_subdirectory(LLJITWithJITLink)
3+
add_subdirectory(LLJITWithCustomObjectLinkingLayer)
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
set(LLVM_LINK_COMPONENTS
2+
Core
3+
IRReader
4+
OrcJIT
5+
Support
6+
nativecodegen
7+
)
8+
9+
add_llvm_example(LLJITWithCustomObjectLinkingLayer
10+
LLJITWithCustomObjectLinkingLayer.cpp
11+
)

llvm/examples/LLJITExamples/LLJITWithJITLink/LLJITWithJITLink.cpp renamed to llvm/examples/LLJITExamples/LLJITWithCustomObjectLinkingLayer/LLJITWithCustomObjectLinkingLayer.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
1-
//===-- LLJITWithJITLink.cpp - Configure LLJIT to use ObjectLinkingLayer --===//
1+
//===--------------- LLJITWithCustomObjectLinkingLayer.cpp ----------------===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.
55
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
66
//
77
//===----------------------------------------------------------------------===//
88
//
9-
// This file shows how to switch LLJIT to use ObjectLinkingLayer (which is
10-
// backed by JITLink) rather than RTDyldObjectLinkingLayer (which is backed by
11-
// RuntimeDyld). Using JITLink as the underlying allocator enables use of
12-
// small code model in JIT'd code.
9+
// This file shows how to switch LLJIT to use a custom object linking layer (we
10+
// use ObjectLinkingLayer, which is backed by JITLink, as an example).
1311
//
1412
//===----------------------------------------------------------------------===//
1513

llvm/examples/LLJITExamples/LLJITWithJITLink/CMakeLists.txt

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)