//=- MachineLoopUtils.cpp - Functions for manipulating loops ----------------=// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// #include "llvm/CodeGen/MachineLoopUtils.h" #include "llvm/CodeGen/MachineBasicBlock.h" #include "llvm/CodeGen/MachineRegisterInfo.h" #include "llvm/CodeGen/TargetInstrInfo.h" usingnamespacellvm; namespace { // MI's parent and BB are clones of each other. Find the equivalent copy of MI // in BB. MachineInstr &findEquivalentInstruction(MachineInstr &MI, MachineBasicBlock *BB) { … } } // namespace MachineBasicBlock *llvm::PeelSingleBlockLoop(LoopPeelDirection Direction, MachineBasicBlock *Loop, MachineRegisterInfo &MRI, const TargetInstrInfo *TII) { … }