-
Notifications
You must be signed in to change notification settings - Fork 745
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add type converters for sycl::item and sycl::item_base (#52)
The runtime class of `sycl::item_base`: ``` template <int Dims> struct ItemBase<Dims, true> { ... range<Dims> MExtent; id<Dims> MIndex; id<Dims> MOffset; ... } template <int Dims> struct ItemBase<Dims, false> { ... range<Dims> MExtent; id<Dims> MIndex; ... } ``` The runtime class of `sycl::item`: ``` template <int dimensions = 1, bool with_offset = true> class item { ... detail::ItemBase<dimensions, with_offset> MImpl; ... } ``` Example of LLVM IR generated directly from clang: ``` %"class.cl::sycl::item" = type { %"struct.cl::sycl::detail::ItemBase" } %"struct.cl::sycl::detail::ItemBase" = type { %"class.cl::sycl::range", %"class.cl::sycl::id", %"class.cl::sycl::id" } ``` Signed-off-by: Tsang, Whitney <whitney.tsang@intel.com>
- Loading branch information
1 parent
c244dcf
commit 7b3ac03
Showing
2 changed files
with
73 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters