LLVM 20.0.0git
|
#include "SIPeepholeSDWA.h"
#include "AMDGPU.h"
#include "GCNSubtarget.h"
#include "MCTargetDesc/AMDGPUMCTargetDesc.h"
#include "llvm/ADT/MapVector.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/CodeGen/MachineFunctionPass.h"
#include <optional>
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, SdwaSel Sel) |
static raw_ostream & | operator<< (raw_ostream &OS, const DstUnused &Un) |
static void | copyRegOperand (MachineOperand &To, const MachineOperand &From) |
static bool | isSameReg (const MachineOperand &LHS, const MachineOperand &RHS) |
static MachineOperand * | findSingleRegUse (const MachineOperand *Reg, const MachineRegisterInfo *MRI) |
static MachineOperand * | findSingleRegDef (const MachineOperand *Reg, const MachineRegisterInfo *MRI) |
static raw_ostream & | operator<< (raw_ostream &OS, const SDWAOperand &Operand) |
#define DEBUG_TYPE "si-peephole-sdwa" |
Definition at line 33 of file SIPeepholeSDWA.cpp.
|
static |
Definition at line 258 of file SIPeepholeSDWA.cpp.
References assert(), From, llvm::MachineOperand::isReg(), llvm::MachineOperand::isUse(), llvm::MachineOperand::setIsDead(), llvm::MachineOperand::setIsKill(), llvm::MachineOperand::setIsUndef(), llvm::MachineOperand::setReg(), and llvm::MachineOperand::setSubReg().
|
static |
Definition at line 299 of file SIPeepholeSDWA.cpp.
References llvm::MachineInstr::defs(), and MRI.
|
static |
Definition at line 277 of file SIPeepholeSDWA.cpp.
References llvm::MachineOperand::getParent(), llvm::MachineInstr::getParent(), isSameReg(), and MRI.
|
static |
Definition at line 270 of file SIPeepholeSDWA.cpp.
Referenced by findSingleRegUse().
|
static |
Definition at line 225 of file SIPeepholeSDWA.cpp.
References OS, llvm::AMDGPU::SDWA::UNUSED_PAD, llvm::AMDGPU::SDWA::UNUSED_PRESERVE, and llvm::AMDGPU::SDWA::UNUSED_SEXT.
|
static |
Definition at line 871 of file SIPeepholeSDWA.cpp.
References OS.
|
static |
Definition at line 212 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, OS, llvm::AMDGPU::SDWA::WORD_0, and llvm::AMDGPU::SDWA::WORD_1.
STATISTIC | ( | NumSDWAInstructionsPeepholed | , |
"Number of instruction converted to SDWA." | |||
) |
STATISTIC | ( | NumSDWAPatternsFound | , |
"Number of SDWA patterns found." | |||
) |