File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -1384,6 +1384,12 @@ void EmitAssemblyHelper::RunOptimizationPipeline(
1384
1384
// configure the pipeline.
1385
1385
OptimizationLevel Level = mapToLevel (CodeGenOpts);
1386
1386
1387
+ if (LangOpts.SYCLIsDevice )
1388
+ PB.registerPipelineStartEPCallback (
1389
+ [](ModulePassManager &MPM, OptimizationLevel Level) {
1390
+ MPM.addPass (ESIMDVerifierPass ());
1391
+ });
1392
+
1387
1393
bool IsThinLTO = CodeGenOpts.PrepareForThinLTO ;
1388
1394
bool IsLTO = CodeGenOpts.PrepareForLTO ;
1389
1395
Original file line number Diff line number Diff line change 1
- // RUN: not %clangxx -fsycl -fsycl-device-only -S %s -o %t 2>&1 | FileCheck %s
1
+ // RUN: not %clangxx -fsycl -fsycl-device-only -flegacy-pass-manager -S %s -o /dev/null 2>&1 | FileCheck %s
2
+ // 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
+ // RUN: not %clangxx -fsycl -fsycl-device-only -fno-legacy-pass-manager -O0 -S %s -o /dev/null 2>&1 | FileCheck %s
2
5
3
6
#include < sycl/ext/intel/experimental/esimd.hpp>
4
7
You can’t perform that action at this time.
0 commit comments