|
LLVM 24.0.0git
|
#include "llvm/Frontend/HLSL/SemanticSignatures.h"
Public Member Functions | |
| SemanticSignatureElement ()=default | |
| SemanticSignatureElement (uint32_t SigId, StringRef SemanticName, dxil::ElementType CompType, dxbc::PSV::SemanticKind SemanticKind, ArrayRef< uint32_t > SemanticIndices, uint8_t Cols) | |
| bool | isAllocated () const |
| uint8_t | getDeclaredMask () const |
| uint8_t | getAlwaysReadsMask () const |
| uint8_t | getNeverWritesMask () const |
| dxbc::SigMinPrecision | getMinPrecision (bool UseMinPrecision) const |
| LLVM_ABI MDNode * | toMetadata (LLVMContext &Ctx) const |
Static Public Member Functions | |
| static LLVM_ABI Expected< SemanticSignatureElement > | fromMetadata (const MDNode *Node) |
Definition at line 75 of file SemanticSignatures.h.
|
default |
Referenced by fromMetadata().
|
inline |
Definition at line 92 of file SemanticSignatures.h.
References Cols, CompType, Rows, SemanticIndices, SemanticKind, SemanticName, SigId, and llvm::size().
|
static |
Definition at line 164 of file SemanticSignatures.cpp.
References Cols, CompType, llvm::dyn_cast(), DynIndexMask, GSStream, I, InterpMode, llvm::SmallVectorTemplateBase< T, bool >::push_back(), Rows, SemanticIndices, SemanticKind, SemanticName, SemanticSignatureElement(), SigId, llvm::SmallVectorTemplateCommon< T, typename >::size(), StartCol, StartRow, llvm::to_underlying(), llvm::hlsl::UnallocatedCol, llvm::hlsl::UnallocatedRow, and UsageMask.
|
inline |
Definition at line 110 of file SemanticSignatures.h.
References UsageMask.
|
inline |
Definition at line 104 of file SemanticSignatures.h.
References Cols, isAllocated(), and StartCol.
Referenced by getNeverWritesMask().
|
inline |
Definition at line 116 of file SemanticSignatures.h.
References CompType, llvm::dxil::F16, llvm::dxil::I16, and llvm::dxil::U16.
|
inline |
Definition at line 112 of file SemanticSignatures.h.
References getDeclaredMask(), and UsageMask.
|
inline |
Definition at line 100 of file SemanticSignatures.h.
References StartCol, StartRow, llvm::hlsl::UnallocatedCol, and llvm::hlsl::UnallocatedRow.
Referenced by getDeclaredMask().
| MDNode * SemanticSignatureElement::toMetadata | ( | LLVMContext & | Ctx | ) | const |
Definition at line 298 of file SemanticSignatures.cpp.
References Cols, CompType, DynIndexMask, llvm::ConstantAsMetadata::get(), llvm::MDNode::get(), llvm::MDString::get(), llvm::Type::getInt32Ty(), llvm::Type::getInt8Ty(), GSStream, InterpMode, llvm::SmallVectorTemplateBase< T, bool >::push_back(), Rows, SemanticIndices, SemanticKind, SemanticName, SigId, StartCol, StartRow, and UsageMask.
| uint8_t llvm::hlsl::SemanticSignatureElement::Cols |
Definition at line 84 of file SemanticSignatures.h.
Referenced by fromMetadata(), getDeclaredMask(), SemanticSignatureElement(), and toMetadata().
| dxil::ElementType llvm::hlsl::SemanticSignatureElement::CompType |
Definition at line 78 of file SemanticSignatures.h.
Referenced by fromMetadata(), getMinPrecision(), SemanticSignatureElement(), and toMetadata().
| uint8_t llvm::hlsl::SemanticSignatureElement::DynIndexMask = 0 |
Definition at line 88 of file SemanticSignatures.h.
Referenced by fromMetadata(), and toMetadata().
| uint32_t llvm::hlsl::SemanticSignatureElement::GSStream = 0 |
Definition at line 89 of file SemanticSignatures.h.
Referenced by fromMetadata(), and toMetadata().
| dxbc::PSV::InterpolationMode llvm::hlsl::SemanticSignatureElement::InterpMode |
Definition at line 81 of file SemanticSignatures.h.
Referenced by fromMetadata(), and toMetadata().
| uint32_t llvm::hlsl::SemanticSignatureElement::Rows |
Definition at line 83 of file SemanticSignatures.h.
Referenced by fromMetadata(), SemanticSignatureElement(), and toMetadata().
| SmallVector<uint32_t> llvm::hlsl::SemanticSignatureElement::SemanticIndices |
Definition at line 80 of file SemanticSignatures.h.
Referenced by fromMetadata(), SemanticSignatureElement(), and toMetadata().
| dxbc::PSV::SemanticKind llvm::hlsl::SemanticSignatureElement::SemanticKind |
Definition at line 79 of file SemanticSignatures.h.
Referenced by fromMetadata(), SemanticSignatureElement(), and toMetadata().
| StringRef llvm::hlsl::SemanticSignatureElement::SemanticName |
Definition at line 77 of file SemanticSignatures.h.
Referenced by fromMetadata(), SemanticSignatureElement(), and toMetadata().
| uint32_t llvm::hlsl::SemanticSignatureElement::SigId |
Definition at line 76 of file SemanticSignatures.h.
Referenced by fromMetadata(), SemanticSignatureElement(), and toMetadata().
| uint8_t llvm::hlsl::SemanticSignatureElement::StartCol = UnallocatedCol |
Definition at line 86 of file SemanticSignatures.h.
Referenced by fromMetadata(), getDeclaredMask(), isAllocated(), and toMetadata().
| uint32_t llvm::hlsl::SemanticSignatureElement::StartRow = UnallocatedRow |
Definition at line 85 of file SemanticSignatures.h.
Referenced by fromMetadata(), isAllocated(), and toMetadata().
| uint8_t llvm::hlsl::SemanticSignatureElement::UsageMask = 0 |
Definition at line 87 of file SemanticSignatures.h.
Referenced by fromMetadata(), getAlwaysReadsMask(), getNeverWritesMask(), and toMetadata().