[PATCH] D33445: [AMDGPU] Do not require opencl triple environment for OpenCL

2017-05-23 Thread Yaxun Liu via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL303644: [AMDGPU] Do not require opencl triple environment for OpenCL (authored by yaxunl). Changed prior to commit: https://reviews.llvm.org/D33445?vs=99921&id=99928#toc Repository: rL LLVM https://

[PATCH] D33445: [AMDGPU] Do not require opencl triple environment for OpenCL

2017-05-23 Thread Yaxun Liu via Phabricator via cfe-commits
yaxunl added inline comments. Comment at: test/CodeGenOpenCL/amdgpu-alignment.cl:2 // REQUIRES: amdgpu-registered-target -// RUN: %clang_cc1 -triple amdgcn-unknown-unknown-opencl -S -disable-llvm-passes -emit-llvm -o - %s | FileCheck %s tstellar wrote: > You

[PATCH] D33445: [AMDGPU] Do not require opencl triple environment for OpenCL

2017-05-23 Thread Tom Stellard via Phabricator via cfe-commits
tstellar accepted this revision. tstellar added a comment. This revision is now accepted and ready to land. Thanks! Comment at: test/CodeGenOpenCL/amdgpu-alignment.cl:2 // REQUIRES: amdgpu-registered-target -// RUN: %clang_cc1 -triple amdgcn-unknown-unknown-opencl -S -disable

[PATCH] D33445: [AMDGPU] Do not require opencl triple environment for OpenCL

2017-05-23 Thread Yaxun Liu via Phabricator via cfe-commits
yaxunl created this revision. Herald added subscribers: t-tye, Anastasia, tpr, dstuttard, nhaehnle, wdng, kzhuravl. 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 tr