LLVM 24.0.0git
llvm::SPIRVTypeInst Class Reference

#include "Target/SPIRV/SPIRVTypeInst.h"

Public Member Functions

 SPIRVTypeInst (const MachineInstr &MI)
 SPIRVTypeInst (const MachineInstr *MI=nullptr)
 SPIRVTypeInst (const SPIRVTypeInst &Other)=default
SPIRVTypeInst & operator= (const SPIRVTypeInst &Other)=default
const MachineInstr & operator* () const
const MachineInstr * operator-> () const
 operator const MachineInstr * () const
bool operator== (const SPIRVTypeInst &Other) const
bool operator!= (const SPIRVTypeInst &Other) const
 operator bool () const
bool isTypeIntN (unsigned N=0) const
bool isAnyTypeFloat () const
bool isTypeIntOrFloat () const
bool isPointer () const
bool isTypePtr () const
bool isTypeUntypedPtr () const

Friends

struct DenseMapInfo< SPIRVTypeInst >

Detailed Description

Definition at line 22 of file SPIRVTypeInst.h.

Constructor & Destructor Documentation

◆ SPIRVTypeInst() [1/3]

llvm::SPIRVTypeInst::SPIRVTypeInst ( const MachineInstr & MI)
inline

Definition at line 31 of file SPIRVTypeInst.h.

◆ SPIRVTypeInst() [2/3]

llvm::SPIRVTypeInst::SPIRVTypeInst ( const MachineInstr * MI = nullptr)

Definition at line 23 of file SPIRVTypeInst.cpp.

References assert(), and llvm::definesATypeRegister().

◆ SPIRVTypeInst() [3/3]

llvm::SPIRVTypeInst::SPIRVTypeInst ( const SPIRVTypeInst & Other)
default

References llvm::Other.

Member Function Documentation

◆ isAnyTypeFloat()

bool llvm::SPIRVTypeInst::isAnyTypeFloat ( ) const

Definition at line 36 of file SPIRVTypeInst.cpp.

Referenced by isTypeIntOrFloat().

◆ isPointer()

◆ isTypeIntN()

bool llvm::SPIRVTypeInst::isTypeIntN ( unsigned N = 0) const

Definition at line 28 of file SPIRVTypeInst.cpp.

References N.

Referenced by isTypeIntOrFloat().

◆ isTypeIntOrFloat()

bool llvm::SPIRVTypeInst::isTypeIntOrFloat ( ) const
inline

Definition at line 54 of file SPIRVTypeInst.h.

References isAnyTypeFloat(), and isTypeIntN().

◆ isTypePtr()

bool llvm::SPIRVTypeInst::isTypePtr ( ) const

Definition at line 45 of file SPIRVTypeInst.cpp.

◆ isTypeUntypedPtr()

bool llvm::SPIRVTypeInst::isTypeUntypedPtr ( ) const

Definition at line 49 of file SPIRVTypeInst.cpp.

◆ operator bool()

llvm::SPIRVTypeInst::operator bool ( ) const
inline

Definition at line 46 of file SPIRVTypeInst.h.

◆ operator const MachineInstr *()

llvm::SPIRVTypeInst::operator const MachineInstr * ( ) const
inline

Definition at line 41 of file SPIRVTypeInst.h.

◆ operator!=()

bool llvm::SPIRVTypeInst::operator!= ( const SPIRVTypeInst & Other) const
inline

Definition at line 44 of file SPIRVTypeInst.h.

References llvm::Other.

◆ operator*()

const MachineInstr & llvm::SPIRVTypeInst::operator* ( ) const
inline

Definition at line 39 of file SPIRVTypeInst.h.

◆ operator->()

const MachineInstr * llvm::SPIRVTypeInst::operator-> ( ) const
inline

Definition at line 40 of file SPIRVTypeInst.h.

◆ operator=()

SPIRVTypeInst & llvm::SPIRVTypeInst::operator= ( const SPIRVTypeInst & Other)
default

References llvm::Other.

◆ operator==()

bool llvm::SPIRVTypeInst::operator== ( const SPIRVTypeInst & Other) const
inline

Definition at line 43 of file SPIRVTypeInst.h.

References llvm::Other.

◆ DenseMapInfo< SPIRVTypeInst >

friend struct DenseMapInfo< SPIRVTypeInst >
friend

Definition at line 61 of file SPIRVTypeInst.h.


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