1
- // ===---- SPIRITTAnnotations.cpp - SYCL Instrumental Annotations Pass -----===//
1
+ // ===---- SPIRITTAnnotations.cpp - SPIR Instrumental Annotations Pass -----===//
2
2
//
3
3
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
4
// See https://llvm.org/LICENSE.txt for license information.
5
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
6
//
7
7
// ===----------------------------------------------------------------------===//
8
8
//
9
- // A transformation pass which adds instrumental calls to annotate SYCL
9
+ // A transformation pass which adds instrumental calls to annotate SPIR
10
10
// synchronization instructions. This can be used for kernel profiling.
11
11
// ===----------------------------------------------------------------------===//
12
12
@@ -129,7 +129,7 @@ class SPIRITTAnnotationsLegacyPass : public ModulePass {
129
129
130
130
char SPIRITTAnnotationsLegacyPass::ID = 0 ;
131
131
INITIALIZE_PASS (SPIRITTAnnotationsLegacyPass, " SPIRITTAnnotations" ,
132
- " Insert ITT annotations in SYCL code" , false , false )
132
+ " Insert ITT annotations in SPIR code" , false , false )
133
133
134
134
// Public interface to the SPIRITTAnnotationsPass.
135
135
ModulePass *llvm::createSPIRITTAnnotationsPass() {
@@ -138,8 +138,7 @@ ModulePass *llvm::createSPIRITTAnnotationsPass() {
138
138
139
139
namespace {
140
140
141
- // Check for calling convention of a function. If it's spir_kernel - consider
142
- // the function to be a SYCL kernel.
141
+ // Check for calling convention of a function.
143
142
bool isSPIRKernel (Function &F) {
144
143
return F.getCallingConv () == CallingConv::SPIR_KERNEL;
145
144
}
@@ -241,7 +240,7 @@ PreservedAnalyses SPIRITTAnnotationsPass::run(Module &M,
241
240
SPIRV_GROUP_FMAX, SPIRV_GROUP_UMAX, SPIRV_GROUP_SMAX};
242
241
243
242
for (Function &F : M) {
244
- // Annotate only SYCL kernels
243
+ // Annotate only SPIR kernels
245
244
if (F.isDeclaration () || !isSPIRKernel (F))
246
245
continue ;
247
246
0 commit comments