MachineBasicBlock *MBB = ...; MachineFunction *MF = MBB->getParent();
llvm::MachineFunction &MF = ...; for (llvm::MachineBasicBlock &MBB : MF) { llvm::MachineBasicBlock *parentBlock = MBB.getParent(); // ... }This code iterates over all basic blocks in a MachineFunction and obtains a pointer to each block's parent MachineFunction using the getParent function. It then uses this information to perform further operations specific to each parent function. The getParent function is part of the LLVM library, specifically the MachineBasicBlock class in the MachineFunction package.