| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
#ifndef LLVM_CODEGEN_BASICBLOCKSECTIONUTILS_H |
| 10 |
#define LLVM_CODEGEN_BASICBLOCKSECTIONUTILS_H |
| 11 |
|
| 12 |
#include "llvm/ADT/STLExtras.h" |
| 13 |
#include "llvm/Support/CommandLine.h" |
| 14 |
|
| 15 |
namespace llvm { |
| 16 |
|
| 17 |
extern cl::opt<std::string> BBSectionsColdTextPrefix; |
| 18 |
|
| 19 |
class MachineFunction; |
| 20 |
class MachineBasicBlock; |
| 21 |
|
| 22 |
using MachineBasicBlockComparator = |
| 23 |
function_ref<bool(const MachineBasicBlock &, const MachineBasicBlock &)>; |
| 24 |
|
| 25 |
void sortBasicBlocksAndUpdateBranches(MachineFunction &MF, |
| 26 |
MachineBasicBlockComparator MBBCmp); |
| 27 |
|
| 28 |
} |
| 29 |
|
| 30 |
#endif |