Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions sycl/include/sycl/ext/intel/fpga_extensions.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

#pragma once
#include <sycl/ext/intel/fpga_device_selector.hpp>
#include <sycl/ext/intel/fpga_loop_fuse.hpp>
#include <sycl/ext/intel/fpga_lsu.hpp>
#include <sycl/ext/intel/fpga_reg.hpp>
#include <sycl/ext/intel/pipes.hpp>
28 changes: 28 additions & 0 deletions sycl/include/sycl/ext/intel/fpga_loop_fuse.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
//==--------- fpga_loop_fuse.hpp --- SYCL FPGA Loop Fuse Extension ---------==//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
#pragma once

__SYCL_INLINE_NAMESPACE(cl) {
namespace sycl {
namespace ext {
namespace intel {

template <int _N = 1, typename _F>
void fpga_loop_fuse [[intel::loop_fuse(_N)]] (_F f) {
f();
}

template <int _N = 1, typename _F>
void fpga_loop_fuse_independent [[intel::loop_fuse_independent(_N)]] (_F f) {
f();
}

} // namespace intel
} // namespace ext
} // namespace sycl
} // __SYCL_INLINE_NAMESPACE(cl)