xref: /llvm-project/llvm/include/llvm/ExecutionEngine/Orc/TargetProcess/JITLoaderPerf.h (revision 1fe64fe04687e5c95c33be9abac921cdd2a8e2ff)
1 //===------- JITLoaderPerf.h --- Register profiler objects ------*- C++ -*-===//
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 // Register objects for access by profilers via the perf JIT interface.
10 //
11 //===----------------------------------------------------------------------===//
12 
13 #ifndef LLVM_EXECUTIONENGINE_ORC_TARGETPROCESS_JITLOADERPERF_H
14 #define LLVM_EXECUTIONENGINE_ORC_TARGETPROCESS_JITLOADERPERF_H
15 
16 #include "llvm/ExecutionEngine/Orc/Shared/WrapperFunctionUtils.h"
17 #include "llvm/Support/Compiler.h"
18 #include <cstdint>
19 
20 extern "C" LLVM_ABI llvm::orc::shared::CWrapperFunctionResult
21 llvm_orc_registerJITLoaderPerfImpl(const char *Data, uint64_t Size);
22 
23 extern "C" LLVM_ABI llvm::orc::shared::CWrapperFunctionResult
24 llvm_orc_registerJITLoaderPerfStart(const char *Data, uint64_t Size);
25 
26 extern "C" LLVM_ABI llvm::orc::shared::CWrapperFunctionResult
27 llvm_orc_registerJITLoaderPerfEnd(const char *Data, uint64_t Size);
28 
29 #endif // LLVM_EXECUTIONENGINE_ORC_TARGETPROCESS_JITLOADERPERF_H