blob: 757ca8e112eec3a2b695d90d99ae26e90c0253ce [file] [log] [blame]
//===- RegAllocCommon.h - Utilities shared between allocators ---*- C++ -*-===//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#include <functional>
namespace llvm {
class TargetRegisterClass;
class TargetRegisterInfo;
typedef std::function<bool(const TargetRegisterInfo &TRI,
const TargetRegisterClass &RC)> RegClassFilterFunc;
/// Default register class filter function for register allocation. All virtual
/// registers should be allocated.
static inline bool allocateAllRegClasses(const TargetRegisterInfo &,
const TargetRegisterClass &) {
return true;