LLVM
17.0.0git
include
llvm
CodeGen
RegAllocCommon.h
Go to the documentation of this file.
1
//===- RegAllocCommon.h - Utilities shared between allocators ---*- C++ -*-===//
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_REGALLOCCOMMON_H
10
#define LLVM_CODEGEN_REGALLOCCOMMON_H
11
12
#include <functional>
13
14
namespace
llvm
{
15
16
class
TargetRegisterClass;
17
class
TargetRegisterInfo
;
18
19
typedef
std::function
<bool(
const
TargetRegisterInfo
&
TRI
,
20
const
TargetRegisterClass
&RC)>
RegClassFilterFunc
;
21
22
/// Default register class filter function for register allocation. All virtual
23
/// registers should be allocated.
24
static
inline
bool
allocateAllRegClasses
(
const
TargetRegisterInfo
&,
25
const
TargetRegisterClass
&) {
26
return
true
;
27
}
28
29
}
30
31
#endif // LLVM_CODEGEN_REGALLOCCOMMON_H
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition:
AddressRanges.h:18
llvm::TargetRegisterInfo
TargetRegisterInfo base class - We assume that the target defines a static array of TargetRegisterDes...
Definition:
TargetRegisterInfo.h:236
TRI
unsigned const TargetRegisterInfo * TRI
Definition:
MachineSink.cpp:1628
llvm::TargetRegisterClass
Definition:
TargetRegisterInfo.h:45
llvm::RegClassFilterFunc
std::function< bool(const TargetRegisterInfo &TRI, const TargetRegisterClass &RC)> RegClassFilterFunc
Definition:
RegAllocCommon.h:17
function
print Print MemDeps of function
Definition:
MemDepPrinter.cpp:82
llvm::allocateAllRegClasses
static bool allocateAllRegClasses(const TargetRegisterInfo &, const TargetRegisterClass &)
Default register class filter function for register allocation.
Definition:
RegAllocCommon.h:24
Generated on Thu Jan 26 2023 21:13:00 for LLVM by
1.8.17