clang 20.0.0git
|
#include "CGHLSLRuntime.h"
#include "CGDebugInfo.h"
#include "CodeGenModule.h"
#include "TargetInfo.h"
#include "clang/AST/Decl.h"
#include "clang/Basic/TargetOptions.h"
#include "llvm/IR/GlobalVariable.h"
#include "llvm/IR/LLVMContext.h"
#include "llvm/IR/Metadata.h"
#include "llvm/IR/Module.h"
#include "llvm/IR/Value.h"
#include "llvm/Support/Alignment.h"
#include "llvm/Support/FormatVariadic.h"
Go to the source code of this file.
Functions | |
static llvm::hlsl::ElementType | calculateElementType (const ASTContext &Context, const clang::Type *ResourceTy) |
static Value * | buildVectorInput (IRBuilder<> &B, Function *F, llvm::Type *Ty) |
static void | gatherFunctions (SmallVectorImpl< Function * > &Fns, llvm::Module &M, bool CtorOrDtor) |
static bool | isResourceRecordType (const clang::Type *Ty) |
static void | createResourceInitFn (CodeGenModule &CGM, const VarDecl *VD, llvm::GlobalVariable *GV, unsigned Slot, unsigned Space) |
|
static |
Definition at line 351 of file CGHLSLRuntime.cpp.
References clang::Result.
Referenced by clang::CodeGen::CGHLSLRuntime::emitInputSemantic().
|
static |
Definition at line 230 of file CGHLSLRuntime.cpp.
References clang::Type::getAs(), clang::ASTContext::getTypeSize(), clang::Type::isSignedIntegerType(), clang::Type::isSpecificBuiltinType(), and clang::Type::isUnsignedIntegerType().
Referenced by clang::CodeGen::CGHLSLRuntime::annotateHLSLResource().
|
static |
Definition at line 529 of file CGHLSLRuntime.cpp.
References clang::CodeGen::CodeGenModule::AddCXXGlobalInit(), clang::CodeGen::CGHLSLRuntime::CGM, clang::HLSLAttributedResourceType::findHandleTypeOnResource(), clang::CodeGen::CodeGenModule::getHLSLRuntime(), clang::CodeGen::TargetCodeGenInfo::getHLSLType(), clang::CodeGen::CodeGenModule::getLLVMContext(), clang::CodeGen::CodeGenModule::getModule(), clang::NamedDecl::getName(), clang::CodeGen::CodeGenModule::getTargetCodeGenInfo(), clang::ValueDecl::getType(), clang::QualType::getTypePtr(), clang::CodeGen::CodeGenTypeCache::IntTy, and clang::CodeGen::CodeGenTypeCache::VoidTy.
Referenced by clang::CodeGen::CGHLSLRuntime::handleGlobalVarDefinition().
|
static |
Definition at line 451 of file CGHLSLRuntime.cpp.
Referenced by clang::CodeGen::CGHLSLRuntime::generateGlobalCtorDtorCalls().
|
static |
Definition at line 525 of file CGHLSLRuntime.cpp.
References clang::HLSLAttributedResourceType::findHandleTypeOnResource().
Referenced by clang::CodeGen::CGHLSLRuntime::handleGlobalVarDefinition(), and isInvalidConstantBufferLeafElementType().