LLVM 20.0.0git
|
#include "llvm/Analysis/DXILResource.h"
Classes | |
struct | ResourceBinding |
Public Member Functions | |
ResourceBindingInfo (uint32_t RecordID, uint32_t Space, uint32_t LowerBound, uint32_t Size, TargetExtType *HandleTy, GlobalVariable *Symbol=nullptr) | |
void | setBindingID (unsigned ID) |
const ResourceBinding & | getBinding () const |
TargetExtType * | getHandleTy () const |
const StringRef | getName () const |
bool | hasSymbol () const |
GlobalVariable * | createSymbol (Module &M, StructType *Ty, StringRef Name="") |
MDTuple * | getAsMetadata (Module &M, dxil::ResourceTypeInfo &RTI) const |
std::pair< uint32_t, uint32_t > | getAnnotateProps (Module &M, dxil::ResourceTypeInfo &RTI) const |
bool | operator== (const ResourceBindingInfo &RHS) const |
bool | operator!= (const ResourceBindingInfo &RHS) const |
bool | operator< (const ResourceBindingInfo &RHS) const |
void | print (raw_ostream &OS, dxil::ResourceTypeInfo &RTI, const DataLayout &DL) const |
Definition at line 309 of file DXILResource.h.
|
inline |
Definition at line 336 of file DXILResource.h.
GlobalVariable * ResourceBindingInfo::createSymbol | ( | Module & | M, |
StructType * | Ty, | ||
StringRef | Name = "" |
||
) |
Definition at line 527 of file DXILResource.cpp.
References assert(), llvm::GlobalValue::ExternalLinkage, and Name.
std::pair< uint32_t, uint32_t > ResourceBindingInfo::getAnnotateProps | ( | Module & | M, |
dxil::ResourceTypeInfo & | RTI | ||
) | const |
Definition at line 606 of file DXILResource.cpp.
References llvm::dxil::ResourceTypeInfo::StructInfo::AlignLog2, llvm::dxil::Comparison, DL, llvm::dxil::ResourceTypeInfo::TypedInfo::ElementCount, llvm::dxil::ResourceTypeInfo::TypedInfo::ElementTy, llvm::dxil::ResourceTypeInfo::getCBufferSize(), llvm::dxil::ResourceTypeInfo::getFeedbackType(), llvm::dxil::ResourceTypeInfo::getMultiSampleCount(), llvm::dxil::ResourceTypeInfo::getResourceKind(), llvm::dxil::ResourceTypeInfo::getSamplerType(), llvm::dxil::ResourceTypeInfo::getStruct(), llvm::dxil::ResourceTypeInfo::getTyped(), llvm::dxil::ResourceTypeInfo::getUAV(), llvm::dxil::ResourceTypeInfo::UAVInfo::GloballyCoherent, llvm::dxil::ResourceTypeInfo::UAVInfo::HasCounter, llvm::dxil::ResourceTypeInfo::isCBuffer(), llvm::dxil::ResourceTypeInfo::isFeedback(), llvm::dxil::ResourceTypeInfo::isMultiSample(), llvm::dxil::ResourceTypeInfo::UAVInfo::IsROV, llvm::dxil::ResourceTypeInfo::isSampler(), llvm::dxil::ResourceTypeInfo::isStruct(), llvm::dxil::ResourceTypeInfo::isTyped(), llvm::dxil::ResourceTypeInfo::isUAV(), llvm::dxil::ResourceTypeInfo::StructInfo::Stride, and llvm::to_underlying().
MDTuple * ResourceBindingInfo::getAsMetadata | ( | Module & | M, |
dxil::ResourceTypeInfo & | RTI | ||
) | const |
Definition at line 536 of file DXILResource.cpp.
References assert(), DL, llvm::dxil::ResourceTypeInfo::TypedInfo::ElementTy, llvm::dxil::ElementType, llvm::SmallVectorBase< Size_T >::empty(), llvm::ConstantAsMetadata::get(), llvm::MDNode::get(), llvm::MDString::get(), llvm::ValueAsMetadata::get(), llvm::dxil::ResourceTypeInfo::getCBufferSize(), llvm::dxil::ResourceTypeInfo::getFeedbackType(), llvm::Type::getInt1Ty(), llvm::Type::getInt32Ty(), llvm::Constant::getIntegerValue(), llvm::dxil::ResourceTypeInfo::getMultiSampleCount(), llvm::Value::getName(), llvm::dxil::ResourceTypeInfo::getResourceKind(), llvm::dxil::ResourceTypeInfo::getSamplerType(), llvm::dxil::ResourceTypeInfo::getStruct(), llvm::dxil::ResourceTypeInfo::getTyped(), llvm::dxil::ResourceTypeInfo::getUAV(), llvm::dxil::ResourceTypeInfo::UAVInfo::GloballyCoherent, llvm::dxil::ResourceTypeInfo::UAVInfo::HasCounter, llvm::dxil::ResourceTypeInfo::isCBuffer(), llvm::dxil::ResourceTypeInfo::isFeedback(), llvm::dxil::ResourceTypeInfo::isMultiSample(), llvm::dxil::ResourceTypeInfo::UAVInfo::IsROV, llvm::dxil::ResourceTypeInfo::isSampler(), llvm::dxil::ResourceTypeInfo::isStruct(), llvm::dxil::ResourceTypeInfo::isTyped(), llvm::dxil::ResourceTypeInfo::isUAV(), llvm::dxil::ResourceBindingInfo::ResourceBinding::LowerBound, llvm::SmallVectorTemplateBase< T, bool >::push_back(), llvm::dxil::ResourceBindingInfo::ResourceBinding::RecordID, llvm::dxil::SamplerFeedbackKind, llvm::dxil::ResourceBindingInfo::ResourceBinding::Size, llvm::dxil::ResourceBindingInfo::ResourceBinding::Space, llvm::dxil::ResourceTypeInfo::StructInfo::Stride, llvm::dxil::StructuredBufferStride, and llvm::to_underlying().
|
inline |
Definition at line 344 of file DXILResource.h.
|
inline |
Definition at line 345 of file DXILResource.h.
Referenced by llvm::DXILBindingMap::print().
Definition at line 346 of file DXILResource.h.
|
inline |
Definition at line 348 of file DXILResource.h.
|
inline |
Definition at line 359 of file DXILResource.h.
References RHS.
|
inline |
Definition at line 362 of file DXILResource.h.
References RHS.
|
inline |
Definition at line 355 of file DXILResource.h.
References RHS.
void ResourceBindingInfo::print | ( | raw_ostream & | OS, |
dxil::ResourceTypeInfo & | RTI, | ||
const DataLayout & | DL | ||
) | const |
Definition at line 654 of file DXILResource.cpp.
References DL, llvm::dxil::ResourceBindingInfo::ResourceBinding::LowerBound, OS, llvm::dxil::ResourceTypeInfo::print(), llvm::Value::printAsOperand(), llvm::dxil::ResourceBindingInfo::ResourceBinding::RecordID, llvm::dxil::ResourceBindingInfo::ResourceBinding::Size, and llvm::dxil::ResourceBindingInfo::ResourceBinding::Space.
Referenced by llvm::DXILBindingMap::print().
|
inline |
Definition at line 342 of file DXILResource.h.