Mercurial > hg > CbC > CbC_llvm
comparison tools/lli/RemoteJITUtils.h @ 148:63bd29f05246
merged
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 14 Aug 2019 19:46:37 +0900 |
parents | c2174574ed3a |
children |
comparison
equal
deleted
inserted
replaced
146:3fc4d5c3e21e | 148:63bd29f05246 |
---|---|
1 //===-- RemoteJITUtils.h - Utilities for remote-JITing with LLI -*- C++ -*-===// | 1 //===-- RemoteJITUtils.h - Utilities for remote-JITing with LLI -*- C++ -*-===// |
2 // | 2 // |
3 // The LLVM Compiler Infrastructure | 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 // This file is distributed under the University of Illinois Open Source | 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
6 // License. See LICENSE.TXT for details. | |
7 // | 6 // |
8 //===----------------------------------------------------------------------===// | 7 //===----------------------------------------------------------------------===// |
9 // | 8 // |
10 // Utilities for remote-JITing with LLI. | 9 // Utilities for remote-JITing with LLI. |
11 // | 10 // |
74 // launch the remote process (see lli.cpp) and return a channel to it. | 73 // launch the remote process (see lli.cpp) and return a channel to it. |
75 std::unique_ptr<FDRawChannel> launchRemote(); | 74 std::unique_ptr<FDRawChannel> launchRemote(); |
76 | 75 |
77 namespace llvm { | 76 namespace llvm { |
78 | 77 |
79 // ForwardingMM - Adapter to connect MCJIT to Orc's Remote8 | 78 // ForwardingMM - Adapter to connect MCJIT to Orc's Remote |
80 // memory manager. | 79 // memory manager. |
81 class ForwardingMemoryManager : public llvm::RTDyldMemoryManager { | 80 class ForwardingMemoryManager : public llvm::RTDyldMemoryManager { |
82 public: | 81 public: |
83 void setMemMgr(std::unique_ptr<RuntimeDyld::MemoryManager> MemMgr) { | 82 void setMemMgr(std::unique_ptr<RuntimeDyld::MemoryManager> MemMgr) { |
84 this->MemMgr = std::move(MemMgr); | 83 this->MemMgr = std::move(MemMgr); |