File tree Expand file tree Collapse file tree 4 files changed +9
-28
lines changed Expand file tree Collapse file tree 4 files changed +9
-28
lines changed Original file line number Diff line number Diff line change 5
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
6
//
7
7
// ===----------------------------------------------------------------------===//
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
- // ===----------------------------------------------------------------------===//
14
8
15
9
#ifndef LLVM_SYCL_GLOBALOFFSET_H
16
10
#define LLVM_SYCL_GLOBALOFFSET_H
@@ -24,6 +18,10 @@ namespace llvm {
24
18
class ModulePass ;
25
19
class PassRegistry ;
26
20
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.
27
25
class GlobalOffsetPass : public PassInfoMixin <GlobalOffsetPass> {
28
26
private:
29
27
using KernelPayload = TargetHelpers::KernelPayload;
Original file line number Diff line number Diff line change 5
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
6
//
7
7
// ===----------------------------------------------------------------------===//
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
- // ===----------------------------------------------------------------------===//
16
8
17
9
#ifndef LLVM_SYCL_LOCALACCESSORTOSHAREDMEMORY_H
18
10
#define LLVM_SYCL_LOCALACCESSORTOSHAREDMEMORY_H
@@ -26,6 +18,11 @@ namespace llvm {
26
18
class ModulePass ;
27
19
class PassRegistry ;
28
20
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.
29
26
class LocalAccessorToSharedMemoryPass
30
27
: public PassInfoMixin<LocalAccessorToSharedMemoryPass> {
31
28
private:
Original file line number Diff line number Diff line change 5
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
6
//
7
7
// ===----------------------------------------------------------------------===//
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
- // ===----------------------------------------------------------------------===//
14
8
15
9
#include " llvm/SYCLLowerIR/GlobalOffset.h"
16
10
#include " llvm/ADT/SmallSet.h"
Original file line number Diff line number Diff line change 5
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
6
//
7
7
// ===----------------------------------------------------------------------===//
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
- // ===----------------------------------------------------------------------===//
16
8
17
9
#include " llvm/SYCLLowerIR/LocalAccessorToSharedMemory.h"
18
10
#include " llvm/IR/Constants.h"
You can’t perform that action at this time.
0 commit comments