LLVM 18.0.0git
|
#include "Target/DirectX/DXILResource.h"
Classes | |
struct | ExtendedProperties |
Protected Types | |
enum class | ComponentType : uint32_t { Invalid = 0 , I1 , I16 , U16 , I32 , U32 , I64 , U64 , F16 , F32 , F64 , SNormF16 , UNormF16 , SNormF32 , UNormF32 , SNormF64 , UNormF64 , PackedS8x32 , PackedU8x32 , LastEntry } |
using | Kinds = hlsl::ResourceKind |
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 (Kinds Kind) |
static void | printKind (Kinds Kind, unsigned Alignment, raw_ostream &OS, bool SRV=false, bool HasCounter=false, uint32_t SampleCount=0) |
static StringRef | getComponentTypeName (ComponentType CompType) |
static void | printComponentType (Kinds Kind, ComponentType CompType, unsigned Alignment, raw_ostream &OS) |
Protected Attributes | |
uint32_t | ID |
GlobalVariable * | GV |
StringRef | Name |
uint32_t | Space |
uint32_t | LowerBound |
uint32_t | RangeSize |
Definition at line 30 of file DXILResource.h.
|
protected |
Definition at line 43 of file DXILResource.h.
|
strongprotected |
Enumerator | |
---|---|
Invalid | |
I1 | |
I16 | |
U16 | |
I32 | |
U32 | |
I64 | |
U64 | |
F16 | |
F32 | |
F64 | |
SNormF16 | |
UNormF16 | |
SNormF32 | |
UNormF32 | |
SNormF64 | |
UNormF64 | |
PackedS8x32 | |
PackedU8x32 | |
LastEntry |
Definition at line 51 of file DXILResource.h.
|
protected |
Definition at line 59 of file DXILResource.cpp.
References llvm::GlobalValue::getValueType(), GV, and RangeSize.
|
staticprotected |
Definition at line 66 of file DXILResource.cpp.
References F16, F32, F64, I1, I16, I32, I64, Invalid, LastEntry, llvm_unreachable, PackedS8x32, PackedU8x32, SNormF16, SNormF32, SNormF64, U16, U32, U64, UNormF16, UNormF32, and UNormF64.
Referenced by printComponentType().
Definition at line 134 of file DXILResource.cpp.
References llvm_unreachable.
Referenced by printKind().
|
protected |
Definition at line 217 of file DXILResource.cpp.
References LowerBound, OS, RangeSize, llvm::right_justify(), Space, and llvm::StringRef::str().
Referenced by llvm::dxil::Resources::dump(), llvm::dxil::UAVResource::print(), and llvm::dxil::ConstantBuffer::print().
|
staticprotected |
Definition at line 111 of file DXILResource.cpp.
References getComponentTypeName(), OS, and llvm::right_justify().
Referenced by llvm::dxil::UAVResource::print(), and llvm::dxil::ConstantBuffer::print().
|
staticprotected |
Definition at line 179 of file DXILResource.cpp.
References getKindName(), OS, llvm::right_justify(), llvm::hlsl::SRV, and llvm::StringRef::str().
Referenced by llvm::dxil::UAVResource::print(), and llvm::dxil::ConstantBuffer::print().
|
protected |
Definition at line 340 of file DXILResource.cpp.
References B, llvm::ConstantAsMetadata::get(), llvm::MDString::get(), GV, LowerBound, Name, RangeSize, and Space.
Referenced by llvm::dxil::UAVResource::write(), and llvm::dxil::ConstantBuffer::write().
|
protected |
Definition at line 33 of file DXILResource.h.
Referenced by ResourceBase(), llvm::dxil::ConstantBuffer::setSize(), llvm::dxil::UAVResource::write(), llvm::dxil::ConstantBuffer::write(), and write().
|
protected |
Definition at line 32 of file DXILResource.h.
|
protected |
Definition at line 36 of file DXILResource.h.
|
protected |
Definition at line 34 of file DXILResource.h.
Referenced by llvm::dxil::UAVResource::print(), llvm::dxil::ConstantBuffer::print(), and write().
|
protected |
Definition at line 37 of file DXILResource.h.
Referenced by print(), ResourceBase(), and write().
|
protected |
Definition at line 35 of file DXILResource.h.