[PATCH] D21567: [OpenCL] Generate struct type for sampler_t and function call for the initializer

Yaxun Liu via cfe-commits cfe-commits at lists.llvm.org
Fri Jul 15 09:55:47 PDT 2016


yaxunl marked 11 inline comments as done.

================
Comment at: test/CodeGenOpenCL/sampler.cl:2
@@ +1,3 @@
+// RUN: %clang_cc1 %s -emit-llvm -triple spir-unknown-unknown -o - -O0 | FileCheck %s
+
+#define CLK_ADDRESS_CLAMP_TO_EDGE       2
----------------
Fixed and moved to sema test.

================
Comment at: test/CodeGenOpenCL/sampler.cl:18
@@ +17,3 @@
+  sampler_t smp = CLK_ADDRESS_CLAMP_TO_EDGE | CLK_NORMALIZED_COORDS_TRUE | CLK_FILTER_NEAREST;
+  // CHECK-LABEL: define spir_kernel void @foo()
+  // CHECK: [[smp_ptr:%[A-Za-z0-9_\.]+]] = alloca %__opencl_sampler_t addrspace(2)*
----------------
Moved to sema tests.


https://reviews.llvm.org/D21567





More information about the cfe-commits mailing list