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
55} // namespace llvm
56
57#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
MachineFunctionProperties getSetProperties()
Definition: RegAllocFast.h:35
PreservedAnalyses run(MachineFunction &MF, MachineFunctionAnalysisManager &)
MachineFunctionProperties getClearedProperties()
Definition: RegAllocFast.h:44
void printPipeline(raw_ostream &OS, function_ref< StringRef(StringRef)> MapClassName2PassName)
RegAllocFastPass(RegAllocFastPassOptions Opts=RegAllocFastPassOptions())
Definition: RegAllocFast.h:27
MachineFunctionProperties getRequiredProperties()
Definition: RegAllocFast.h:30
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:50
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