Commit d6563b0
Artem Gindinson
Erase image support macros' definition from
Whenever OCL Clang is called from within compute runtime's compiler
interface, certain OpenCL C extensions may not be enabled depending on
the target HW platform. However, series of LLORG commits* override
this behaviour by defining the feature macros unconditionally.
(*) https://reviews.llvm.org/D95776, https://reviews.llvm.org/D117899
Add a patch to delete such automatic definitions for image support
macros. Once https://reviews.llvm.org/D141297 (LLVM 16) is integrated,
an alternative approach could be to pass `-D__undef_<feature_macro>`
within the Compute Runtime's compiler interface (in applicable
situations) or at the OCL Clang's level (upon detecting the lack of
extension-defining inputs to `-cl-ext`).
Signed-off-by: Artem Gindinson <artem.gindinson@intel.com>opencl-c-base.h (#409)1 parent c08746e commit d6563b0
File tree
1 file changed
+35
-0
lines changed- patches/clang
1 file changed
+35
-0
lines changedLines changed: 35 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
0 commit comments