clang  14.0.0git
CGOpenMPRuntimeNVPTX.h
Go to the documentation of this file.
1 //===----- CGOpenMPRuntimeNVPTX.h - Interface to OpenMP NVPTX 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 NVPTX
10 // targets from generalized CGOpenMPRuntimeGPU class.
11 //
12 //===----------------------------------------------------------------------===//
13 
14 #ifndef LLVM_CLANG_LIB_CODEGEN_CGOPENMPRUNTIMENVPTX_H
15 #define LLVM_CLANG_LIB_CODEGEN_CGOPENMPRUNTIMENVPTX_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 } // CodeGen namespace.
38 } // clang namespace.
39 
40 #endif // LLVM_CLANG_LIB_CODEGEN_CGOPENMPRUNTIMENVPTX_H
clang::CodeGen::CGOpenMPRuntimeNVPTX
Definition: CGOpenMPRuntimeNVPTX.h:25
CodeGenFunction.h
clang::CodeGen::CGOpenMPRuntimeGPU
Definition: CGOpenMPRuntimeGPU.h:24
StmtOpenMP.h
CGOpenMPRuntime.h
clang::CodeGen::CGOpenMPRuntimeNVPTX::getGPUWarpSize
llvm::Value * getGPUWarpSize(CodeGenFunction &CGF) override
Get the GPU warp size.
Definition: CGOpenMPRuntimeNVPTX.cpp:35
clang::CodeGen::CGOpenMPRuntimeNVPTX::getGPUThreadID
llvm::Value * getGPUThreadID(CodeGenFunction &CGF) override
Get the id of the current thread on the GPU.
Definition: CGOpenMPRuntimeNVPTX.cpp:42
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::CGOpenMPRuntimeNVPTX::CGOpenMPRuntimeNVPTX
CGOpenMPRuntimeNVPTX(CodeGenModule &CGM)
Definition: CGOpenMPRuntimeNVPTX.cpp:29
clang
Definition: CalledOnceCheck.h:17
clang::CodeGen::CGOpenMPRuntime::CGM
CodeGenModule & CGM
Definition: CGOpenMPRuntime.h:305
CGOpenMPRuntimeGPU.h