LLVM 19.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
12#include <functional>
13
14namespace llvm {
15
16class TargetRegisterClass;
17class TargetRegisterInfo;
18
19/// Filter function for register classes during regalloc. Default register class
20/// filter is nullptr, where all registers should be allocated.
21typedef std::function<bool(const TargetRegisterInfo &TRI,
22 const TargetRegisterClass &RC)>
24}
25
26#endif // LLVM_CODEGEN_REGALLOCCOMMON_H
unsigned const TargetRegisterInfo * TRI
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18
std::function< bool(const TargetRegisterInfo &TRI, const TargetRegisterClass &RC)> RegClassFilterFunc
Filter function for register classes during regalloc.