The MachineFunction getMMI is a method used in the LLVM API for retrieving the MachineModuleInfo object associated with a given MachineFunction.
Here are some code examples that demonstrate the use of this method:
Example 1:
llvm::MachineFunction &MF = ... llvm::MachineModuleInfo &MMI = MF.getMMI(); // use MMI to access module information
In this example, we first get a MachineFunction object (MF), and then call the getMMI method to obtain the MachineModuleInfo object (MMI) associated with MF. We can then use MMI to access module information.
Example 2:
void MyPass::runOnMachineFunction(llvm::MachineFunction &MF) { llvm::MachineModuleInfo &MMI = MF.getMMI(); // do some work with MMI... }
In this example, we have a pass that operates on a MachineFunction. In the pass's runOnMachineFunction method, we get the MMI object associated with the MachineFunction and perform some work using MMI.
The package library that contains the MachineFunction and associated classes is the LLVM Core libraries.
C++ (Cpp) MachineFunction::getMMI - 30 examples found. These are the top rated real world C++ (Cpp) examples of MachineFunction::getMMI extracted from open source projects. You can rate examples to help us improve the quality of examples.