Changeset View
Changeset View
Standalone View
Standalone View
openmp/libomptarget/DeviceRTL/src/Misc.cpp
//===--------- Misc.cpp - OpenMP device misc interfaces ----------- C++ -*-===// | //===--------- Misc.cpp - OpenMP device misc interfaces ----------- C++ -*-===// | ||||
// | // | ||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | ||||
// See https://llvm.org/LICENSE.txt for license information. | // See https://llvm.org/LICENSE.txt for license information. | ||||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||||
// | // | ||||
//===----------------------------------------------------------------------===// | //===----------------------------------------------------------------------===// | ||||
// | // | ||||
// | // | ||||
//===----------------------------------------------------------------------===// | //===----------------------------------------------------------------------===// | ||||
#include "Types.h" | #include "Types.h" | ||||
#include "Debug.h" | |||||
#pragma omp declare target | #pragma omp declare target | ||||
namespace _OMP { | namespace _OMP { | ||||
namespace impl { | namespace impl { | ||||
/// AMDGCN Implementation | /// AMDGCN Implementation | ||||
/// | /// | ||||
///{ | ///{ | ||||
Show All 33 Lines | |||||
} // namespace impl | } // namespace impl | ||||
} // namespace _OMP | } // namespace _OMP | ||||
/// Interfaces | /// Interfaces | ||||
/// | /// | ||||
///{ | ///{ | ||||
extern "C" { | extern "C" { | ||||
int32_t __kmpc_cancellationpoint(IdentTy *, int32_t, int32_t) { return 0; } | int32_t __kmpc_cancellationpoint(IdentTy *, int32_t, int32_t) { | ||||
FunctionTracingRAII(); | |||||
return 0; | |||||
} | |||||
int32_t __kmpc_cancel(IdentTy *, int32_t, int32_t) { return 0; } | int32_t __kmpc_cancel(IdentTy *, int32_t, int32_t) { | ||||
FunctionTracingRAII(); | |||||
return 0; | |||||
} | |||||
double omp_get_wtick(void) { return _OMP::impl::getWTick(); } | double omp_get_wtick(void) { return _OMP::impl::getWTick(); } | ||||
double omp_get_wtime(void) { return _OMP::impl::getWTime(); } | double omp_get_wtime(void) { return _OMP::impl::getWTime(); } | ||||
} | } | ||||
///} | ///} | ||||
#pragma omp end declare target | #pragma omp end declare target |