Commit c1aebd4
authored
[Clang][OpenCL] Wrap image functions with the macro (#129177)
According to the OpenCL C spec, the image functions are optional.
For OpenCL C 1.2, the image functions are guarded by the
`__IMAGE_SUPPORT__` macro. For the OpenCL C 3.0 and later, the
`__opencl_c_images` macro is used.1 parent 4bd3427 commit c1aebd4
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15082 | 15082 | | |
15083 | 15083 | | |
15084 | 15084 | | |
| 15085 | + | |
15085 | 15086 | | |
15086 | 15087 | | |
15087 | 15088 | | |
| |||
16143 | 16144 | | |
16144 | 16145 | | |
16145 | 16146 | | |
| 16147 | + | |
| 16148 | + | |
16146 | 16149 | | |
16147 | 16150 | | |
16148 | 16151 | | |
| |||
0 commit comments