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