[PATCH] D22523: [OpenCL] AMDGCN target will generate images in constant address space

Yaxun Liu via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 19 11:32:49 PDT 2016


yaxunl added inline comments.

================
Comment at: test/CodeGenOpenCL/opencl_types.cl:1
@@ -1,1 +1,2 @@
-// RUN: %clang_cc1 %s -emit-llvm -o - -O0 | FileCheck %s
+// RUN: %clang_cc1 %s -emit-llvm -o - -O0 | FileCheck %s --check-prefix=CHECK-NORMAL
+// RUN: %clang_cc1 %s -triple "amdgcn--amdhsa" -emit-llvm -o - -O0 | FileCheck %s --check-prefix=CHECK-AMDGCN
----------------
I think we should add -triple spir-unknown-unknown for this command, otherwise by default all address spaces are mapped to 0.


Repository:
  rL LLVM

https://reviews.llvm.org/D22523





More information about the cfe-commits mailing list