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 99921 lib/Basic/Targets.cpp
test/CodeGenOpenCL/amdgpu-alignment.cl
test/CodeGenOpenCL/amdgpu-debug-info-pointer-address-space.cl
test/CodeGenOpenCL/amdgpu-debug-info-variable-expression.cl
test/CodeGenOpenCL/amdgpu-nullptr.cl
test/CodeGenOpenCL/builtins-amdgcn.cl
test/CodeGenOpenCL/byval.cl
test/CodeGenOpenCL/size_t.cl
test/Sema/sizeof-struct-non-zero-as-member.cl
|
You might want to have two run lines for each test, one with no environment and one with the -opencl environment to make sure that doesn't break in the future. Otherwise, LGTM.