Add synthesized debug information to a MachineFunction.
Declared in <llvm/CodeGen/MachineDebugify.h>
bool
applyDebugifyMetadataToMachineFunction(
DIBuilder& DIB,
Function& F,
llvm::function_ref<MachineFunction*(Function&)> GetMF);
Assigns sequential debug locations to each machine instruction and inserts DBG_VALUE instructions after non-terminator instructions, using IR-level debugify variables. Used by both the legacy and the new pass manager.
True if synthetic debug info was applied; false if GetMF returned nullptr.
| Name | Description |
|---|---|
| DIB | Builder for constructing debug info metadata. |
| F | Function whose MachineFunction receives the synthetic debug info. Must already have a DISubprogram from IR-level debugify. |
| GetMF | Callback that returns the MachineFunction for a Function, or nullptr if none exists. |