|
LLVM
5.0.0
|
#include "AMDGPU.h"#include "AMDGPUSubtarget.h"#include "SIDefines.h"#include "SIInstrInfo.h"#include "llvm/ADT/STLExtras.h"#include "llvm/ADT/Statistic.h"#include "llvm/CodeGen/MachineFunctionPass.h"#include "llvm/CodeGen/MachineInstrBuilder.h"#include <unordered_map>#include <unordered_set>Go to the source code of this file.
Macros | |
| #define | DEBUG_TYPE "si-peephole-sdwa" |
Functions | |
| STATISTIC (NumSDWAPatternsFound,"Number of SDWA patterns found.") | |
| STATISTIC (NumSDWAInstructionsPeepholed,"Number of instruction converted to SDWA.") | |
| static raw_ostream & | operator<< (raw_ostream &OS, const SdwaSel &Sel) |
| static raw_ostream & | operator<< (raw_ostream &OS, const DstUnused &Un) |
| static raw_ostream & | operator<< (raw_ostream &OS, const SDWASrcOperand &Src) |
| static raw_ostream & | operator<< (raw_ostream &OS, const SDWADstOperand &Dst) |
| static void | copyRegOperand (MachineOperand &To, const MachineOperand &From) |
| static bool | isSameReg (const MachineOperand &LHS, const MachineOperand &RHS) |
| static bool | isSubregOf (const MachineOperand &SubReg, const MachineOperand &SuperReg, const TargetRegisterInfo *TRI) |
| #define DEBUG_TYPE "si-peephole-sdwa" |
Definition at line 36 of file SIPeepholeSDWA.cpp.
|
static |
Definition at line 205 of file SIPeepholeSDWA.cpp.
References assert(), llvm::MachineOperand::getReg(), llvm::MachineOperand::getSubReg(), llvm::MachineOperand::isDead(), llvm::MachineOperand::isKill(), llvm::MachineOperand::isReg(), llvm::MachineOperand::isUndef(), llvm::MachineOperand::isUse(), llvm::MachineOperand::setIsDead(), llvm::MachineOperand::setIsKill(), llvm::MachineOperand::setIsUndef(), llvm::MachineOperand::setReg(), and llvm::MachineOperand::setSubReg().
|
static |
Definition at line 217 of file SIPeepholeSDWA.cpp.
References llvm::MachineOperand::getReg(), llvm::MachineOperand::getSubReg(), and llvm::MachineOperand::isReg().
Referenced by isSubregOf().
|
static |
Definition at line 224 of file SIPeepholeSDWA.cpp.
References llvm::LaneBitmask::all(), llvm::MachineOperand::getReg(), llvm::MachineOperand::getSubReg(), llvm::TargetRegisterInfo::getSubRegIndexLaneMask(), llvm::MachineOperand::isReg(), and isSameReg().
|
static |
Definition at line 166 of file SIPeepholeSDWA.cpp.
References llvm::AMDGPU::SDWA::BYTE_0, llvm::AMDGPU::SDWA::BYTE_1, llvm::AMDGPU::SDWA::BYTE_2, llvm::AMDGPU::SDWA::BYTE_3, llvm::AMDGPU::SDWA::DWORD, llvm::AMDGPU::SDWA::WORD_0, and llvm::AMDGPU::SDWA::WORD_1.
|
static |
Definition at line 179 of file SIPeepholeSDWA.cpp.
References llvm::AMDGPU::SDWA::UNUSED_PAD, llvm::AMDGPU::SDWA::UNUSED_PRESERVE, and llvm::AMDGPU::SDWA::UNUSED_SEXT.
|
static |
Definition at line 188 of file SIPeepholeSDWA.cpp.
|
static |
Definition at line 196 of file SIPeepholeSDWA.cpp.
| STATISTIC | ( | NumSDWAPatternsFound | , |
| "Number of SDWA patterns found." | |||
| ) |
| STATISTIC | ( | NumSDWAInstructionsPeepholed | , |
| "Number of instruction converted to SDWA." | |||
| ) |
1.8.6