| 1 | //===- reoptimize.cpp -----------------------------------------------------===// |
|---|---|
| 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 file contains code required to load the rest of the ELF-on-*IX runtime. |
| 10 | // |
| 11 | //===----------------------------------------------------------------------===// |
| 12 | |
| 13 | #include "jit_dispatch.h" |
| 14 | #include "wrapper_function_utils.h" |
| 15 | |
| 16 | using namespace orc_rt; |
| 17 | |
| 18 | ORC_RT_JIT_DISPATCH_TAG(__orc_rt_reoptimize_tag) |
| 19 | |
| 20 | ORC_RT_INTERFACE void __orc_rt_reoptimize(uint64_t MUID, uint32_t CurVersion) { |
| 21 | if (auto Err = WrapperFunction<void(uint64_t, uint32_t)>::call( |
| 22 | Dispatch: JITDispatch(&__orc_rt_reoptimize_tag), Args: MUID, Args: CurVersion)) { |
| 23 | __orc_rt_log_error(ErrMsg: toString(Err: std::move(t&: Err)).c_str()); |
| 24 | // FIXME: Should we abort here? Depending on the error we can't guarantee |
| 25 | // that the JIT'd code is in a consistent state. |
| 26 | } |
| 27 | } |
| 28 |