1 2 //===------ JITLoaderVTune.h --- Register profiler objects ------*- C++ -*-===// 3 // 4 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 5 // See https://llvm.org/LICENSE.txt for license information. 6 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 // 8 //===----------------------------------------------------------------------===// 9 // 10 // Register objects for access by profilers via the perf JIT interface. 11 // 12 //===----------------------------------------------------------------------===// 13 14 #ifndef LLVM_EXECUTIONENGINE_ORC_TARGETPROCESS_JITLOADERVTUNE_H 15 #define LLVM_EXECUTIONENGINE_ORC_TARGETPROCESS_JITLOADERVTUNE_H 16 17 #include "llvm/ExecutionEngine/Orc/Shared/WrapperFunctionUtils.h" 18 #include <cstdint> 19 20 extern "C" llvm::orc::shared::CWrapperFunctionResult 21 llvm_orc_registerVTuneImpl(const char *Data, uint64_t Size); 22 23 extern "C" llvm::orc::shared::CWrapperFunctionResult 24 llvm_orc_unregisterVTuneImpl(const char *Data, uint64_t Size); 25 26 extern "C" llvm::orc::shared::CWrapperFunctionResult 27 llvm_orc_test_registerVTuneImpl(const char *Data, uint64_t Size); 28 29 #endif // LLVM_EXECUTIONENGINE_ORC_TARGETPROCESS_JITLOADERVTUNE_H 30 31 32