File tree Expand file tree Collapse file tree 7 files changed +1
-53
lines changed Expand file tree Collapse file tree 7 files changed +1
-53
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
// Check LLVM optimization pipeline is run by default for SPIR-V compiled for
2
2
// SYCL device target, and can be disabled with -fno-sycl-early-optimizations.
3
- //
4
- // RUN: %clang_cc1 -O2 -fsycl-is-device -triple spir64-unknown-unknown %s -mllvm -debug-pass=Structure -emit-llvm -o /dev/null 2>&1 | FileCheck %s --check-prefix=CHECK-EARLYOPT
5
- // CHECK-EARLYOPT: Combine redundant instructions
6
- // CHECK-EARLYOPT: Move SYCL printf literal arguments to constant address space
7
- //
8
- // RUN: %clang_cc1 -O2 -fsycl-is-device -triple spir64-unknown-unknown %s -mllvm -debug-pass=Structure -emit-llvm -fno-sycl-early-optimizations -o /dev/null 2>&1 | FileCheck %s --check-prefix=CHECK-NOEARLYOPT
9
- // CHECK-NOEARLYOPT-NOT: Combine redundant instructions
10
- // CHECK-NOEARLYOPT: Move SYCL printf literal arguments to constant address space
11
- //
12
- //
13
3
// New pass manager doesn't print all passes tree, only module level.
14
4
//
15
5
// RUN: %clang_cc1 -O2 -fsycl-is-device -triple spir64-unknown-unknown %s -fno-legacy-pass-manager -mdebug-pass Structure -emit-llvm -o /dev/null 2>&1 | FileCheck %s --check-prefix=CHECK-NEWPM-EARLYOPT
Original file line number Diff line number Diff line change 1
- // RUN: %clangxx -fsycl-device-only -fsycl-id-queries-fit-in-int -fno-sycl-early-optimizations -S %s -flegacy-pass-manager -o - | FileCheck %s
2
1
// RUN: %clangxx -fsycl-device-only -fsycl-id-queries-fit-in-int -fno-sycl-early-optimizations -S %s -fno-legacy-pass-manager -o - | FileCheck %s
3
2
4
3
#include < CL/sycl.hpp>
Original file line number Diff line number Diff line change 1
- // RUN: not %clangxx -fsycl -fsycl-device-only -flegacy-pass-manager -S %s -o /dev/null 2>&1 | FileCheck %s
2
1
// RUN: not %clangxx -fsycl -fsycl-device-only -fno-legacy-pass-manager -S %s -o /dev/null 2>&1 | FileCheck %s
3
- // RUN: not %clangxx -fsycl -fsycl-device-only -flegacy-pass-manager -O0 -S %s -o /dev/null 2>&1 | FileCheck %s
4
2
// RUN: not %clangxx -fsycl -fsycl-device-only -fno-legacy-pass-manager -O0 -S %s -o /dev/null 2>&1 | FileCheck %s
5
3
6
4
#include < CL/sycl.hpp>
Original file line number Diff line number Diff line change 1
- // RUN: %clangxx -fsycl -fsycl-device-only -flegacy-pass-manager -S -emit-llvm -x c++ %s -o %t-lgcy
2
- // RUN: sycl-post-link -split-esimd -lower-esimd -O2 -S %t-lgcy -o %t-lgcy.table
3
- // RUN: FileCheck %s -input-file=%t-lgcy_esimd_0.ll
4
-
5
1
// RUN: %clangxx -fsycl -fsycl-device-only -fno-legacy-pass-manager -S -emit-llvm -x c++ %s -o %t
6
2
// RUN: sycl-post-link -split-esimd -lower-esimd -O2 -S %t -o %t.table
7
3
// RUN: FileCheck %s -input-file=%t_esimd_0.ll
Original file line number Diff line number Diff line change 1
- // RUN: %clangxx -fsycl -fsycl-device-only -flegacy-pass-manager -S -emit-llvm -x c++ %s -o %t-lgcy
2
- // RUN: sycl-post-link -split-esimd -lower-esimd -O0 -S %t-lgcy -o %t-lgcy.table
3
- // RUN: FileCheck %s -input-file=%t-lgcy_esimd_0.ll
4
-
5
1
// RUN: %clangxx -fsycl -fsycl-device-only -fno-legacy-pass-manager -S -emit-llvm -x c++ %s -o %t
6
2
// RUN: sycl-post-link -split-esimd -lower-esimd -O0 -S %t -o %t.table
7
3
// RUN: FileCheck %s -input-file=%t_esimd_0.ll
Original file line number Diff line number Diff line change 1
- // RUN: %clangxx -fsycl -flegacy-pass-manager %s -o %t-lgcy.out
2
- // RUN: %RUN_ON_HOST %t-lgcy.out
3
-
4
1
// RUN: %clangxx -fsycl -fno-legacy-pass-manager %s -o %t.out
5
2
// RUN: %RUN_ON_HOST %t.out
6
3
7
- // Check that the code compiles with -O0 and -g on both legacy and new Pass
4
+ // Check that the code compiles with -O0 and -g
8
5
// Managers
9
6
// RUN: %clangxx -I %sycl_include %s -o %t.out -fsycl -fno-legacy-pass-manager -O0
10
- // RUN: %clangxx -I %sycl_include %s -o %t.out -fsycl -flegacy-pass-manager -O0
11
7
// RUN: %clangxx -I %sycl_include %s -o %t.out -fsycl -fno-legacy-pass-manager -O0 -g
12
- // RUN: %clangxx -I %sycl_include %s -o %t.out -fsycl -flegacy-pass-manager -O0 -g
13
8
14
9
// Check that the code compiles with device code instrumentation enabled
15
10
// RUN: %clangxx -I %sycl_include %s -o %t.out -fsycl -fno-legacy-pass-manager \
16
11
// RUN: -fsycl-instrument-device-code
17
- // RUN: %clangxx -I %sycl_include %s -o %t.out -fsycl -flegacy-pass-manager \
18
- // RUN: -fsycl-instrument-device-code
19
12
20
13
#include < CL/sycl.hpp>
21
14
#include < iostream>
You can’t perform that action at this time.
0 commit comments