Extract a variable location from a machine instruction.

Synopsis

Declared in <llvm/CodeGen/DebugHandlerBase.h>

static
std::optional<DbgVariableLocation>
extractFromMachineInstruction(MachineInstr const& Instruction);

Description

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.

Return Value

Extracted location, or an empty optional if extraction fails.

Parameters

Name

Description

Instruction

Machine instruction to extract a location from.

Created with MrDocs