LLVM  5.0.0
Macros | Functions
SIPeepholeSDWA.cpp File Reference
#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>
Include dependency graph for SIPeepholeSDWA.cpp:

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)
 

Macro Definition Documentation

#define DEBUG_TYPE   "si-peephole-sdwa"

Definition at line 36 of file SIPeepholeSDWA.cpp.

Function Documentation

static void copyRegOperand ( MachineOperand &  To,
const MachineOperand &  From 
)
static
static bool isSameReg ( const MachineOperand &  LHS,
const MachineOperand &  RHS 
)
static
static bool isSubregOf ( const MachineOperand &  SubReg,
const MachineOperand &  SuperReg,
const TargetRegisterInfo *  TRI 
)
static
static raw_ostream& operator<< ( raw_ostream &  OS,
const SdwaSel &  Sel 
)
static
static raw_ostream& operator<< ( raw_ostream &  OS,
const DstUnused &  Un 
)
static
static raw_ostream& operator<< ( raw_ostream &  OS,
const SDWASrcOperand &  Src 
)
static

Definition at line 188 of file SIPeepholeSDWA.cpp.

static raw_ostream& operator<< ( raw_ostream &  OS,
const SDWADstOperand &  Dst 
)
static

Definition at line 196 of file SIPeepholeSDWA.cpp.

STATISTIC ( NumSDWAPatternsFound  ,
"Number of SDWA patterns found."   
)
STATISTIC ( NumSDWAInstructionsPeepholed  ,
"Number of instruction converted to SDWA."   
)