LLVM  3.7.0
Macros | Functions | Variables
SIFoldOperands.cpp File Reference
#include "AMDGPU.h"
#include "AMDGPUSubtarget.h"
#include "SIInstrInfo.h"
#include "llvm/CodeGen/LiveIntervalAnalysis.h"
#include "llvm/CodeGen/MachineDominators.h"
#include "llvm/CodeGen/MachineFunctionPass.h"
#include "llvm/CodeGen/MachineInstrBuilder.h"
#include "llvm/CodeGen/MachineRegisterInfo.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/LLVMContext.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/Target/TargetMachine.h"
Include dependency graph for SIFoldOperands.cpp:

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "si-fold-operands"
 

Functions

 INITIALIZE_PASS_BEGIN (SIFoldOperands, DEBUG_TYPE,"SI Fold Operands", false, false) INITIALIZE_PASS_END(SIFoldOperands
 
static bool isSafeToFold (unsigned Opcode)
 
static bool updateOperand (FoldCandidate &Fold, const TargetRegisterInfo &TRI)
 
static bool isUseMIInFoldList (const std::vector< FoldCandidate > &FoldList, const MachineInstr *MI)
 
static bool tryAddToFoldList (std::vector< FoldCandidate > &FoldList, MachineInstr *MI, unsigned OpNo, MachineOperand *OpToFold, const SIInstrInfo *TII)
 

Variables

 DEBUG_TYPE
 
SI Fold Operands
 
SI Fold false
 

Macro Definition Documentation

#define DEBUG_TYPE   "si-fold-operands"

Definition at line 26 of file SIFoldOperands.cpp.

Function Documentation

INITIALIZE_PASS_BEGIN ( SIFoldOperands  ,
DEBUG_TYPE  ,
"SI Fold Operands ,
false  ,
false   
)
static bool isSafeToFold ( unsigned  Opcode)
static

Definition at line 92 of file SIFoldOperands.cpp.

References llvm::TargetOpcode::COPY.

static bool isUseMIInFoldList ( const std::vector< FoldCandidate > &  FoldList,
const MachineInstr MI 
)
static

Definition at line 129 of file SIFoldOperands.cpp.

Referenced by tryAddToFoldList().

static bool tryAddToFoldList ( std::vector< FoldCandidate > &  FoldList,
MachineInstr MI,
unsigned  OpNo,
MachineOperand OpToFold,
const SIInstrInfo TII 
)
static
static bool updateOperand ( FoldCandidate &  Fold,
const TargetRegisterInfo TRI 
)
static

Variable Documentation

DEBUG_TYPE

Definition at line 81 of file SIFoldOperands.cpp.

SI Fold false

Definition at line 81 of file SIFoldOperands.cpp.

SI Fold Operands