[clang-tidy][NFC]remove deps of clang in clang tidy test (#116588)
[llvm-project.git] / offload / DeviceRTL / src / Profiling.cpp
blobbb3caaadcc03dd2ecf0f91d23071df8ba6367f2e
1 //===------- Profiling.cpp ---------------------------------------- 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 //===----------------------------------------------------------------------===//
9 #include "Profiling.h"
11 #pragma omp begin declare target device_type(nohost)
13 extern "C" {
15 // Provides empty implementations for certain functions in compiler-rt
16 // that are emitted by the PGO instrumentation.
17 void __llvm_profile_register_function(void *Ptr) {}
18 void __llvm_profile_register_names_function(void *Ptr, long int I) {}
19 void __llvm_profile_instrument_memop(long int I, void *Ptr, int I2) {}
22 #pragma omp end declare target