|
LLVM
5.0.0
|
#include "llvm/CodeGen/LiveRegUnits.h"#include "llvm/CodeGen/MachineBasicBlock.h"#include "llvm/CodeGen/MachineFrameInfo.h"#include "llvm/CodeGen/MachineFunction.h"#include "llvm/CodeGen/MachineInstrBundle.h"#include "llvm/CodeGen/MachineOperand.h"#include "llvm/CodeGen/MachineRegisterInfo.h"#include "llvm/MC/MCRegisterInfo.h"#include "llvm/Target/TargetRegisterInfo.h"Go to the source code of this file.
Functions | |
| static void | addBlockLiveIns (LiveRegUnits &LiveUnits, const MachineBasicBlock &MBB) |
Add live-in registers of basic block MBB to LiveUnits. More... | |
| static void | addCalleeSavedRegs (LiveRegUnits &LiveUnits, const MachineFunction &MF) |
Adds all callee saved registers to LiveUnits. More... | |
| static void | addPristines (LiveRegUnits &LiveUnits, const MachineFunction &MF) |
Adds pristine registers to the given LiveUnits. More... | |
|
static |
Add live-in registers of basic block MBB to LiveUnits.
Definition at line 86 of file LiveRegUnits.cpp.
References llvm::LiveRegUnits::addRegMasked(), and llvm::MachineBasicBlock::liveins().
Referenced by llvm::LiveRegUnits::addLiveIns(), and llvm::LiveRegUnits::addLiveOuts().
|
static |
Adds all callee saved registers to LiveUnits.
Definition at line 93 of file LiveRegUnits.cpp.
References llvm::LiveRegUnits::addReg(), llvm::MachineRegisterInfo::getCalleeSavedRegs(), llvm::MachineFunction::getRegInfo(), and MRI.
Referenced by llvm::LiveRegUnits::addLiveOuts(), and addPristines().
|
static |
Adds pristine registers to the given LiveUnits.
Pristine registers are callee saved registers that are unused in the function.
Add all callee saved regs, then remove the ones that are saved+restored.
Remove the ones that are not saved/restored; they are pristine.
Definition at line 102 of file LiveRegUnits.cpp.
References addCalleeSavedRegs(), llvm::MachineFrameInfo::getCalleeSavedInfo(), llvm::MachineFunction::getFrameInfo(), llvm::MachineFrameInfo::isCalleeSavedInfoValid(), and llvm::LiveRegUnits::removeReg().
Referenced by llvm::LiveRegUnits::addLiveIns(), and llvm::LiveRegUnits::addLiveOuts().
1.8.6