llvm::MachineModuleInfo

Holds module-level metadata for code generation.

Synopsis

Declared in <llvm/CodeGen/MachineModuleInfo.h>

class MachineModuleInfo;

Description

This class contains meta information specific to a module. Queries can be made by different debugging and exception handling schemes and reformated for specific use.

Member Functions

NameDescription
MachineModuleInfo [constructor]Constructors
~MachineModuleInfo [destructor]Destroy this MachineModuleInfo and owned MachineFunctions.
deleteMachineFunctionFor Delete the MachineFunction for IR function F when its group is done.
finalize Finalize and tear down per-module state.
getContext Return the MCContext used for code generation.
getMachineFunction Return the MachineFunction for IR function F, or nullptr if none.
getModule Return the LLVM Module currently being worked on.
getObjFileInfo getObjFileInfo overloads
getOrCreateMachineFunction Return the MachineFunction for IR function F, creating one if needed.
getTarget Return the target machine associated with this module info.
groupMachineFunctionsForDeletion Group two IR functions so their MachineFunctions are deleted together once both functions have been finalized.
initialize Initialize per-module state for a new Module.
insertFunction Add an externally created MachineFunction MF for F.

Friends

NameDescription
llvm::MachineModuleAnalysisAnalysis that produces MachineModuleInfo for a module.
llvm::MachineModuleInfoWrapperPassImmutablePass wrapper that owns a MachineModuleInfo.