Go to the source code of this file.
|
class | DbgValueLocation |
| Describes a location by number along with some flags about the original usage of the location. More...
|
|
|
| STATISTIC (NumInsertedDebugValues, "Number of DBG_VALUEs inserted") |
|
| INITIALIZE_PASS_BEGIN (LiveDebugVariables, DEBUG_TYPE, "Debug Variable Analysis", false, false) INITIALIZE_PASS_END(LiveDebugVariables |
|
static void | printDebugLoc (const DebugLoc &DL, raw_ostream &CommentOS, const LLVMContext &Ctx) |
|
static void | printExtendedName (raw_ostream &OS, const DILocalVariable *V, const DILocation *DL) |
|
static void | removeDebugValues (MachineFunction &mf) |
|
static MachineBasicBlock::iterator | findInsertLocation (MachineBasicBlock *MBB, SlotIndex Idx, LiveIntervals &LIS) |
| Find an iterator for inserting a DBG_VALUE instruction. More...
|
|
static MachineBasicBlock::iterator | findNextInsertLocation (MachineBasicBlock *MBB, MachineBasicBlock::iterator I, SlotIndex StopIdx, MachineOperand &LocMO, LiveIntervals &LIS, const TargetRegisterInfo &TRI) |
| Find an iterator for inserting the next DBG_VALUE instruction (or end if no more insert locations found). More...
|
|
◆ DEBUG_TYPE
#define DEBUG_TYPE "livedebugvars" |
◆ LocMap
◆ SpillOffsetMap
Map of stack slot offsets for spilled locations.
Non-spilled locations are not added to the map.
Definition at line 140 of file LiveDebugVariables.cpp.
◆ anonymous enum
◆ findInsertLocation()
◆ findNextInsertLocation()
Find an iterator for inserting the next DBG_VALUE instruction (or end if no more insert locations found).
Definition at line 1179 of file LiveDebugVariables.cpp.
References assert(), llvm::BuildMI(), llvm::MachineOperand::CreateReg(), llvm::MachineBasicBlock::end(), llvm::MachineFunction::end(), findInsertLocation(), llvm::MCInstrInfo::get(), getDebugLoc(), llvm::LiveIntervals::getInstructionIndex(), llvm::VirtRegMap::getMachineFunction(), llvm::LiveIntervals::getMBBEndIdx(), llvm::MachineOperand::getReg(), I, llvm::MachineBasicBlock::instr_end(), llvm::SlotIndex::isEarlierEqualInstr(), llvm::MachineOperand::isFI(), llvm::LiveIntervals::isNotInMIMap(), llvm::MachineOperand::isReg(), DbgValueLocation::isUndef(), DbgValueLocation::locNo(), llvm::DIExpression::NoDeref, llvm::DIExpression::prepend(), Reg, DbgValueLocation::wasIndirect(), and llvm::DIExpression::WithDeref.
◆ INITIALIZE_PASS_BEGIN()
◆ printDebugLoc()
◆ printExtendedName()
Definition at line 448 of file LiveDebugVariables.cpp.
References assert(), llvm::MachineBasicBlock::begin(), llvm::MachineFunction::begin(), llvm::MachineOperand::CreateReg(), llvm::dbgs(), llvm::StringRef::empty(), llvm::MachineBasicBlock::end(), llvm::MachineFunction::end(), llvm::MachineBasicBlock::erase(), llvm::MDNode::getContext(), llvm::MachineInstr::getDebugExpression(), llvm::MachineInstr::getDebugLoc(), llvm::MachineInstr::getDebugVariable(), llvm::MachineOperand::getImm(), llvm::DIVariable::getLine(), llvm::DIVariable::getName(), llvm::MachineInstr::getNumOperands(), llvm::MachineInstr::getOperand(), llvm::MachineOperand::getReg(), getReg(), I, llvm::MachineOperand::isImm(), llvm::MachineOperand::isMetadata(), isReg(), llvm::MachineOperand::isReg(), llvm::TargetRegisterInfo::isVirtualRegister(), LLVM_DEBUG, MI, llvm::Pass::print(), print(), printDebugLoc(), llvm::LiveRange::Query(), Reg, llvm::MachineOperand::setIsDebug(), TRI, and llvm::LiveQueryResult::valueOutOrDead().
◆ removeDebugValues()
◆ STATISTIC()
STATISTIC |
( |
NumInsertedDebugValues |
, |
|
|
"Number of DBG_VALUEs inserted" |
|
|
) |
| |
◆ Analysis
◆ DEBUG_TYPE
◆ EnableLDV
◆ false