LLVM  3.7.0
Functions
LivePhysRegs.cpp File Reference
#include "llvm/CodeGen/LivePhysRegs.h"
#include "llvm/CodeGen/MachineFrameInfo.h"
#include "llvm/CodeGen/MachineFunction.h"
#include "llvm/CodeGen/MachineInstrBundle.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/raw_ostream.h"
Include dependency graph for LivePhysRegs.cpp:

Go to the source code of this file.

Functions

static void addLiveIns (LivePhysRegs &LiveRegs, const MachineBasicBlock &MBB)
 Add live-in registers of basic block MBB to LiveRegs. More...
 
static void addPristines (LivePhysRegs &LiveRegs, const MachineFunction &MF, const TargetRegisterInfo &TRI)
 Add pristine registers to the given LiveRegs. More...
 

Function Documentation

static void addLiveIns ( LivePhysRegs LiveRegs,
const MachineBasicBlock MBB 
)
static

Add live-in registers of basic block MBB to LiveRegs.

Definition at line 130 of file LivePhysRegs.cpp.

References llvm::LivePhysRegs::addReg(), llvm::MachineBasicBlock::livein_begin(), llvm::MachineBasicBlock::livein_end(), and llvm::make_range().

static void addPristines ( LivePhysRegs LiveRegs,
const MachineFunction MF,
const TargetRegisterInfo TRI 
)
static

Add pristine registers to the given LiveRegs.

This function removes actually saved callee save registers when InPrologueEpilogue is false.

Definition at line 137 of file LivePhysRegs.cpp.

References llvm::LivePhysRegs::addReg(), llvm::MachineFrameInfo::getCalleeSavedInfo(), llvm::TargetRegisterInfo::getCalleeSavedRegs(), llvm::MachineFunction::getFrameInfo(), llvm::MachineFrameInfo::isCalleeSavedInfoValid(), and llvm::LivePhysRegs::removeReg().

Referenced by llvm::LivePhysRegs::addLiveIns(), and llvm::LivePhysRegs::addLiveOuts().