LLVM 20.0.0git
|
#include "Target/DirectX/DXILResource.h"
Public Member Functions | |
ConstantBuffer (uint32_t I, hlsl::FrontendResource R) | |
void | setSize (CBufferDataLayout &DL) |
MDNode * | write () const |
void | print (raw_ostream &O) const |
Additional Inherited Members | |
Protected Member Functions inherited from llvm::dxil::ResourceBase | |
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 inherited from llvm::dxil::ResourceBase | |
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 inherited from llvm::dxil::ResourceBase | |
uint32_t | ID |
GlobalVariable * | GV |
StringRef | Name |
uint32_t | Space |
uint32_t | LowerBound |
uint32_t | RangeSize |
Definition at line 89 of file DXILResource.h.
ConstantBuffer::ConstantBuffer | ( | uint32_t | I, |
hlsl::FrontendResource | R | ||
) |
Definition at line 249 of file DXILResource.cpp.
void ConstantBuffer::print | ( | raw_ostream & | O | ) | const |
Definition at line 256 of file DXILResource.cpp.
References llvm::dxil::CBuffer, llvm::dxil::Invalid, llvm::left_justify(), llvm::dxil::ResourceBase::Name, OS, llvm::dxil::ResourceBase::print(), llvm::dxil::ResourceBase::printElementType(), llvm::dxil::ResourceBase::printKind(), and llvm::right_justify().
void ConstantBuffer::setSize | ( | CBufferDataLayout & | DL | ) |
Definition at line 252 of file DXILResource.cpp.
References DL, llvm::GlobalValue::getValueType(), and llvm::dxil::ResourceBase::GV.
MDNode * ConstantBuffer::write | ( | ) | const |
Definition at line 312 of file DXILResource.cpp.
References B, llvm::ConstantAsMetadata::get(), llvm::MDNode::get(), llvm::Value::getContext(), llvm::dxil::ResourceBase::GV, and llvm::dxil::ResourceBase::write().