File tree 16 files changed +45
-19
lines changed
examples/Kaleidoscope/BuildingAJIT/Chapter5
include/llvm/ExecutionEngine/Orc
unittests/ExecutionEngine/Orc
16 files changed +45
-19
lines changed Original file line number Diff line number Diff line change 13
13
#ifndef LLVM_TOOLS_LLI_REMOTEJITUTILS_H
14
14
#define LLVM_TOOLS_LLI_REMOTEJITUTILS_H
15
15
16
- #include " llvm/ExecutionEngine/Orc/RawByteChannel.h"
16
+ #include " llvm/ExecutionEngine/Orc/RPC/ RawByteChannel.h"
17
17
#include " llvm/Support/Error.h"
18
18
#include < cassert>
19
19
#include < cerrno>
Original file line number Diff line number Diff line change 16
16
#define LLVM_EXECUTIONENGINE_ORC_ORCREMOTETARGETRPCAPI_H
17
17
18
18
#include " llvm/ExecutionEngine/JITSymbol.h"
19
- #include " llvm/ExecutionEngine/Orc/RPCUtils.h"
20
- #include " llvm/ExecutionEngine/Orc/RawByteChannel.h"
19
+ #include " llvm/ExecutionEngine/Orc/RPC/ RPCUtils.h"
20
+ #include " llvm/ExecutionEngine/Orc/RPC/ RawByteChannel.h"
21
21
22
22
namespace llvm {
23
23
namespace orc {
Original file line number Diff line number Diff line change 1
- // ===- llvm/ExecutionEngine/Orc/RPCSerialization.h --------------*- C++ -*-===//
1
+ // ===- llvm/ExecutionEngine/Orc/RPC/ RPCSerialization.h --------------*- C++ -*-===//
2
2
//
3
3
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
4
// See https://llvm.org/LICENSE.txt for license information.
9
9
#ifndef LLVM_EXECUTIONENGINE_ORC_RPCSERIALIZATION_H
10
10
#define LLVM_EXECUTIONENGINE_ORC_RPCSERIALIZATION_H
11
11
12
- #include " OrcError.h"
12
+ #include " llvm/ExecutionEngine/Orc/ OrcError.h"
13
13
#include " llvm/Support/thread.h"
14
14
#include < map>
15
15
#include < mutex>
Original file line number Diff line number Diff line change 23
23
24
24
#include " llvm/ADT/STLExtras.h"
25
25
#include " llvm/ExecutionEngine/Orc/OrcError.h"
26
- #include " llvm/ExecutionEngine/Orc/RPCSerialization.h"
26
+ #include " llvm/ExecutionEngine/Orc/RPC/ RPCSerialization.h"
27
27
#include " llvm/Support/MSVCErrorWorkarounds.h"
28
28
29
29
#include < future>
Original file line number Diff line number Diff line change 1
- // ===- llvm/ExecutionEngine/Orc/RawByteChannel.h ----------------*- C++ -*-===//
1
+ // ===- llvm/ExecutionEngine/Orc/RPC/ RawByteChannel.h ----------------*- C++ -*-===//
2
2
//
3
3
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
4
// See https://llvm.org/LICENSE.txt for license information.
10
10
#define LLVM_EXECUTIONENGINE_ORC_RAWBYTECHANNEL_H
11
11
12
12
#include " llvm/ADT/StringRef.h"
13
- #include " llvm/ExecutionEngine/Orc/RPCSerialization.h"
13
+ #include " llvm/ExecutionEngine/Orc/RPC/ RPCSerialization.h"
14
14
#include " llvm/Support/Endian.h"
15
15
#include " llvm/Support/Error.h"
16
16
#include < cstdint>
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ endif()
21
21
add_subdirectory (Interpreter)
22
22
add_subdirectory (JITLink)
23
23
add_subdirectory (MCJIT)
24
+ add_subdirectory (OrcError)
24
25
add_subdirectory (Orc)
25
26
add_subdirectory (RuntimeDyld)
26
27
Original file line number Diff line number Diff line change 16
16
17
17
[common]
18
18
subdirectories = Interpreter MCJIT JITLink RuntimeDyld IntelJITEvents
19
- OProfileJIT Orc PerfJITEvents
19
+ OProfileJIT Orc OrcError PerfJITEvents
20
20
21
21
[component_0]
22
22
type = Library
Original file line number Diff line number Diff line change @@ -16,9 +16,7 @@ add_llvm_library(LLVMOrcJIT
16
16
ObjectTransformLayer.cpp
17
17
OrcABISupport.cpp
18
18
OrcCBindings.cpp
19
- OrcError.cpp
20
19
OrcMCJITReplacement.cpp
21
- RPCUtils.cpp
22
20
RTDyldObjectLinkingLayer.cpp
23
21
ThreadSafeModule.cpp
24
22
Speculation.cpp
Original file line number Diff line number Diff line change 18
18
type = Library
19
19
name = OrcJIT
20
20
parent = ExecutionEngine
21
- required_libraries = Core ExecutionEngine JITLink Object MC Passes RuntimeDyld
22
- Support Target TransformUtils
21
+ required_libraries = Core ExecutionEngine JITLink Object OrcError MC Passes
22
+ RuntimeDyld Support Target TransformUtils
Original file line number Diff line number Diff line change
1
+ add_llvm_library(LLVMOrcError
2
+ OrcError.cpp
3
+ RPCError.cpp
4
+ ADDITIONAL_HEADER_DIRS
5
+ ${LLVM_MAIN_INCLUDE_DIR} /llvm/ExecutionEngine/Orc
6
+ )
Original file line number Diff line number Diff line change
1
+ ;===- ./lib/ExecutionEngine/OrcError/LLVMBuild.txt -------------*- Conf -*--===;
2
+ ;
3
+ ; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
+ ; See https://llvm.org/LICENSE.txt for license information.
5
+ ; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
+ ;
7
+ ;===------------------------------------------------------------------------===;
8
+ ;
9
+ ; This is an LLVMBuild description file for the components in this subdirectory.
10
+ ;
11
+ ; For more information on the LLVMBuild system, please see:
12
+ ;
13
+ ; http://llvm.org/docs/LLVMBuild.html
14
+ ;
15
+ ;===------------------------------------------------------------------------===;
16
+
17
+ [component_0]
18
+ type = Library
19
+ name = OrcError
20
+ parent = ExecutionEngine
21
+ required_libraries = Support
File renamed without changes.
Original file line number Diff line number Diff line change 1
- // ===--------------- RPCUtils .cpp - RPCUtils implementation ---------------===//
1
+ // ===--------------- RPCError .cpp - RPCERror implementation ---------------===//
2
2
//
3
3
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
4
// See https://llvm.org/LICENSE.txt for license information.
5
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
6
//
7
7
// ===----------------------------------------------------------------------===//
8
8
//
9
- // RPCUtils implementation .
9
+ // RPC Error type implmentations .
10
10
//
11
11
// ===----------------------------------------------------------------------===//
12
12
13
- #include " llvm/ExecutionEngine/Orc/RPCUtils.h"
13
+ #include " llvm/ExecutionEngine/Orc/RPC/ RPCUtils.h"
14
14
15
15
char llvm::orc::rpc::RPCFatalError::ID = 0 ;
16
16
char llvm::orc::rpc::ConnectionClosed::ID = 0 ;
Original file line number Diff line number Diff line change 13
13
#ifndef LLVM_TOOLS_LLI_REMOTEJITUTILS_H
14
14
#define LLVM_TOOLS_LLI_REMOTEJITUTILS_H
15
15
16
- #include " llvm/ExecutionEngine/Orc/RawByteChannel.h"
16
+ #include " llvm/ExecutionEngine/Orc/RPC/ RawByteChannel.h"
17
17
#include " llvm/ExecutionEngine/RTDyldMemoryManager.h"
18
18
#include < mutex>
19
19
Original file line number Diff line number Diff line change 9
9
#ifndef LLVM_UNITTESTS_EXECUTIONENGINE_ORC_QUEUECHANNEL_H
10
10
#define LLVM_UNITTESTS_EXECUTIONENGINE_ORC_QUEUECHANNEL_H
11
11
12
- #include " llvm/ExecutionEngine/Orc/RawByteChannel.h"
12
+ #include " llvm/ExecutionEngine/Orc/RPC/ RawByteChannel.h"
13
13
#include " llvm/Support/Error.h"
14
14
15
15
#include < atomic>
Original file line number Diff line number Diff line change 6
6
//
7
7
// ===----------------------------------------------------------------------===//
8
8
9
- #include " llvm/ExecutionEngine/Orc/RPCUtils.h"
9
+ #include " llvm/ExecutionEngine/Orc/RPC/ RPCUtils.h"
10
10
#include " QueueChannel.h"
11
11
#include " gtest/gtest.h"
12
12
You can’t perform that action at this time.
0 commit comments