clang 20.0.0git
|
#include "/home/buildbot/as-worker-4/publish-doxygen-docs/llvm-project/clang/lib/CodeGen/CGHLSLRuntime.h"
Classes | |
struct | Buffer |
struct | BufferResBinding |
Public Member Functions | |
CGHLSLRuntime (CodeGenModule &CGM) | |
virtual | ~CGHLSLRuntime () |
llvm::Type * | convertHLSLSpecificType (const Type *T) |
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 (const FunctionDecl *FD, llvm::Function *Fn) |
Protected Member Functions | |
llvm::Value * | emitInputSemantic (llvm::IRBuilder<> &B, const ParmVarDecl &D, llvm::Type *Ty) |
Protected Attributes | |
CodeGenModule & | CGM |
Definition at line 69 of file CGHLSLRuntime.h.
|
inline |
Definition at line 115 of file CGHLSLRuntime.h.
|
inlinevirtual |
Definition at line 116 of file CGHLSLRuntime.h.
void CGHLSLRuntime::addBuffer | ( | const HLSLBufferDecl * | D | ) |
Definition at line 171 of file CGHLSLRuntime.cpp.
References D.
Referenced by clang::CodeGen::CodeGenModule::EmitTopLevelDecl().
void CGHLSLRuntime::annotateHLSLResource | ( | const VarDecl * | D, |
llvm::GlobalVariable * | GV | ||
) |
Definition at line 287 of file CGHLSLRuntime.cpp.
References calculateElementType(), CGM, D, clang::Type::getAsCXXRecordDecl(), clang::Decl::getAttr(), and clang::CodeGen::CodeGenModule::getContext().
llvm::Type * CGHLSLRuntime::convertHLSLSpecificType | ( | const Type * | T | ) |
Definition at line 119 of file CGHLSLRuntime.cpp.
References CGM, clang::CodeGen::TargetCodeGenInfo::getHLSLType(), clang::CodeGen::CodeGenModule::getTargetCodeGenInfo(), clang::Type::isHLSLSpecificType(), and clang::T.
Referenced by clang::CodeGen::CodeGenTypes::ConvertType().
void CGHLSLRuntime::emitEntryFunction | ( | const FunctionDecl * | FD, |
llvm::Function * | Fn | ||
) |
Definition at line 372 of file CGHLSLRuntime.cpp.
References CGM, emitInputSemantic(), clang::Function, clang::CodeGen::CodeGenModule::getModule(), clang::NamedDecl::getName(), clang::FunctionDecl::getParamDecl(), clang::ValueDecl::getType(), and setHLSLEntryAttributes().
|
protected |
Definition at line 354 of file CGHLSLRuntime.cpp.
References buildVectorInput(), CGM, D, clang::CodeGen::CodeGenModule::getIntrinsic(), clang::Decl::hasAttr(), and clang::Decl::hasAttrs().
Referenced by emitEntryFunction().
void CGHLSLRuntime::finishCodeGen | ( | ) |
Definition at line 176 of file CGHLSLRuntime.cpp.
References clang::CodeGen::CGHLSLRuntime::Buffer::Binding, CGM, generateGlobalCtorDtorCalls(), clang::CodeGen::CodeGenModule::getCodeGenOpts(), clang::CodeGen::CodeGenModule::getModule(), clang::CodeGen::CodeGenModule::getTarget(), clang::TargetInfo::getTargetOpts(), clang::CodeGen::CGHLSLRuntime::Buffer::IsCBuffer, and clang::T.
Referenced by clang::CodeGen::CodeGenModule::Release().
void CGHLSLRuntime::generateGlobalCtorDtorCalls | ( | ) |
Definition at line 450 of file CGHLSLRuntime.cpp.
References CGM, gatherFunctions(), clang::CodeGen::CodeGenModule::getModule(), and clang::T.
Referenced by finishCodeGen().
void clang::CodeGen::CGHLSLRuntime::setHLSLEntryAttributes | ( | const FunctionDecl * | FD, |
llvm::Function * | Fn | ||
) |
Definition at line 326 of file CGHLSLRuntime.cpp.
References clang::Decl::getAttr().
Referenced by emitEntryFunction().
void CGHLSLRuntime::setHLSLFunctionAttributes | ( | const FunctionDecl * | FD, |
llvm::Function * | Fn | ||
) |
Definition at line 415 of file CGHLSLRuntime.cpp.
References clang::Decl::isInExportDeclContext().
|
protected |
Definition at line 109 of file CGHLSLRuntime.h.
Referenced by annotateHLSLResource(), convertHLSLSpecificType(), emitEntryFunction(), emitInputSemantic(), finishCodeGen(), and generateGlobalCtorDtorCalls().