clang 22.0.0git
|
Instances of this class represent operands to a SPIR-V type instruction. More...
#include "clang/AST/TypeBase.h"
Public Types | |
enum | SpirvOperandKind : unsigned char { Invalid , ConstantId , Literal , TypeId , Max } |
Public Member Functions | |
SpirvOperand () | |
SpirvOperand (SpirvOperandKind Kind, QualType ResultType, llvm::APInt Value) | |
SpirvOperand (const SpirvOperand &Other) | |
~SpirvOperand () | |
SpirvOperand & | operator= (const SpirvOperand &Other)=default |
bool | operator== (const SpirvOperand &Other) const |
bool | operator!= (const SpirvOperand &Other) const |
SpirvOperandKind | getKind () const |
bool | isValid () const |
bool | isConstant () const |
bool | isLiteral () const |
bool | isType () const |
llvm::APInt | getValue () const |
QualType | getResultType () const |
void | Profile (llvm::FoldingSetNodeID &ID) const |
Static Public Member Functions | |
static SpirvOperand | createConstant (QualType ResultType, llvm::APInt Val) |
static SpirvOperand | createLiteral (llvm::APInt Val) |
static SpirvOperand | createType (QualType T) |
Instances of this class represent operands to a SPIR-V type instruction.
Definition at line 6782 of file TypeBase.h.
enum clang::SpirvOperand::SpirvOperandKind : unsigned char |
Enumerator | |
---|---|
Invalid | Uninitialized. |
ConstantId | Integral value to represent as a SPIR-V OpConstant instruction ID. |
Literal | Integral value to represent as an immediate literal. |
TypeId | Type to represent as a SPIR-V type ID. |
Max |
Definition at line 6784 of file TypeBase.h.
|
inline |
Definition at line 6801 of file TypeBase.h.
|
inline |
Definition at line 6803 of file TypeBase.h.
|
inline |
Definition at line 6806 of file TypeBase.h.
References clang::Other.
|
inline |
Definition at line 6807 of file TypeBase.h.
|
inlinestatic |
Definition at line 6837 of file TypeBase.h.
Referenced by checkHLSLSpirvTypeOperand().
|
inlinestatic |
Definition at line 6841 of file TypeBase.h.
Referenced by checkHLSLSpirvTypeOperand().
|
inlinestatic |
Definition at line 6845 of file TypeBase.h.
References clang::T.
Referenced by checkHLSLSpirvTypeOperand().
|
inline |
Definition at line 6818 of file TypeBase.h.
References Kind.
Referenced by clang::ASTRecordWriter::writeHLSLSpirvOperand().
|
inline |
Definition at line 6831 of file TypeBase.h.
Referenced by clang::ASTRecordWriter::writeHLSLSpirvOperand().
|
inline |
Definition at line 6825 of file TypeBase.h.
Referenced by clang::ASTRecordWriter::writeHLSLSpirvOperand().
|
inline |
Definition at line 6821 of file TypeBase.h.
References Kind.
Referenced by clang::ASTRecordWriter::writeHLSLSpirvOperand().
|
inline |
Definition at line 6822 of file TypeBase.h.
References Kind.
Referenced by clang::ASTRecordWriter::writeHLSLSpirvOperand().
|
inline |
Definition at line 6823 of file TypeBase.h.
References Kind.
Referenced by clang::ASTRecordWriter::writeHLSLSpirvOperand().
|
inline |
Definition at line 6820 of file TypeBase.h.
References Kind, and clang::Max.
Referenced by clang::ASTRecordReader::readHLSLSpirvOperand().
|
inline |
Definition at line 6816 of file TypeBase.h.
References clang::Other.
|
default |
|
inline |
Definition at line 6811 of file TypeBase.h.
References Kind, and clang::Other.
|
inline |
Definition at line 6849 of file TypeBase.h.
References clang::QualType::getAsOpaquePtr(), ID, and Kind.