|
LLVM 22.0.0git
|
#include "GCNVOPDUtils.h"#include "AMDGPUSubtarget.h"#include "GCNSubtarget.h"#include "MCTargetDesc/AMDGPUMCTargetDesc.h"#include "SIInstrInfo.h"#include "Utils/AMDGPUBaseInfo.h"#include "llvm/ADT/STLExtras.h"#include "llvm/ADT/SmallVector.h"#include "llvm/CodeGen/MachineBasicBlock.h"#include "llvm/CodeGen/MachineInstr.h"#include "llvm/CodeGen/MachineOperand.h"#include "llvm/CodeGen/MachineRegisterInfo.h"#include "llvm/CodeGen/MacroFusion.h"#include "llvm/CodeGen/ScheduleDAG.h"#include "llvm/CodeGen/ScheduleDAGMutation.h"#include "llvm/CodeGen/TargetInstrInfo.h"#include "llvm/MC/MCInst.h"Go to the source code of this file.
Macros | |
| #define | DEBUG_TYPE "gcn-vopd-utils" |
Functions | |
| static bool | shouldScheduleVOPDAdjacent (const TargetInstrInfo &TII, const TargetSubtargetInfo &TSI, const MachineInstr *FirstMI, const MachineInstr &SecondMI) |
| Check if the instr pair, FirstMI and SecondMI, should be scheduled together. | |
| #define DEBUG_TYPE "gcn-vopd-utils" |
Definition at line 35 of file GCNVOPDUtils.cpp.
|
static |
Check if the instr pair, FirstMI and SecondMI, should be scheduled together.
Given SecondMI, when FirstMI is unspecified, then check if SecondMI may be part of a fused pair at all.
Definition at line 188 of file GCNVOPDUtils.cpp.
References llvm::checkVOPDRegConstraints(), llvm::AMDGPU::getCanBeVOPD(), llvm::MachineInstr::getOpcode(), llvm::SIInstrInfo::getSubtarget(), llvm::AMDGPU::getVOPDEncodingFamily(), Opc, and TII.
Referenced by llvm::createVOPDPairingMutation().