LLVM  8.0.1
Functions
LiveRegUnits.cpp File Reference
#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/CodeGen/TargetRegisterInfo.h"
#include "llvm/MC/MCRegisterInfo.h"
Include dependency graph for LiveRegUnits.cpp:

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...
 

Function Documentation

◆ addBlockLiveIns()

static void addBlockLiveIns ( LiveRegUnits LiveUnits,
const MachineBasicBlock MBB 
)
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().

◆ addCalleeSavedRegs()

static void addCalleeSavedRegs ( LiveRegUnits LiveUnits,
const MachineFunction MF 
)
static