clang  16.0.0git
Classes | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
clang::CodeGen::CGHLSLRuntime Class Reference

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

Collaboration diagram for clang::CodeGen::CGHLSLRuntime:
Collaboration graph
[legend]

Classes

struct  Buffer
 
struct  BufferResBinding
 

Public Member Functions

 CGHLSLRuntime (CodeGenModule &CGM)
 
virtual ~CGHLSLRuntime ()
 
void annotateHLSLResource (const VarDecl *D, llvm::GlobalVariable *GV)
 
void generateGlobalCtorDtorCalls ()
 
void addBuffer (const HLSLBufferDecl *D)
 
void finishCodeGen ()
 
void setHLSLEntryAttributes (const FunctionDecl *FD, llvm::Function *Fn)
 
void emitEntryFunction (const FunctionDecl *FD, llvm::Function *Fn)
 
void setHLSLFunctionAttributes (llvm::Function *, const FunctionDecl *)
 

Protected Member Functions

llvm::Value * emitInputSemantic (llvm::IRBuilder<> &B, const ParmVarDecl &D, llvm::Type *Ty)
 

Protected Attributes

CodeGenModuleCGM
 

Detailed Description

Definition at line 49 of file CGHLSLRuntime.h.

Constructor & Destructor Documentation

◆ CGHLSLRuntime()

clang::CodeGen::CGHLSLRuntime::CGHLSLRuntime ( CodeGenModule CGM)
inline

Definition at line 77 of file CGHLSLRuntime.h.

◆ ~CGHLSLRuntime()

virtual clang::CodeGen::CGHLSLRuntime::~CGHLSLRuntime ( )
inlinevirtual

Definition at line 78 of file CGHLSLRuntime.h.

Member Function Documentation

◆ addBuffer()

void CGHLSLRuntime::addBuffer ( const HLSLBufferDecl D)

Definition at line 157 of file CGHLSLRuntime.cpp.

◆ annotateHLSLResource()

void CGHLSLRuntime::annotateHLSLResource ( const VarDecl D,
llvm::GlobalVariable *  GV 
)

◆ emitEntryFunction()

void CGHLSLRuntime::emitEntryFunction ( const FunctionDecl FD,
llvm::Function *  Fn 
)

◆ emitInputSemantic()

llvm::Value * CGHLSLRuntime::emitInputSemantic ( llvm::IRBuilder<> &  B,
const ParmVarDecl D,
llvm::Type *  Ty 
)
protected

◆ finishCodeGen()

void CGHLSLRuntime::finishCodeGen ( )

◆ generateGlobalCtorDtorCalls()

void CGHLSLRuntime::generateGlobalCtorDtorCalls ( )

◆ setHLSLEntryAttributes()

void clang::CodeGen::CGHLSLRuntime::setHLSLEntryAttributes ( const FunctionDecl FD,
llvm::Function *  Fn 
)

Definition at line 312 of file CGHLSLRuntime.cpp.

References clang::Decl::getAttr(), and string().

Referenced by emitEntryFunction().

◆ setHLSLFunctionAttributes()

void clang::CodeGen::CGHLSLRuntime::setHLSLFunctionAttributes ( llvm::Function *  ,
const FunctionDecl  
)

Member Data Documentation

◆ CGM

CodeGenModule& clang::CodeGen::CGHLSLRuntime::CGM
protected

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