LLVM 20.0.0git
RegAllocFast.h
Go to the documentation of this file.
1//==- RegAllocFast.h ----------- fast register allocator ----------*-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_REGALLOCFAST_H
10#define LLVM_CODEGEN_REGALLOCFAST_H
11
14
15namespace llvm {
16
20 bool ClearVRegs = true;
21};
22
23class RegAllocFastPass : public PassInfoMixin<RegAllocFastPass> {
25
26public:
28 : Opts(Opts) {}
29
33 }
34
36 if (Opts.ClearVRegs) {
39 }
40
42 }
43
47 }
48
50
52 function_ref<StringRef(StringRef)> MapClassName2PassName);
53
54 static bool isRequired() { return true; }
55};
56
57} // namespace llvm
58
59#endif // LLVM_CODEGEN_REGALLOCFAST_H
raw_pwrite_stream & OS
A container for analyses that lazily runs them and caches their results.
Definition: PassManager.h:253
Properties which a MachineFunction may have at a given point in time.
MachineFunctionProperties & set(Property P)
A set of analyses that are preserved following a run of a transformation pass.
Definition: Analysis.h:111
static bool isRequired()
Definition: RegAllocFast.h:54
MachineFunctionProperties getRequiredProperties() const
Definition: RegAllocFast.h:30
MachineFunctionProperties getClearedProperties() const
Definition: RegAllocFast.h:44
PreservedAnalyses run(MachineFunction &MF, MachineFunctionAnalysisManager &)
MachineFunctionProperties getSetProperties() const
Definition: RegAllocFast.h:35
void printPipeline(raw_ostream &OS, function_ref< StringRef(StringRef)> MapClassName2PassName)
RegAllocFastPass(RegAllocFastPassOptions Opts=RegAllocFastPassOptions())
Definition: RegAllocFast.h:27
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:51
An efficient, type-erasing, non-owning reference to a callable.
This class implements an extremely fast bulk output stream that can only output to a stream.
Definition: raw_ostream.h:52
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18
std::function< bool(const TargetRegisterInfo &TRI, const MachineRegisterInfo &MRI, const Register Reg)> RegAllocFilterFunc
Filter function for register classes during regalloc.
A CRTP mix-in to automatically provide informational APIs needed for passes.
Definition: PassManager.h:69
RegAllocFilterFunc Filter
Definition: RegAllocFast.h:18