diff options
author | Lang Hames <lhames@gmail.com> | 2019-12-15 20:30:01 -0800 |
---|---|---|
committer | Lang Hames <lhames@gmail.com> | 2019-12-15 21:57:11 -0800 |
commit | 3c9bf77b2e610856e23237746c0ff51a01d1d79f (patch) | |
tree | 64c692a7bffd35d647394e8d8b3be865825af52c /llvm/examples | |
parent | 67a1b7f05379f2686f858fc103debcac0aed3973 (diff) | |
download | bcm5719-llvm-3c9bf77b2e610856e23237746c0ff51a01d1d79f.tar.gz bcm5719-llvm-3c9bf77b2e610856e23237746c0ff51a01d1d79f.zip |
[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.
Diffstat (limited to 'llvm/examples')
-rw-r--r-- | llvm/examples/LLJITExamples/CMakeLists.txt | 2 | ||||
-rw-r--r-- | llvm/examples/LLJITExamples/LLJITWithCustomObjectLinkingLayer/CMakeLists.txt | 11 | ||||
-rw-r--r-- | llvm/examples/LLJITExamples/LLJITWithCustomObjectLinkingLayer/LLJITWithCustomObjectLinkingLayer.cpp (renamed from llvm/examples/LLJITExamples/LLJITWithJITLink/LLJITWithJITLink.cpp) | 8 | ||||
-rw-r--r-- | llvm/examples/LLJITExamples/LLJITWithJITLink/CMakeLists.txt | 11 |
4 files changed, 15 insertions, 17 deletions
diff --git a/llvm/examples/LLJITExamples/CMakeLists.txt b/llvm/examples/LLJITExamples/CMakeLists.txt index 2ae0a5a22ba..3aaaa2c1951 100644 --- a/llvm/examples/LLJITExamples/CMakeLists.txt +++ b/llvm/examples/LLJITExamples/CMakeLists.txt @@ -1,3 +1,3 @@ add_subdirectory(LLJITDumpObjects) add_subdirectory(LLJITWithObjectCache) -add_subdirectory(LLJITWithJITLink) +add_subdirectory(LLJITWithCustomObjectLinkingLayer) diff --git a/llvm/examples/LLJITExamples/LLJITWithCustomObjectLinkingLayer/CMakeLists.txt b/llvm/examples/LLJITExamples/LLJITWithCustomObjectLinkingLayer/CMakeLists.txt new file mode 100644 index 00000000000..2277a8e51ec --- /dev/null +++ b/llvm/examples/LLJITExamples/LLJITWithCustomObjectLinkingLayer/CMakeLists.txt @@ -0,0 +1,11 @@ +set(LLVM_LINK_COMPONENTS + Core + IRReader + OrcJIT + Support + nativecodegen + ) + +add_llvm_example(LLJITWithCustomObjectLinkingLayer + LLJITWithCustomObjectLinkingLayer.cpp + ) diff --git a/llvm/examples/LLJITExamples/LLJITWithJITLink/LLJITWithJITLink.cpp b/llvm/examples/LLJITExamples/LLJITWithCustomObjectLinkingLayer/LLJITWithCustomObjectLinkingLayer.cpp index ff8ccfa983c..04607d743ad 100644 --- a/llvm/examples/LLJITExamples/LLJITWithJITLink/LLJITWithJITLink.cpp +++ b/llvm/examples/LLJITExamples/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). // //===----------------------------------------------------------------------===// diff --git a/llvm/examples/LLJITExamples/LLJITWithJITLink/CMakeLists.txt b/llvm/examples/LLJITExamples/LLJITWithJITLink/CMakeLists.txt deleted file mode 100644 index 5f9bf394a72..00000000000 --- a/llvm/examples/LLJITExamples/LLJITWithJITLink/CMakeLists.txt +++ /dev/null @@ -1,11 +0,0 @@ -set(LLVM_LINK_COMPONENTS - Core - IRReader - OrcJIT - Support - nativecodegen - ) - -add_llvm_example(LLJITWithJITLink - LLJITWithJITLink.cpp - ) |