LLVM 20.0.0git
Public Types | Public Member Functions | List of all members
llvm::AMDGPU::VOPD::InstInfo Class Reference

#include "Target/AMDGPU/Utils/AMDGPUBaseInfo.h"

Public Types

using RegIndices = std::array< unsigned, Component::MAX_OPR_NUM >
 

Public Member Functions

 InstInfo (const MCInstrDesc &OpX, const MCInstrDesc &OpY)
 
 InstInfo (const ComponentInfo &OprInfoX, const ComponentInfo &OprInfoY)
 
const ComponentInfooperator[] (size_t ComponentIdx) const
 
bool hasInvalidOperand (std::function< unsigned(unsigned, unsigned)> GetRegIdx, bool SkipSrc=false) const
 
std::optional< unsignedgetInvalidCompOperandIndex (std::function< unsigned(unsigned, unsigned)> GetRegIdx, bool SkipSrc=false) const
 

Detailed Description

Definition at line 803 of file AMDGPUBaseInfo.h.

Member Typedef Documentation

◆ RegIndices

Definition at line 808 of file AMDGPUBaseInfo.h.

Constructor & Destructor Documentation

◆ InstInfo() [1/2]

llvm::AMDGPU::VOPD::InstInfo::InstInfo ( const MCInstrDesc OpX,
const MCInstrDesc OpY 
)
inline

Definition at line 810 of file AMDGPUBaseInfo.h.

◆ InstInfo() [2/2]

llvm::AMDGPU::VOPD::InstInfo::InstInfo ( const ComponentInfo OprInfoX,
const ComponentInfo OprInfoY 
)
inline

Definition at line 813 of file AMDGPUBaseInfo.h.

Member Function Documentation

◆ getInvalidCompOperandIndex()

std::optional< unsigned > llvm::AMDGPU::VOPD::InstInfo::getInvalidCompOperandIndex ( std::function< unsigned(unsigned, unsigned)>  GetRegIdx,
bool  SkipSrc = false 
) const

◆ hasInvalidOperand()

bool llvm::AMDGPU::VOPD::InstInfo::hasInvalidOperand ( std::function< unsigned(unsigned, unsigned)>  GetRegIdx,
bool  SkipSrc = false 
) const
inline

Definition at line 827 of file AMDGPUBaseInfo.h.

References getInvalidCompOperandIndex().

◆ operator[]()

const ComponentInfo & llvm::AMDGPU::VOPD::InstInfo::operator[] ( size_t  ComponentIdx) const
inline

Definition at line 816 of file AMDGPUBaseInfo.h.

References assert(), and llvm::AMDGPU::VOPD::COMPONENTS_NUM.


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