size_t and friends are built-in scalar data types and s6.4.4.2 of the
OpenCL C Specification says the as_type() operator must be available
for these data types.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
| Paths 
 |  Differential  D98959  
[OpenCL] Add as_size/ptrdiff/intptr/uintptr_t operators ClosedPublic Authored by svenvh on Mar 19 2021, 9:17 AM. 
Details Summary size_t and friends are built-in scalar data types and s6.4.4.2 of the 
Diff Detail 
 Event TimelineThis revision is now accepted and ready to land.Mar 22 2021, 9:26 AM This revision was landed with ongoing or failed builds.Apr 7 2021, 2:16 AM Closed by commit rG35bc7569f8ad: [OpenCL] Add as_size/ptrdiff/intptr/uintptr_t operators (authored by svenvh).  ·  Explain Why This revision was automatically updated to reflect the committed changes. 
Revision Contents 
 
Diff 335758 clang/lib/Headers/opencl-c-base.h
 clang/test/SemaOpenCL/as_type.cl
 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||