//===- llvm/CodeGen/TailDuplicator.h ----------------------------*- C++ -*-===// // // 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 // //===----------------------------------------------------------------------===// // // This file defines the TailDuplicator class. Used by the // TailDuplication pass, and MachineBlockPlacement. // //===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_TAILDUPLICATOR_H #define LLVM_CODEGEN_TAILDUPLICATOR_H #include "llvm/ADT/DenseMap.h" #include "llvm/ADT/DenseSet.h" #include "llvm/ADT/SmallVector.h" #include "llvm/CodeGen/TargetInstrInfo.h" #include <utility> #include <vector> namespace llvm { template <typename T, unsigned int N> class SmallSetVector; template <typename Fn> class function_ref; class MBFIWrapper; class MachineBasicBlock; class MachineBranchProbabilityInfo; class MachineFunction; class MachineInstr; class MachineModuleInfo; class MachineRegisterInfo; class ProfileSummaryInfo; class TargetRegisterInfo; /// Utility class to perform tail duplication. class TailDuplicator { … }; } // end namespace llvm #endif // LLVM_CODEGEN_TAILDUPLICATOR_H