-
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 from sycl::AccessorImplDeviceType and sycl::Acces…
…sorType to llvm types (#38) The runtime class of `sycl::AccessorImplDeviceType`: ``` template <int Dims> class AccessorImplDevice { ... id<Dims> Offset; range<Dims> AccessRange; range<Dims> MemRange; ... }; ``` The runtime class of `sycl::AccessorType`: ``` template <typename DataT, int Dimensions, access::mode AccessMode, access::target AccessTarget, access::placeholder IsPlaceholder, typename PropertyListT> class __SYCL_SPECIAL_CLASS accessor : public detail::accessor_common<DataT, Dimensions, AccessMode, AccessTarget, IsPlaceholder, PropertyListT> { ... detail::AccessorImplDevice<AdjustedDim> impl; union { ConcreteASPtrType MData; }; ... }; ``` Example of LLVM IR generated directly from clang: ``` %"class.cl::sycl::accessor" = type { %"class.cl::sycl::detail::AccessorImplDevice", %union.anon } %"class.cl::sycl::detail::AccessorImplDevice" = type { %"class.cl::sycl::id", %"class.cl::sycl::range", %"class.cl::sycl::range" } %union.anon = type { i32 addrspace(1)* } ```Signed-off-by: Tsang, Whitney <[email protected]>
- Loading branch information
1 parent
502d3b9
commit 6f4d2dc
Showing
2 changed files
with
123 additions
and
34 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