LLVM 24.0.0git
llvm::hlsl::SignaturePackingError Class Reference

Denotes the element that could not be packed and why. More...

#include "llvm/Frontend/HLSL/SemanticSignaturePacking.h"

Inheritance diagram for llvm::hlsl::SignaturePackingError:
[legend]

Public Types

enum  ErrorKind { SignatureOverflow }

Public Member Functions

 SignaturePackingError (ErrorKind Kind, unsigned ElementIndex)
ErrorKind getErrorKind () const
unsigned getElementIndex () const
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.
Public Member Functions inherited from llvm::ErrorInfo< SignaturePackingError >
const void * dynamicClassID () const override
bool isA (const void *const ClassID) const override
Public Member Functions inherited from llvm::ErrorInfoBase
virtual ~ErrorInfoBase ()=default
virtual std::string message () const
 Return the error message as a string.
template<typename ErrorInfoT>
bool isA () const

Static Public Attributes

static char ID

Additional Inherited Members

Static Public Member Functions inherited from llvm::ErrorInfo< SignaturePackingError >
static const void * classID ()
Static Public Member Functions inherited from llvm::ErrorInfoBase
static const void * classID ()

Detailed Description

Denotes the element that could not be packed and why.

Definition at line 28 of file SemanticSignaturePacking.h.

Member Enumeration Documentation

◆ ErrorKind

Enumerator
SignatureOverflow 

Definition at line 30 of file SemanticSignaturePacking.h.

Constructor & Destructor Documentation

◆ SignaturePackingError()

llvm::hlsl::SignaturePackingError::SignaturePackingError ( ErrorKind Kind,
unsigned ElementIndex )
inline

Definition at line 36 of file SemanticSignaturePacking.h.

Member Function Documentation

◆ convertToErrorCode()

std::error_code llvm::hlsl::SignaturePackingError::convertToErrorCode ( ) const
inlineoverridevirtual

Convert this error to a std::error_code.

This is a temporary crutch to enable interaction with code still using std::error_code. It will be removed in the future.

Implements llvm::ErrorInfoBase.

Definition at line 44 of file SemanticSignaturePacking.h.

References llvm::inconvertibleErrorCode().

◆ getElementIndex()

unsigned llvm::hlsl::SignaturePackingError::getElementIndex ( ) const
inline

Definition at line 40 of file SemanticSignaturePacking.h.

◆ getErrorKind()

ErrorKind llvm::hlsl::SignaturePackingError::getErrorKind ( ) const
inline

Definition at line 39 of file SemanticSignaturePacking.h.

◆ log()

void SignaturePackingError::log ( raw_ostream & OS) const
overridevirtual

Print an error message to an output stream.

Implements llvm::ErrorInfoBase.

Definition at line 22 of file SemanticSignaturePacking.cpp.

References llvm::hlsl::MaxSignatureRows, and SignatureOverflow.

Member Data Documentation

◆ ID

char SignaturePackingError::ID
static

Definition at line 34 of file SemanticSignaturePacking.h.


The documentation for this class was generated from the following files: