Skip to content

Commit e1aa264

Browse files
committed
Apply suggestions
Signed-off-by: Dmitry Sidorov <[email protected]>
1 parent 457b1ec commit e1aa264

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

llvm/include/llvm/Transforms/Instrumentation/SPIRITTAnnotations.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
//===----- SPIRITTAnnotations.h - SYCL Instrumental Annotations Pass ------===//
1+
//===----- SPIRITTAnnotations.h - SPIR Instrumental Annotations Pass ------===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.
55
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
66
//
77
//===----------------------------------------------------------------------===//
88
//
9-
// A transformation pass which adds instrumental calls to annotate SYCL
9+
// A transformation pass which adds instrumental calls to annotate SPIR
1010
// synchronization instructions. This can be used for kernel profiling.
1111
//===----------------------------------------------------------------------===//
1212

llvm/lib/Transforms/Instrumentation/SPIRITTAnnotations.cpp

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
//===---- SPIRITTAnnotations.cpp - SYCL Instrumental Annotations Pass -----===//
1+
//===---- SPIRITTAnnotations.cpp - SPIR Instrumental Annotations Pass -----===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.
55
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
66
//
77
//===----------------------------------------------------------------------===//
88
//
9-
// A transformation pass which adds instrumental calls to annotate SYCL
9+
// A transformation pass which adds instrumental calls to annotate SPIR
1010
// synchronization instructions. This can be used for kernel profiling.
1111
//===----------------------------------------------------------------------===//
1212

@@ -129,7 +129,7 @@ class SPIRITTAnnotationsLegacyPass : public ModulePass {
129129

130130
char SPIRITTAnnotationsLegacyPass::ID = 0;
131131
INITIALIZE_PASS(SPIRITTAnnotationsLegacyPass, "SPIRITTAnnotations",
132-
"Insert ITT annotations in SYCL code", false, false)
132+
"Insert ITT annotations in SPIR code", false, false)
133133

134134
// Public interface to the SPIRITTAnnotationsPass.
135135
ModulePass *llvm::createSPIRITTAnnotationsPass() {
@@ -138,8 +138,7 @@ ModulePass *llvm::createSPIRITTAnnotationsPass() {
138138

139139
namespace {
140140

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.
143142
bool isSPIRKernel(Function &F) {
144143
return F.getCallingConv() == CallingConv::SPIR_KERNEL;
145144
}
@@ -241,7 +240,7 @@ PreservedAnalyses SPIRITTAnnotationsPass::run(Module &M,
241240
SPIRV_GROUP_FMAX, SPIRV_GROUP_UMAX, SPIRV_GROUP_SMAX};
242241

243242
for (Function &F : M) {
244-
// Annotate only SYCL kernels
243+
// Annotate only SPIR kernels
245244
if (F.isDeclaration() || !isSPIRKernel(F))
246245
continue;
247246

0 commit comments

Comments
 (0)