struct DbgVariableLocation
Declaration
struct DbgVariableLocation { /* full declaration omitted */ };
Description
Represents the location at which a variable is stored.
Declared at: llvm/include/llvm/CodeGen/DebugHandlerBase.h:31
Member Variables
- public unsigned int Register
- Base register.
- public SmallVector<int64_t, 1> LoadChain
- Chain of offsetted loads necessary to load the value if it lives in memory. Every load except for the last is pointer-sized.
- public llvm::Optional<llvm::DIExpression::FragmentInfo> FragmentInfo
- Present if the location is part of a larger variable.
Method Overview
- public static Optional<llvm::DbgVariableLocation> extractFromMachineInstruction(const llvm::MachineInstr & Instruction)
Methods
ΒΆstatic Optional<llvm::DbgVariableLocation>
extractFromMachineInstruction(
const llvm::MachineInstr& Instruction)
static Optional<llvm::DbgVariableLocation>
extractFromMachineInstruction(
const llvm::MachineInstr& Instruction)
Description
Extract a VariableLocation from a MachineInstr. This will only work if Instruction is a debug value instruction and the associated DIExpression is in one of the supported forms. If these requirements are not met, the returned Optional will not have a value.
Declared at: llvm/include/llvm/CodeGen/DebugHandlerBase.h:48
Parameters
- const llvm::MachineInstr& Instruction