LLVM 22.0.0git
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
13#include <functional>
14
15namespace llvm {
16
20
21/// Filter function for register classes during regalloc. Default register class
22/// filter is nullptr, where all registers should be allocated.
23typedef std::function<bool(const TargetRegisterInfo &TRI,
24 const MachineRegisterInfo &MRI, const Register Reg)>
26}
27
28#endif // LLVM_CODEGEN_REGALLOCCOMMON_H
unsigned const MachineRegisterInfo * MRI
Register Reg
Register const TargetRegisterInfo * TRI
MachineRegisterInfo - Keep track of information for virtual and physical registers,...
Wrapper class representing virtual and physical registers.
Definition Register.h:19
TargetRegisterInfo base class - We assume that the target defines a static array of TargetRegisterDes...
This is an optimization pass for GlobalISel generic memory operations.
std::function< bool(const TargetRegisterInfo &TRI, const MachineRegisterInfo &MRI, const Register Reg)> RegAllocFilterFunc
Filter function for register classes during regalloc.