clang  14.0.0git
CGOpenMPRuntimeAMDGCN.h
Go to the documentation of this file.
1 //===--- CGOpenMPRuntimeAMDGCN.h - Interface to OpenMP AMDGCN Runtimes ---===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // This provides a class for OpenMP runtime code generation specialized to
10 // AMDGCN targets from generalized CGOpenMPRuntimeGPU class.
11 //
12 //===----------------------------------------------------------------------===//
13 
14 #ifndef LLVM_CLANG_LIB_CODEGEN_CGOPENMPRUNTIMEAMDGCN_H
15 #define LLVM_CLANG_LIB_CODEGEN_CGOPENMPRUNTIMEAMDGCN_H
16 
17 #include "CGOpenMPRuntime.h"
18 #include "CGOpenMPRuntimeGPU.h"
19 #include "CodeGenFunction.h"
20 #include "clang/AST/StmtOpenMP.h"
21 
22 namespace clang {
23 namespace CodeGen {
24 
26 
27 public:
29 
30  /// Get the GPU warp size.
32 
33  /// Get the id of the current thread on the GPU.
35 };
36 
37 } // namespace CodeGen
38 } // namespace clang
39 
40 #endif // LLVM_CLANG_LIB_CODEGEN_CGOPENMPRUNTIMEAMDGCN_H
CodeGenFunction.h
clang::CodeGen::CGOpenMPRuntimeGPU
Definition: CGOpenMPRuntimeGPU.h:24
StmtOpenMP.h
CGOpenMPRuntime.h
clang::CodeGen::CGOpenMPRuntimeAMDGCN::getGPUWarpSize
llvm::Value * getGPUWarpSize(CodeGenFunction &CGF) override
Get the GPU warp size.
Definition: CGOpenMPRuntimeAMDGCN.cpp:36
clang::CodeGen::CGOpenMPRuntimeAMDGCN
Definition: CGOpenMPRuntimeAMDGCN.h:25
clang::CodeGen::CodeGenFunction
CodeGenFunction - This class organizes the per-function state that is used while generating LLVM code...
Definition: CodeGenFunction.h:235
clang::CodeGen::CodeGenModule
This class organizes the cross-function state that is used while generating LLVM code.
Definition: CodeGenModule.h:284
Value
Value
Definition: UninitializedValues.cpp:102
clang::CodeGen::CGOpenMPRuntimeAMDGCN::CGOpenMPRuntimeAMDGCN
CGOpenMPRuntimeAMDGCN(CodeGenModule &CGM)
Definition: CGOpenMPRuntimeAMDGCN.cpp:30
clang::CodeGen::CGOpenMPRuntimeAMDGCN::getGPUThreadID
llvm::Value * getGPUThreadID(CodeGenFunction &CGF) override
Get the id of the current thread on the GPU.
Definition: CGOpenMPRuntimeAMDGCN.cpp:43
clang
Definition: CalledOnceCheck.h:17
clang::CodeGen::CGOpenMPRuntime::CGM
CodeGenModule & CGM
Definition: CGOpenMPRuntime.h:305
CGOpenMPRuntimeGPU.h