LLVM 22.0.0git
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, const MCRegisterInfo &MRI, bool SkipSrc=false, bool AllowSameVGPR=false, bool VOPD3=false) const
std::optional< unsignedgetInvalidCompOperandIndex (std::function< unsigned(unsigned, unsigned)> GetRegIdx, const MCRegisterInfo &MRI, bool SkipSrc=false, bool AllowSameVGPR=false, bool VOPD3=false) const

Detailed Description

Definition at line 907 of file AMDGPUBaseInfo.h.

Member Typedef Documentation

◆ RegIndices

Constructor & Destructor Documentation

◆ InstInfo() [1/2]

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

Definition at line 914 of file AMDGPUBaseInfo.h.

◆ InstInfo() [2/2]

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

Definition at line 917 of file AMDGPUBaseInfo.h.

Member Function Documentation

◆ getInvalidCompOperandIndex()

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

◆ hasInvalidOperand()

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

Definition at line 935 of file AMDGPUBaseInfo.h.

References getInvalidCompOperandIndex(), and MRI.

◆ operator[]()

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

Definition at line 920 of file AMDGPUBaseInfo.h.

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


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