diff options
| author | Tobias Grosser <tobias@grosser.es> | 2016-08-04 06:55:49 +0000 |
|---|---|---|
| committer | Tobias Grosser <tobias@grosser.es> | 2016-08-04 06:55:49 +0000 |
| commit | 576932728db66de3e39278f10c132fb960e378ab (patch) | |
| tree | f878501617e01c437b6e8d7f59883e7fd028b95e /polly/test/GPGPU/scalar-parameter.ll | |
| parent | abb2b54ad3909a9b47b7696fbd48160c77f4d6d6 (diff) | |
| download | bcm5719-llvm-576932728db66de3e39278f10c132fb960e378ab.tar.gz bcm5719-llvm-576932728db66de3e39278f10c132fb960e378ab.zip | |
GPGPU: Pass subtree values correctly to the kernel
llvm-svn: 277697
Diffstat (limited to 'polly/test/GPGPU/scalar-parameter.ll')
| -rw-r--r-- | polly/test/GPGPU/scalar-parameter.ll | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/polly/test/GPGPU/scalar-parameter.ll b/polly/test/GPGPU/scalar-parameter.ll index 38b38f4054e..7edc70b552c 100644 --- a/polly/test/GPGPU/scalar-parameter.ll +++ b/polly/test/GPGPU/scalar-parameter.ll @@ -2,6 +2,10 @@ ; RUN: -disable-output < %s | \ ; RUN: FileCheck -check-prefix=CODE %s +; RUN: opt %loadPolly -polly-codegen-ppcg \ +; RUN: -S < %s | \ +; RUN: FileCheck -check-prefix=IR %s + ; REQUIRES: pollyacc ; CODE: Code @@ -301,6 +305,17 @@ bb7: ; preds = %bb1 ret void } +; IR-LABEL: @i8 + +; IR: %1 = call i8* @polly_getDevicePtr(i8* %p_dev_array_MemRef_A) +; IR-NEXT: store i8* %1, i8** %polly_launch_0_param_0 +; IR-NEXT: %2 = getelementptr [2 x i8*], [2 x i8*]* %polly_launch_0_params, i64 0, i64 0 +; IR-NEXT: %3 = bitcast i8** %polly_launch_0_param_0 to i8* +; IR-NEXT: store i8* %3, i8** %2 +; IR-NEXT: store i8 %b, i8* %polly_launch_0_param_1 +; IR-NEXT: %4 = getelementptr [2 x i8*], [2 x i8*]* %polly_launch_0_params, i64 0, i64 1 +; IR-NEXT: store i8* %polly_launch_0_param_1, i8** %4 + ; CODE: Code ; CODE-NEXT: ==== ; CODE-NEXT: # host |

