[PATCH] OpenCL: Add -ffake-address-space-map to a test

Pekka Jääskeläinen pekka.jaaskelainen at tut.fi
Fri Oct 3 12:25:13 PDT 2014


LGTM

On 10/03/2014 09:16 PM, Tom Stellard wrote:
> The ensures there is an explicit address space id in the output.
> ---
>   test/SemaOpenCL/extern.cl | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/test/SemaOpenCL/extern.cl b/test/SemaOpenCL/extern.cl
> index ee5e072..5b88d70 100644
> --- a/test/SemaOpenCL/extern.cl
> +++ b/test/SemaOpenCL/extern.cl
> @@ -1,7 +1,7 @@
> -// RUN: %clang_cc1 -x cl -cl-std=CL1.2 -emit-llvm %s -o - -verify | FileCheck %s
> +// RUN: %clang_cc1 -x cl -cl-std=CL1.2 -emit-llvm -ffake-address-space-map %s -o - -verify | FileCheck %s
>   // expected-no-diagnostics
>
> -// CHECK: @foo = external global float
> +// CHECK: @foo = external addrspace(3) global float
>   extern constant float foo;
>
>   kernel void test(global float* buf) {
>



-- 
--PJ



More information about the cfe-commits mailing list