LLVM API Documentation
#include <LiveVariables.h>
Inheritance diagram for llvm::LiveVariables:
Definition at line 39 of file LiveVariables.h.
|
killed_iterator - Iterate over registers killed by a machine instruction Definition at line 113 of file LiveVariables.h. |
|
addVirtualRegisterDead - Add information about the fact that the specified register is dead after being used by the specified instruction. Definition at line 188 of file LiveVariables.h. References getVarInfo(), and llvm::LiveVariables::VarInfo::Kills. |
|
addVirtualRegisterKilled - Add information about the fact that the specified register is killed after being used by the specified instruction. Definition at line 152 of file LiveVariables.h. References getVarInfo(), and llvm::LiveVariables::VarInfo::Kills. Referenced by llvm::LiveIntervals::addIntervalsForSpills(). |
|
Definition at line 128 of file LiveVariables.h. |
|
Definition at line 131 of file LiveVariables.h. |
|
Definition at line 135 of file LiveVariables.h. Referenced by instructionChanged(). |
|
getAnalysisUsage - This function should be overriden by passes that need analysis information to do their job. If a pass specifies that it uses a particular analysis result to this function, it can then use the getAnalysis<AnalysisType>() function, below. Reimplemented from llvm::Pass. Definition at line 220 of file LiveVariables.h. References llvm::AnalysisUsage::setPreservesAll(). |
|
getVarInfo - Return the VarInfo structure for the specified VIRTUAL register. Definition at line 41 of file LiveVariables.cpp. References llvm::MRegisterInfo::FirstVirtualRegister, and llvm::MRegisterInfo::isVirtualRegister(). Referenced by addVirtualRegisterDead(), addVirtualRegisterKilled(), instructionChanged(), removeVirtualRegisterDead(), removeVirtualRegisterKilled(), removeVirtualRegistersDead(), removeVirtualRegistersKilled(), and runOnMachineFunction(). |
|
Definition at line 84 of file LiveVariables.cpp. References llvm::LiveVariables::VarInfo::DefInst, E, llvm::MachineInstr::getParent(), llvm::LiveVariables::VarInfo::Kills, MarkVirtRegAliveInBlock(), llvm::MachineBasicBlock::pred_begin(), and llvm::MachineBasicBlock::pred_end(). Referenced by runOnMachineFunction(). |
|
instructionChanged - When the address of an instruction changes, this method should be called so that live variables can update its internal data structures. This removes the records for OldMI, transfering them to the records for NewMI. Definition at line 299 of file LiveVariables.cpp. References dead_range(), llvm::LiveVariables::VarInfo::DefInst, E, llvm::MachineInstr::getNumOperands(), llvm::MachineInstr::getOperand(), llvm::MachineOperand::getReg(), getVarInfo(), I, llvm::MachineOperand::isDef(), llvm::MachineOperand::isRegister(), llvm::MRegisterInfo::isVirtualRegister(), killed_range(), and llvm::tie(). |
|
killed_begin/end - Get access to the range of registers killed by a machine instruction. Definition at line 117 of file LiveVariables.h. Referenced by removeVirtualRegisterDead(), and removeVirtualRegisterKilled(). |
|
Definition at line 120 of file LiveVariables.h. Referenced by removeVirtualRegisterDead(), and removeVirtualRegisterKilled(). |
|
Definition at line 124 of file LiveVariables.h. Referenced by instructionChanged(). |
|
Definition at line 56 of file LiveVariables.cpp. References llvm::LiveVariables::VarInfo::AliveBlocks, llvm::LiveVariables::VarInfo::DefInst, E, llvm::MachineBasicBlock::getNumber(), llvm::MachineInstr::getParent(), llvm::LiveVariables::VarInfo::Kills, llvm::MachineBasicBlock::pred_begin(), and llvm::MachineBasicBlock::pred_end(). Referenced by HandleVirtRegUse(), and runOnMachineFunction(). |
|
releaseMemory() - This member can be implemented by a pass if it wants to be able to release its memory when it is no longer needed. The default behavior of passes is to hold onto memory for the entire duration of their lifetime (which is the entire compile time). For pipelined passes, this is not a big deal because that memory gets recycled every time the pass is invoked on another program unit. For IP passes, it is more important to free memory when it is unused. Optionally implement this function to release pass memory when it is no longer used. Reimplemented from llvm::Pass. Definition at line 224 of file LiveVariables.h. |
|
removeVirtualRegisterDead - Remove the specified virtual register from the live variable information. Returns true if the variable was marked dead at the specified instruction, false otherwise. Definition at line 197 of file LiveVariables.h. References getVarInfo(), killed_begin(), and killed_end(). |
|
removeVirtualRegisterKilled - Remove the specified virtual register from the live variable information. Returns true if the variable was marked as killed by the specified instruction, false otherwise. Definition at line 161 of file LiveVariables.h. References getVarInfo(), killed_begin(), and killed_end(). |
|
removeVirtualRegistersDead - Remove all of the specified dead registers from the live variable information. Definition at line 214 of file LiveVariables.h. References getVarInfo(), I, and llvm::LiveVariables::VarInfo::removeKill(). |
|
removeVirtualRegistersKilled - Remove all of the specified killed registers from the live variable information. Definition at line 177 of file LiveVariables.h. References getVarInfo(), I, and llvm::LiveVariables::VarInfo::removeKill(). |
|