DPC++ Runtime
Runtime libraries for oneAPI DPC++
fpga_loop_fuse.hpp
Go to the documentation of this file.
1 //==--------- fpga_loop_fuse.hpp --- SYCL FPGA Loop Fuse Extension ---------==//
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 #pragma once
9 
10 namespace sycl {
11 inline namespace _V1 {
12 namespace ext {
13 namespace intel {
14 
15 template <int _N = 1, typename _F>
16 void fpga_loop_fuse [[intel::loop_fuse(_N)]] (_F f) {
17  f();
18 }
19 
20 template <int _N = 1, typename _F>
21 void fpga_loop_fuse_independent [[intel::loop_fuse_independent(_N)]] (_F f) {
22  f();
23 }
24 
25 } // namespace intel
26 } // namespace ext
27 } // namespace _V1
28 } // namespace sycl
void fpga_loop_fuse_independent(_F f)
Definition: access.hpp:18