14#ifndef LLVM_FRONTEND_HLSL_ROOTSIGNATUREMETADATA_H
15#define LLVM_FRONTEND_HLSL_ROOTSIGNATUREMETADATA_H
33 :
public ErrorInfo<RootSignatureValidationError<T>> {
63 OS <<
"Range " << getResourceClassName(
Type) <<
"(register=" <<
Register
64 <<
", space=" <<
Space <<
") "
65 <<
"cannot be appended after an unbounded range ";
74 :
public ErrorInfo<ShaderRegisterOverflowError> {
86 OS <<
"Overflow for shader register range: " << getResourceClassName(
Type)
107 OS <<
"Offset overflow for descriptor range: " << getResourceClassName(
Type)
126 OS <<
"Samplers cannot be mixed with other "
127 <<
"resource types in a descriptor table, " << getResourceClassName(
Type)
193 : Ctx(Ctx), Elements(Elements) {}
237 MDNode *RootConstantNode);
239 MDNode *RootDescriptorNode,
242 MDNode *RangeDescriptorNode);
244 MDNode *DescriptorTableNode);
248 MDNode *StaticSamplerNode);
This file contains the declarations for the subclasses of Constant, which represent the different fla...
static void validateRootSignature(Module &M, const mcdxbc::RootSignatureDesc &RSD, dxil::ModuleMetadataInfo &MMI, DXILResourceMap &DRM, DXILResourceTypeMap &DRTM)
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory),...
Base class for user error types.
Lightweight error class with error context and mandatory checking.
Tagged union holding either a T or a Error.
This is an important class for using LLVM in a threaded context.
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small.
StringRef - Represent a constant reference to a string, i.e.
void log(raw_ostream &OS) const override
Print an error message to an output stream.
OffsetAppendAfterOverflow(dxil::ResourceClass Type, uint32_t Register, uint32_t Space)
std::error_code convertToErrorCode() const override
Convert this error to a std::error_code.
OffsetOverflowError(dxil::ResourceClass Type, uint32_t Register, uint32_t Space)
void log(raw_ostream &OS) const override
Print an error message to an output stream.
std::error_code convertToErrorCode() const override
Convert this error to a std::error_code.
RootSignatureValidationError(StringRef ParamName, T Value)
std::error_code convertToErrorCode() const override
Convert this error to a std::error_code.
void log(raw_ostream &OS) const override
Print an error message to an output stream.
void log(raw_ostream &OS) const override
Print an error message to an output stream.
std::error_code convertToErrorCode() const override
Convert this error to a std::error_code.
ShaderRegisterOverflowError(dxil::ResourceClass Type, uint32_t Register, uint32_t Space)
void log(raw_ostream &OS) const override
Print an error message to an output stream.
TableSamplerMixinError(dxil::ResourceClass Type, uint32_t Location)
std::error_code convertToErrorCode() const override
Convert this error to a std::error_code.
This class implements an extremely fast bulk output stream that can only output to a stream.
This is an optimization pass for GlobalISel generic memory operations.
LLVM_ABI std::error_code inconvertibleErrorCode()
The value returned by this function can be returned from convertToErrorCode for Error values where no...
FunctionAddr VTableAddr uintptr_t uintptr_t Version