intel / intel/llvm

Improve frontend handling of SYCL special types

Open
#16,061 0 comments 0 reactions 0 assignees View on GitHub
confirmed enhancement
Dominant language
LLVM
Stars
1.5k
Forks
854
Avg merge
3d 17h
Merged PRs (30d)
137

Description

### Is your feature request related to a problem? Please describe

The clang frontend currently requires SYCL special types to have a public default constructor in order to have a uniform way of initialization before calling the `__init` method on them.

This is a design choice that forces implementers to always add a public default constructor to special types and in doing so possibly deviating from the spec with `sycl::stream` being such an example.. This issue serves to track this long term effort to improve the frontend handling of special types to not rely on the default constructor.

### Describe the solution you would like

_No response_

### Describe alternatives you have considered

_No response_

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.