clang 18.0.0git
Public Types | Public Member Functions | List of all members
clang::CodeGen::CGCUDARuntime::DeviceVarFlags Class Reference

#include "/home/buildbot/as-worker-4/publish-doxygen-docs/llvm-project/clang/lib/CodeGen/CGCUDARuntime.h"

Public Types

enum  DeviceVarKind { Variable , Surface , Texture }
 
enum  OffloadEntryKindFlag : uint32_t { OffloadGlobalEntry = 0x0 , OffloadGlobalManagedEntry = 0x1 , OffloadGlobalSurfaceEntry = 0x2 , OffloadGlobalTextureEntry = 0x3 }
 The kind flag for an offloading entry. More...
 

Public Member Functions

 DeviceVarFlags (DeviceVarKind K, bool E, bool C, bool M, bool N, int T)
 
DeviceVarKind getKind () const
 
bool isExtern () const
 
bool isConstant () const
 
bool isManaged () const
 
bool isNormalized () const
 
int getSurfTexType () const
 

Detailed Description

Definition at line 47 of file CGCUDARuntime.h.

Member Enumeration Documentation

◆ DeviceVarKind

Enumerator
Variable 
Surface 
Texture 

Definition at line 49 of file CGCUDARuntime.h.

◆ OffloadEntryKindFlag

The kind flag for an offloading entry.

Enumerator
OffloadGlobalEntry 

Mark the entry as a global entry.

This indicates the presense of a kernel if the size field is zero and a variable otherwise.

OffloadGlobalManagedEntry 

Mark the entry as a managed global variable.

OffloadGlobalSurfaceEntry 

Mark the entry as a surface variable.

OffloadGlobalTextureEntry 

Mark the entry as a texture variable.

Definition at line 56 of file CGCUDARuntime.h.

Constructor & Destructor Documentation

◆ DeviceVarFlags()

clang::CodeGen::CGCUDARuntime::DeviceVarFlags::DeviceVarFlags ( DeviceVarKind  K,
bool  E,
bool  C,
bool  M,
bool  N,
int  T 
)
inline

Definition at line 77 of file CGCUDARuntime.h.

Member Function Documentation

◆ getKind()

DeviceVarKind clang::CodeGen::CGCUDARuntime::DeviceVarFlags::getKind ( ) const
inline

Definition at line 81 of file CGCUDARuntime.h.

◆ getSurfTexType()

int clang::CodeGen::CGCUDARuntime::DeviceVarFlags::getSurfTexType ( ) const
inline

Definition at line 86 of file CGCUDARuntime.h.

◆ isConstant()

bool clang::CodeGen::CGCUDARuntime::DeviceVarFlags::isConstant ( ) const
inline

Definition at line 83 of file CGCUDARuntime.h.

◆ isExtern()

bool clang::CodeGen::CGCUDARuntime::DeviceVarFlags::isExtern ( ) const
inline

Definition at line 82 of file CGCUDARuntime.h.

◆ isManaged()

bool clang::CodeGen::CGCUDARuntime::DeviceVarFlags::isManaged ( ) const
inline

Definition at line 84 of file CGCUDARuntime.h.

◆ isNormalized()

bool clang::CodeGen::CGCUDARuntime::DeviceVarFlags::isNormalized ( ) const
inline

Definition at line 85 of file CGCUDARuntime.h.


The documentation for this class was generated from the following file: