LLVM 20.0.0git
|
#include "llvm/Analysis/DXILResource.h"
Classes | |
struct | StructInfo |
struct | TypedInfo |
struct | UAVInfo |
Definition at line 202 of file DXILResource.h.
ResourceTypeInfo::ResourceTypeInfo | ( | TargetExtType * | HandleTy, |
const dxil::ResourceClass | RC, | ||
const dxil::ResourceKind | Kind, | ||
bool | GloballyCoherent = false , |
||
bool | HasCounter = false |
||
) |
Definition at line 180 of file DXILResource.cpp.
References llvm::dxil::CBuffer, llvm::dxil::Invalid, llvm_unreachable, llvm::dxil::RawBuffer, llvm::dxil::Sampler, llvm::dxil::SRV, llvm::dxil::StructuredBuffer, llvm::dxil::TypedBuffer, and llvm::dxil::UAV.
|
inline |
Definition at line 268 of file DXILResource.h.
StructType * ResourceTypeInfo::createElementStruct | ( | ) |
Definition at line 225 of file DXILResource.cpp.
References llvm::dxil::CBuffer, llvm::StructType::create(), llvm::dxil::FeedbackTexture2D, llvm::dxil::FeedbackTexture2DArray, formatTypeName(), llvm::formatv(), llvm::Type::getContext(), llvm::Type::getInt32Ty(), getResourceKindName(), llvm::dxil::Invalid, llvm_unreachable, llvm::dxil::NumEntries, llvm::dxil::RawBuffer, llvm::dxil::RTAccelerationStructure, llvm::dxil::Sampler, llvm::dxil::StructuredBuffer, llvm::dxil::TBuffer, llvm::dxil::Texture1D, llvm::dxil::Texture1DArray, llvm::dxil::Texture2D, llvm::dxil::Texture2DArray, llvm::dxil::Texture2DMS, llvm::dxil::Texture2DMSArray, llvm::dxil::Texture3D, llvm::dxil::TextureCube, llvm::dxil::TextureCubeArray, llvm::to_underlying(), and llvm::dxil::TypedBuffer.
uint32_t ResourceTypeInfo::getCBufferSize | ( | const DataLayout & | DL | ) | const |
Definition at line 383 of file DXILResource.cpp.
References assert(), and isCBuffer().
Referenced by llvm::dxil::ResourceBindingInfo::getAnnotateProps(), llvm::dxil::ResourceBindingInfo::getAsMetadata(), operator<(), and print().
dxil::SamplerFeedbackType ResourceTypeInfo::getFeedbackType | ( | ) | const |
Definition at line 455 of file DXILResource.cpp.
References assert(), and isFeedback().
Referenced by llvm::dxil::ResourceBindingInfo::getAnnotateProps(), llvm::dxil::ResourceBindingInfo::getAsMetadata(), operator<(), and print().
|
inline |
Definition at line 273 of file DXILResource.h.
uint32_t ResourceTypeInfo::getMultiSampleCount | ( | ) | const |
Definition at line 459 of file DXILResource.cpp.
References assert(), and isMultiSample().
Referenced by llvm::dxil::ResourceBindingInfo::getAnnotateProps(), llvm::dxil::ResourceBindingInfo::getAsMetadata(), operator<(), and print().
|
inline |
Definition at line 294 of file DXILResource.h.
Referenced by prettyPrintResources().
|
inline |
Definition at line 295 of file DXILResource.h.
Referenced by llvm::dxil::ResourceBindingInfo::getAnnotateProps(), and llvm::dxil::ResourceBindingInfo::getAsMetadata().
dxil::SamplerType ResourceTypeInfo::getSamplerType | ( | ) | const |
Definition at line 388 of file DXILResource.cpp.
References assert(), and isSampler().
Referenced by llvm::dxil::ResourceBindingInfo::getAnnotateProps(), llvm::dxil::ResourceBindingInfo::getAsMetadata(), operator<(), and print().
ResourceTypeInfo::StructInfo ResourceTypeInfo::getStruct | ( | const DataLayout & | DL | ) | const |
Definition at line 394 of file DXILResource.cpp.
References assert(), DL, llvm::MachineBasicBlock::getAlignment(), isStruct(), and llvm::Log2().
Referenced by llvm::dxil::ResourceBindingInfo::getAnnotateProps(), llvm::dxil::ResourceBindingInfo::getAsMetadata(), operator<(), and print().
ResourceTypeInfo::TypedInfo ResourceTypeInfo::getTyped | ( | ) | const |
Definition at line 444 of file DXILResource.cpp.
References assert(), getTypedElementType(), isTyped(), and toDXILElementType().
Referenced by llvm::dxil::ResourceBindingInfo::getAnnotateProps(), llvm::dxil::ResourceBindingInfo::getAsMetadata(), getFormatName(), operator<(), print(), and updateFunctionFlags().
ResourceTypeInfo::UAVInfo ResourceTypeInfo::getUAV | ( | ) | const |
Definition at line 378 of file DXILResource.cpp.
References assert(), isROV(), and isUAV().
Referenced by llvm::dxil::ResourceBindingInfo::getAnnotateProps(), llvm::dxil::ResourceBindingInfo::getAsMetadata(), operator<(), and print().
bool ResourceTypeInfo::isCBuffer | ( | ) | const |
Definition at line 296 of file DXILResource.cpp.
References llvm::dxil::CBuffer.
Referenced by llvm::dxil::ResourceBindingInfo::getAnnotateProps(), llvm::dxil::ResourceBindingInfo::getAsMetadata(), getCBufferSize(), getFormatName(), operator<(), and print().
bool ResourceTypeInfo::isFeedback | ( | ) | const |
Definition at line 337 of file DXILResource.cpp.
References llvm::dxil::FeedbackTexture2D, and llvm::dxil::FeedbackTexture2DArray.
Referenced by llvm::dxil::ResourceBindingInfo::getAnnotateProps(), llvm::dxil::ResourceBindingInfo::getAsMetadata(), getFeedbackType(), operator<(), and print().
bool ResourceTypeInfo::isMultiSample | ( | ) | const |
Definition at line 342 of file DXILResource.cpp.
References llvm::dxil::Texture2DMS, and llvm::dxil::Texture2DMSArray.
Referenced by llvm::dxil::ResourceBindingInfo::getAnnotateProps(), llvm::dxil::ResourceBindingInfo::getAsMetadata(), getMultiSampleCount(), operator<(), and print().
bool ResourceTypeInfo::isSampler | ( | ) | const |
Definition at line 300 of file DXILResource.cpp.
References llvm::dxil::Sampler.
Referenced by llvm::dxil::ResourceBindingInfo::getAnnotateProps(), llvm::dxil::ResourceBindingInfo::getAsMetadata(), getFormatName(), getSamplerType(), operator<(), and print().
bool ResourceTypeInfo::isStruct | ( | ) | const |
Definition at line 304 of file DXILResource.cpp.
References llvm::dxil::StructuredBuffer.
Referenced by llvm::dxil::ResourceBindingInfo::getAnnotateProps(), llvm::dxil::ResourceBindingInfo::getAsMetadata(), getFormatName(), getStruct(), operator<(), and print().
bool ResourceTypeInfo::isTyped | ( | ) | const |
Definition at line 308 of file DXILResource.cpp.
References llvm::dxil::CBuffer, llvm::dxil::FeedbackTexture2D, llvm::dxil::FeedbackTexture2DArray, llvm::dxil::Invalid, llvm_unreachable, llvm::dxil::NumEntries, llvm::dxil::RawBuffer, llvm::dxil::RTAccelerationStructure, llvm::dxil::Sampler, llvm::dxil::StructuredBuffer, llvm::dxil::TBuffer, llvm::dxil::Texture1D, llvm::dxil::Texture1DArray, llvm::dxil::Texture2D, llvm::dxil::Texture2DArray, llvm::dxil::Texture2DMS, llvm::dxil::Texture2DMSArray, llvm::dxil::Texture3D, llvm::dxil::TextureCube, llvm::dxil::TextureCubeArray, and llvm::dxil::TypedBuffer.
Referenced by llvm::dxil::ResourceBindingInfo::getAnnotateProps(), llvm::dxil::ResourceBindingInfo::getAsMetadata(), getFormatName(), getTyped(), operator<(), print(), and updateFunctionFlags().
bool ResourceTypeInfo::isUAV | ( | ) | const |
Definition at line 294 of file DXILResource.cpp.
References llvm::dxil::UAV.
Referenced by llvm::dxil::ResourceBindingInfo::getAnnotateProps(), llvm::dxil::ResourceBindingInfo::getAsMetadata(), getUAV(), operator<(), and print().
|
inline |
Definition at line 301 of file DXILResource.h.
References RHS.
bool ResourceTypeInfo::operator< | ( | const ResourceTypeInfo & | RHS | ) | const |
Definition at line 469 of file DXILResource.cpp.
References getCBufferSize(), getFeedbackType(), getMultiSampleCount(), getSamplerType(), getStruct(), getTyped(), getUAV(), isCBuffer(), isFeedback(), isMultiSample(), isSampler(), isStruct(), isTyped(), isUAV(), and RHS.
bool ResourceTypeInfo::operator== | ( | const ResourceTypeInfo & | RHS | ) | const |
Definition at line 464 of file DXILResource.cpp.
References RHS.
void ResourceTypeInfo::print | ( | raw_ostream & | OS, |
const DataLayout & | DL | ||
) | const |
Definition at line 495 of file DXILResource.cpp.
References DL, llvm::dxil::ResourceTypeInfo::TypedInfo::ElementCount, llvm::dxil::ResourceTypeInfo::TypedInfo::ElementTy, getCBufferSize(), getElementTypeName(), getFeedbackType(), getMultiSampleCount(), getResourceClassName(), getResourceKindName(), getSamplerFeedbackTypeName(), getSamplerType(), getSamplerTypeName(), getStruct(), getTyped(), getUAV(), llvm::dxil::ResourceTypeInfo::UAVInfo::GloballyCoherent, llvm::dxil::ResourceTypeInfo::UAVInfo::HasCounter, isCBuffer(), isFeedback(), isMultiSample(), llvm::dxil::ResourceTypeInfo::UAVInfo::IsROV, isSampler(), isStruct(), isTyped(), isUAV(), OS, and Struct.
Referenced by llvm::dxil::ResourceBindingInfo::print().
|
inline |
Definition at line 297 of file DXILResource.h.
|
inline |
Definition at line 298 of file DXILResource.h.