Add missing #define IMAGE_SUPPORT 1 for SPIR targets to indicate that SPIR supports images.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
lib/Frontend/InitPreprocessor.cpp | ||
---|---|---|
1035 ↗ | (On Diff #123591) | I am not sure if we should be checking for OpenCL too depending how SPIR target is used with non-OpenCL sources. Sam might be able to comment. |
lib/Frontend/InitPreprocessor.cpp | ||
---|---|---|
1035 ↗ | (On Diff #123591) | Since this is part of OpenCL spec, I think better limit it to OpenCL. |
Comment Actions
@yaxunl, I moved IMAGE_SUPPORT macro definition so that now it's guarded by LangOpts.OpenCL
Could you kindly take a second look to the review. Thanks.