LLVM  7.0.0svn
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
llvm::AMDGPUInstrInfo Class Reference

#include "Target/AMDGPU/AMDGPUInstrInfo.h"

Inheritance diagram for llvm::AMDGPUInstrInfo:
Inheritance graph
Collaboration diagram for llvm::AMDGPUInstrInfo:
Collaboration graph

Public Member Functions

 AMDGPUInstrInfo (const AMDGPUSubtarget &st)
bool shouldScheduleLoadsNear (SDNode *Load1, SDNode *Load2, int64_t Offset1, int64_t Offset2, unsigned NumLoads) const override
int pseudoToMCOpcode (int Opcode) const
 Return a target-specific opcode if Opcode is a pseudo instruction. More...

Static Public Member Functions

static bool isUniformMMO (const MachineMemOperand *MMO)

Protected Attributes


Detailed Description

Definition at line 34 of file AMDGPUInstrInfo.h.

Constructor & Destructor Documentation

◆ AMDGPUInstrInfo()

AMDGPUInstrInfo::AMDGPUInstrInfo ( const AMDGPUSubtarget st)

Definition at line 42 of file AMDGPUInstrInfo.cpp.

Member Function Documentation

◆ isUniformMMO()

bool AMDGPUInstrInfo::isUniformMMO ( const MachineMemOperand MMO)

◆ pseudoToMCOpcode()

int AMDGPUInstrInfo::pseudoToMCOpcode ( int  Opcode) const

Return a target-specific opcode if Opcode is a pseudo instruction.

Return -1 if the target-specific opcode for the pseudo instruction does not exist. If Opcode is not a pseudo instruction, this is identity.

Definition at line 99 of file AMDGPUInstrInfo.cpp.

References llvm::SIInstrFlags::D16, llvm::AMDGPUSubtarget::getGeneration(), llvm::AMDGPU::getMCOpcode(), GFX80, llvm::AMDGPUSubtarget::GFX9, GFX9, llvm::AMDGPUSubtarget::hasUnpackedD16VMem(), llvm::SIInstrFlags::MIMG, llvm::SIInstrFlags::renamedInGFX9, llvm::SIInstrFlags::SDWA, SDWA, SDWA9, and subtargetEncodingFamily().

Referenced by llvm::SIInstrInfo::commuteOpcode(), llvm::SIInstrInfo::getMCOpcodeFromPseudo(), getPermuteMask(), and llvm::SIInstrInfo::hasVALU32BitEncoding().

◆ shouldScheduleLoadsNear()

bool AMDGPUInstrInfo::shouldScheduleLoadsNear ( SDNode Load1,
SDNode Load2,
int64_t  Offset1,
int64_t  Offset2,
unsigned  NumLoads 
) const

Definition at line 57 of file AMDGPUInstrInfo.cpp.

References assert().

Member Data Documentation



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