Skip to content

Commit 00253bf

Browse files
author
Artem Gindinson
authored
[SYCL] Register SPIRITTAnnotations pass for New PM (#3724)
Signed-off-by: Artem Gindinson <[email protected]>
1 parent ff6929e commit 00253bf

File tree

6 files changed

+6
-0
lines changed

6 files changed

+6
-0
lines changed

llvm/lib/Passes/PassBuilder.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@
135135
#include "llvm/Transforms/Instrumentation/MemorySanitizer.h"
136136
#include "llvm/Transforms/Instrumentation/PGOInstrumentation.h"
137137
#include "llvm/Transforms/Instrumentation/PoisonChecking.h"
138+
#include "llvm/Transforms/Instrumentation/SPIRITTAnnotations.h"
138139
#include "llvm/Transforms/Instrumentation/SanitizerCoverage.h"
139140
#include "llvm/Transforms/Instrumentation/ThreadSanitizer.h"
140141
#include "llvm/Transforms/ObjCARC.h"

llvm/lib/Passes/PassRegistry.def

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ MODULE_PASS("poison-checking", PoisonCheckingPass())
123123
MODULE_PASS("pseudo-probe-update", PseudoProbeUpdatePass())
124124
MODULE_PASS("LowerESIMD", SYCLLowerESIMDPass())
125125
MODULE_PASS("ESIMDLowerVecArg", ESIMDLowerVecArgPass())
126+
MODULE_PASS("SPIRITTAnnotations", SPIRITTAnnotationsPass())
126127
MODULE_PASS("deadargelim-sycl", DeadArgumentEliminationSYCLPass())
127128
#undef MODULE_PASS
128129

llvm/test/Transforms/SPIRITTAnnotations/itt_atomic_load.ll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
;; clang++ -fsycl -fsycl-device-only load.cpp -o load.bc
77

88
; RUN: opt < %s --SPIRITTAnnotations -S | FileCheck %s
9+
; RUN: opt < %s --SPIRITTAnnotations -enable-new-pm=1 -S | FileCheck %s
910

1011
; ModuleID = 'load.bc'
1112
source_filename = "llvm-test-suite/SYCL/AtomicRef/load.cpp"

llvm/test/Transforms/SPIRITTAnnotations/itt_atomic_store.ll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
;; clang++ -fsycl -fsycl-device-only load.cpp -o load.bc
77

88
; RUN: opt < %s --SPIRITTAnnotations -S | FileCheck %s
9+
; RUN: opt < %s --SPIRITTAnnotations -enable-new-pm=1 -S | FileCheck %s
910

1011
; ModuleID = 'store.bc'
1112
source_filename = "llvm-test-suite/SYCL/AtomicRef/store.cpp"

llvm/test/Transforms/SPIRITTAnnotations/itt_barrier.ll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
;; clang++ -fsycl -fsycl-device-only kernel-and-program.cpp -o kernel_and_program_optimized.bc
77

88
; RUN: opt < %s --SPIRITTAnnotations -S | FileCheck %s
9+
; RUN: opt < %s --SPIRITTAnnotations -enable-new-pm=1 -S | FileCheck %s
910

1011
; ModuleID = 'kernel_and_program_optimized.bc'
1112
source_filename = "llvm-link"

llvm/test/Transforms/SPIRITTAnnotations/itt_start_finish.ll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
;; are being added by SPIRITTAnnotations pass
33

44
; RUN: opt < %s --SPIRITTAnnotations -S | FileCheck %s
5+
; RUN: opt < %s --SPIRITTAnnotations -enable-new-pm=1 -S | FileCheck %s
56

67
; ModuleID = 'synthetic.bc'
78
source_filename = "synthetic.cpp"

0 commit comments

Comments
 (0)