clang 22.0.0git
|
#include "CGHLSLRuntime.h"
#include "Address.h"
#include "CGDebugInfo.h"
#include "CodeGenFunction.h"
#include "CodeGenModule.h"
#include "TargetInfo.h"
#include "clang/AST/ASTContext.h"
#include "clang/AST/Attrs.inc"
#include "clang/AST/Decl.h"
#include "clang/AST/RecursiveASTVisitor.h"
#include "clang/AST/Type.h"
#include "clang/Basic/TargetOptions.h"
#include "clang/Frontend/FrontendDiagnostic.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/Frontend/HLSL/RootSignatureMetadata.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/DerivedTypes.h"
#include "llvm/IR/GlobalVariable.h"
#include "llvm/IR/LLVMContext.h"
#include "llvm/IR/Metadata.h"
#include "llvm/IR/Module.h"
#include "llvm/IR/Type.h"
#include "llvm/IR/Value.h"
#include "llvm/Support/Alignment.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/FormatVariadic.h"
#include <cstdint>
#include <optional>
Go to the source code of this file.
Classes | |
class | OpaqueValueVisitor |
Functions | |
static const clang::HLSLAttributedResourceType * | createBufferHandleType (const HLSLBufferDecl *BufDecl) |
static void | fillPackoffsetLayout (const HLSLBufferDecl *BufDecl, SmallVector< int32_t > &Layout) |
static Value * | buildVectorInput (IRBuilder<> &B, Function *F, llvm::Type *Ty) |
static void | addSPIRVBuiltinDecoration (llvm::GlobalVariable *GV, unsigned BuiltIn) |
static llvm::Value * | createSPIRVBuiltinLoad (IRBuilder<> &B, llvm::Module &M, llvm::Type *Ty, const Twine &Name, unsigned BuiltInID) |
static void | gatherFunctions (SmallVectorImpl< Function * > &Fns, llvm::Module &M, bool CtorOrDtor) |
static void | initializeBuffer (CodeGenModule &CGM, llvm::GlobalVariable *GV, Intrinsic::ID IntrID, ArrayRef< llvm::Value * > Args) |
|
static |
Definition at line 544 of file CGHLSLRuntime.cpp.
Referenced by createSPIRVBuiltinLoad(), and clang::CodeGen::CGHLSLRuntime::handleGlobalVarDefinition().
|
static |
Definition at line 532 of file CGHLSLRuntime.cpp.
Referenced by clang::CodeGen::CGHLSLRuntime::emitSystemSemanticLoad().
|
static |
Definition at line 353 of file CGHLSLRuntime.cpp.
References clang::cast(), clang::Decl::getASTContext(), clang::ASTContext::getCanonicalTagType(), clang::ASTContext::getHLSLAttributedResourceType(), clang::HLSLBufferDecl::getLayoutStruct(), and clang::QualType::getTypePtr().
Referenced by clang::CodeGen::CGHLSLRuntime::addBuffer().
|
static |
Definition at line 556 of file CGHLSLRuntime.cpp.
References addSPIRVBuiltinDecoration().
Referenced by clang::CodeGen::CGHLSLRuntime::emitSystemSemanticLoad().
|
static |
Definition at line 374 of file CGHLSLRuntime.cpp.
References clang::HLSLBufferDecl::buffer_decls(), clang::QualType::getAddressSpace(), clang::Decl::getAttrs(), clang::ValueDecl::getType(), clang::Decl::hasAttrs(), clang::HLSLBufferDecl::hasValidPackoffset(), clang::hlsl_constant, and clang::isa().
Referenced by clang::CodeGen::CGHLSLRuntime::addBuffer().
|
static |
Definition at line 707 of file CGHLSLRuntime.cpp.
References clang::cast(), and clang::isa().
Referenced by clang::CodeGen::CGHLSLRuntime::generateGlobalCtorDtorCalls().
|
static |
Definition at line 779 of file CGHLSLRuntime.cpp.
References clang::CodeGen::CodeGenModule::AddCXXGlobalInit(), clang::CodeGen::CodeGenModule::getLLVMContext(), clang::CodeGen::CodeGenModule::getModule(), and clang::CodeGen::CodeGenTypeCache::VoidTy.