Skip to content

Commit ebe8ec4

Browse files
committed
PR updates 2
1 parent 3e3f204 commit ebe8ec4

File tree

4 files changed

+9
-28
lines changed

4 files changed

+9
-28
lines changed

llvm/include/llvm/SYCLLowerIR/GlobalOffset.h

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,6 @@
55
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
66
//
77
//===----------------------------------------------------------------------===//
8-
//
9-
// This pass operates on SYCL kernels. It looks for uses of the
10-
// `llvm.{amdgcn|nvvm}.implicit.offset` intrinsic and replaces it with an
11-
// offset parameter which will be threaded through from the kernel entry point.
12-
//
13-
//===----------------------------------------------------------------------===//
148

159
#ifndef LLVM_SYCL_GLOBALOFFSET_H
1610
#define LLVM_SYCL_GLOBALOFFSET_H
@@ -24,6 +18,10 @@ namespace llvm {
2418
class ModulePass;
2519
class PassRegistry;
2620

21+
/// This pass operates on SYCL kernels. It looks for uses of the
22+
/// `llvm.{amdgcn|nvvm}.implicit.offset` intrinsic and replaces it with an
23+
/// offset parameter which will be threaded through from the kernel entry
24+
/// point.
2725
class GlobalOffsetPass : public PassInfoMixin<GlobalOffsetPass> {
2826
private:
2927
using KernelPayload = TargetHelpers::KernelPayload;

llvm/include/llvm/SYCLLowerIR/LocalAccessorToSharedMemory.h

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,6 @@
55
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
66
//
77
//===----------------------------------------------------------------------===//
8-
//
9-
// This pass operates on SYCL kernels. It modifies kernel entry points which
10-
// take pointers to shared memory and alters them to take offsets into shared
11-
// memory (represented by a symbol in the shared address space). The SYCL
12-
// runtime is expected to provide offsets rather than pointers to these
13-
// functions.
14-
//
15-
//===----------------------------------------------------------------------===//
168

179
#ifndef LLVM_SYCL_LOCALACCESSORTOSHAREDMEMORY_H
1810
#define LLVM_SYCL_LOCALACCESSORTOSHAREDMEMORY_H
@@ -26,6 +18,11 @@ namespace llvm {
2618
class ModulePass;
2719
class PassRegistry;
2820

21+
/// This pass operates on SYCL kernels. It modifies kernel entry points which
22+
/// take pointers to shared memory and alters them to take offsets into shared
23+
/// memory (represented by a symbol in the shared address space). The SYCL
24+
/// runtime is expected to provide offsets rather than pointers to these
25+
/// functions.
2926
class LocalAccessorToSharedMemoryPass
3027
: public PassInfoMixin<LocalAccessorToSharedMemoryPass> {
3128
private:

llvm/lib/SYCLLowerIR/GlobalOffset.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,6 @@
55
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
66
//
77
//===----------------------------------------------------------------------===//
8-
//
9-
// This pass operates on SYCL kernels. It looks for uses of the
10-
// `llvm.{amdgcn|nvvm}.implicit.offset` intrinsic and replaces it with an
11-
// offset parameter which will be threaded through from the kernel entry point.
12-
//
13-
//===----------------------------------------------------------------------===//
148

159
#include "llvm/SYCLLowerIR/GlobalOffset.h"
1610
#include "llvm/ADT/SmallSet.h"

llvm/lib/SYCLLowerIR/LocalAccessorToSharedMemory.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,6 @@
55
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
66
//
77
//===----------------------------------------------------------------------===//
8-
//
9-
// This pass operates on SYCL kernels. It modifies kernel entry points which
10-
// take pointers to shared memory and alters them to take offsets into shared
11-
// memory (represented by a symbol in the shared address space). The SYCL
12-
// runtime is expected to provide offsets rather than pointers to these
13-
// functions.
14-
//
15-
//===----------------------------------------------------------------------===//
168

179
#include "llvm/SYCLLowerIR/LocalAccessorToSharedMemory.h"
1810
#include "llvm/IR/Constants.h"

0 commit comments

Comments
 (0)