A recent change requires opencl triple environment for compiling OpenCL
program, which causes regressions in libclc.
This patch fixes that. Instead of deducing language based on triple
environment, it checks LangOptions.
| Paths 
 |  Differential  D33445  
[AMDGPU] Do not require opencl triple environment for OpenCL ClosedPublic Authored by yaxunl on May 23 2017, 8:44 AM. 
Details Summary A recent change requires opencl triple environment for compiling OpenCL This patch fixes that. Instead of deducing language based on triple 
Diff Detail 
 Event TimelineHerald added subscribers: t-tye, Anastasia, tpr and 4 others.  ·  View Herald TranscriptMay 23 2017, 8:44 AM Comment Actions Thanks! 
 This revision is now accepted and ready to land.May 23 2017, 8:49 AM 
 Closed by commit rL303644: [AMDGPU] Do not require opencl triple environment for OpenCL (authored by yaxunl).  ·  Explain WhyMay 23 2017, 9:16 AM This revision was automatically updated to reflect the committed changes. 
Revision Contents 
 
Diff 99928 cfe/trunk/lib/Basic/Targets.cpp
 
 cfe/trunk/test/CodeGenOpenCL/amdgpu-alignment.cl
 cfe/trunk/test/CodeGenOpenCL/amdgpu-debug-info-pointer-address-space.cl
 cfe/trunk/test/CodeGenOpenCL/amdgpu-debug-info-variable-expression.cl
 cfe/trunk/test/CodeGenOpenCL/amdgpu-nullptr.cl
 cfe/trunk/test/CodeGenOpenCL/builtins-amdgcn.cl
 cfe/trunk/test/CodeGenOpenCL/byval.cl
 cfe/trunk/test/CodeGenOpenCL/size_t.cl
 cfe/trunk/test/Sema/sizeof-struct-non-zero-as-member.cl
 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||