|
LLVM
5.0.0
|
This file implements the LivePhysRegs utility for tracking liveness of physical registers. More...
#include "llvm/ADT/SparseSet.h"#include "llvm/CodeGen/MachineBasicBlock.h"#include "llvm/MC/MCRegisterInfo.h"#include "llvm/Target/TargetRegisterInfo.h"#include <cassert>#include <utility>Go to the source code of this file.
Classes | |
| class | llvm::LivePhysRegs |
| A set of physical registers with utility functions to track liveness when walking backward/forward through a basic block. More... | |
Namespaces | |
| llvm | |
| Compute iterated dominance frontiers using a linear time algorithm. | |
Functions | |
| raw_ostream & | llvm::operator<< (raw_ostream &OS, const LivePhysRegs &LR) |
| void | llvm::computeLiveIns (LivePhysRegs &LiveRegs, const MachineRegisterInfo &MRI, MachineBasicBlock &MBB) |
Computes the live-in list for MBB assuming all of its successors live-in lists are up-to-date. More... | |
This file implements the LivePhysRegs utility for tracking liveness of physical registers.
This can be used for ad-hoc liveness tracking after register allocation. You can start with the live-ins/live-outs at the beginning/end of a block and update the information while walking the instructions inside the block. This implementation tracks the liveness on a sub-register granularity.
We assume that the high bits of a physical super-register are not preserved unless the instruction has an implicit-use operand reading the super- register.
X86 Example: YMM0<def> = ... XMM0<def> = ... (Kills XMM0, all XMM0s sub-registers, and YMM0)
YMM0<def> = ... XMM0<def> = ..., YMM0<imp-use> (YMM0 and all its sub-registers are alive)
Definition in file LivePhysRegs.h.
1.8.6