LLVM API Documentation
#include "llvm/CodeGen/CalcSpillWeights.h"
#include "llvm/CodeGen/LiveIntervalAnalysis.h"
#include "llvm/CodeGen/MachineBlockFrequencyInfo.h"
#include "llvm/CodeGen/MachineFunction.h"
#include "llvm/CodeGen/MachineLoopInfo.h"
#include "llvm/CodeGen/MachineRegisterInfo.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/Target/TargetInstrInfo.h"
#include "llvm/Target/TargetMachine.h"
#include "llvm/Target/TargetRegisterInfo.h"
#include "llvm/Target/TargetSubtargetInfo.h"
Go to the source code of this file.
Defines | |
#define | DEBUG_TYPE "calcspillweights" |
Functions | |
static unsigned | copyHint (const MachineInstr *mi, unsigned reg, const TargetRegisterInfo &tri, const MachineRegisterInfo &mri) |
static bool | isRematerializable (const LiveInterval &LI, const LiveIntervals &LIS, const TargetInstrInfo &TII) |
#define DEBUG_TYPE "calcspillweights" |
Definition at line 24 of file CalcSpillWeights.cpp.
static unsigned copyHint | ( | const MachineInstr * | mi, |
unsigned | reg, | ||
const TargetRegisterInfo & | tri, | ||
const MachineRegisterInfo & | mri | ||
) | [static] |
Definition at line 45 of file CalcSpillWeights.cpp.
References llvm::TargetRegisterClass::contains(), llvm::TargetRegisterInfo::getMatchingSuperReg(), llvm::MachineInstr::getOperand(), llvm::MachineOperand::getReg(), llvm::MachineRegisterInfo::getRegClass(), llvm::MachineOperand::getSubReg(), llvm::TargetRegisterInfo::isVirtualRegister(), and sub().
Referenced by llvm::VirtRegAuxInfo::calculateSpillWeightAndHint().
static bool isRematerializable | ( | const LiveInterval & | LI, |
const LiveIntervals & | LIS, | ||
const TargetInstrInfo & | TII | ||
) | [static] |
Definition at line 76 of file CalcSpillWeights.cpp.
References llvm::VNInfo::def, llvm::LiveIntervals::getAliasAnalysis(), llvm::LiveIntervals::getInstructionFromIndex(), I, llvm::VNInfo::isPHIDef(), llvm::TargetInstrInfo::isTriviallyReMaterializable(), llvm::VNInfo::isUnused(), llvm::AArch64CC::MI, llvm::LiveRange::vni_begin(), and llvm::LiveRange::vni_end().
Referenced by llvm::VirtRegAuxInfo::calculateSpillWeightAndHint().