LLVM 20.0.0git
Classes | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
llvm::dxil::ResourceBase Class Reference

#include "Target/DirectX/DXILResource.h"

Inheritance diagram for llvm::dxil::ResourceBase:
Inheritance graph
[legend]

Classes

struct  ExtendedProperties
 

Protected Member Functions

 ResourceBase (uint32_t I, hlsl::FrontendResource R)
 
void write (LLVMContext &Ctx, MutableArrayRef< Metadata * > Entries) const
 
void print (raw_ostream &O, StringRef IDPrefix, StringRef BindingPrefix) const
 

Static Protected Member Functions

static StringRef getKindName (dxil::ResourceKind Kind)
 
static void printKind (dxil::ResourceKind Kind, unsigned Alignment, raw_ostream &OS, bool SRV=false, bool HasCounter=false, uint32_t SampleCount=0)
 
static StringRef getElementTypeName (dxil::ElementType CompType)
 
static void printElementType (dxil::ResourceKind Kind, dxil::ElementType CompType, unsigned Alignment, raw_ostream &OS)
 

Protected Attributes

uint32_t ID
 
GlobalVariableGV
 
StringRef Name
 
uint32_t Space
 
uint32_t LowerBound
 
uint32_t RangeSize
 

Detailed Description

Definition at line 31 of file DXILResource.h.

Constructor & Destructor Documentation

◆ ResourceBase()

ResourceBase::ResourceBase ( uint32_t  I,
hlsl::FrontendResource  R 
)
protected

Definition at line 58 of file DXILResource.cpp.

References llvm::GlobalValue::getValueType(), GV, and RangeSize.

Member Function Documentation

◆ getElementTypeName()

StringRef ResourceBase::getElementTypeName ( dxil::ElementType  CompType)
staticprotected

◆ getKindName()

StringRef ResourceBase::getKindName ( dxil::ResourceKind  Kind)
staticprotected

◆ print()

void ResourceBase::print ( raw_ostream O,
StringRef  IDPrefix,
StringRef  BindingPrefix 
) const
protected

◆ printElementType()

void ResourceBase::printElementType ( dxil::ResourceKind  Kind,
dxil::ElementType  CompType,
unsigned  Alignment,
raw_ostream OS 
)
staticprotected

◆ printKind()

void ResourceBase::printKind ( dxil::ResourceKind  Kind,
unsigned  Alignment,
raw_ostream OS,
bool  SRV = false,
bool  HasCounter = false,
uint32_t  SampleCount = 0 
)
staticprotected

◆ write()

void ResourceBase::write ( LLVMContext Ctx,
MutableArrayRef< Metadata * >  Entries 
) const
protected

Member Data Documentation

◆ GV

GlobalVariable* llvm::dxil::ResourceBase::GV
protected

◆ ID

uint32_t llvm::dxil::ResourceBase::ID
protected

Definition at line 33 of file DXILResource.h.

◆ LowerBound

uint32_t llvm::dxil::ResourceBase::LowerBound
protected

Definition at line 37 of file DXILResource.h.

Referenced by print(), and write().

◆ Name

StringRef llvm::dxil::ResourceBase::Name
protected

◆ RangeSize

uint32_t llvm::dxil::ResourceBase::RangeSize
protected

Definition at line 38 of file DXILResource.h.

Referenced by print(), ResourceBase(), and write().

◆ Space

uint32_t llvm::dxil::ResourceBase::Space
protected

Definition at line 36 of file DXILResource.h.

Referenced by print(), and write().


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