LLVM
15.0.0git
include
llvm
CodeGen
BasicBlockSectionUtils.h
Go to the documentation of this file.
1
//===- BasicBlockSectionUtils.h - Utilities for basic block sections --===//
2
//
3
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
// See https://llvm.org/LICENSE.txt for license information.
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
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
}
// end namespace llvm
29
30
#endif // LLVM_CODEGEN_BASICBLOCKSECTIONUTILS_H
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition:
AddressRanges.h:17
llvm::sortBasicBlocksAndUpdateBranches
void sortBasicBlocksAndUpdateBranches(MachineFunction &MF, MachineBasicBlockComparator MBBCmp)
Definition:
BasicBlockSections.cpp:295
llvm::BBSectionsColdTextPrefix
cl::opt< std::string > BBSectionsColdTextPrefix
STLExtras.h
CommandLine.h
llvm::MachineBasicBlock
Definition:
MachineBasicBlock.h:94
llvm::function_ref
An efficient, type-erasing, non-owning reference to a callable.
Definition:
STLFunctionalExtras.h:36
llvm::MachineFunction
Definition:
MachineFunction.h:241
llvm::MachineBasicBlockComparator
function_ref< bool(const MachineBasicBlock &, const MachineBasicBlock &)> MachineBasicBlockComparator
Definition:
BasicBlockSectionUtils.h:23
Generated on Wed May 18 2022 09:07:13 for LLVM by
1.8.17