DPC++ Runtime
Runtime libraries for oneAPI DPC++
fpga_utils.hpp
Go to the documentation of this file.
1
//==------------- fpga_utils.hpp --- SYCL FPGA Reg Extensions --------------==//
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
#pragma once
10
11
#include <
sycl/detail/defines.hpp
>
12
#include <
sycl/detail/stl_type_traits.hpp
>
13
14
namespace
sycl
{
15
inline
namespace
_V1 {
16
namespace
ext::intel {
17
18
template
<
template
<
int
32_t>
class
_Type,
class
_T>
19
struct
_MatchType
: std::is_same<_Type<_T::value>, _T> {};
20
21
template
<
template
<
int
32_t>
class
_Type,
class
... _T>
struct
_GetValue
{
22
static
constexpr
auto
value
= _Type<0>::default_value;
23
};
24
25
template
<
template
<
int
32_t>
class
_Type,
class
_T1,
class
... _T>
26
struct
_GetValue
<_Type, _T1, _T...> {
27
static
constexpr
auto
value
=
28
std::conditional_t<_MatchType<_Type, _T1>::value, _T1,
29
_GetValue
<_Type, _T...>>
::value
;
30
};
31
}
// namespace ext::intel
32
33
}
// namespace _V1
34
}
// namespace sycl
defines.hpp
sycl
Definition:
access.hpp:18
stl_type_traits.hpp
sycl::_V1::ext::intel::_GetValue
Definition:
fpga_utils.hpp:21
sycl::_V1::ext::intel::_GetValue::value
static constexpr auto value
Definition:
fpga_utils.hpp:22
sycl::_V1::ext::intel::_MatchType
Definition:
fpga_utils.hpp:19
include
sycl
ext
intel
fpga_utils.hpp
Generated by
1.9.1