LLVM 22.0.0git
TailDuplication.h
Go to the documentation of this file.
1//===- llvm/CodeGen/TailDuplication.h ---------------------------*- 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_TAILDUPLICATIONPASS_H
10#define LLVM_CODEGEN_TAILDUPLICATIONPASS_H
11
15
16namespace llvm {
17
18template <typename DerivedT, bool PreRegAlloc>
19class TailDuplicatePassBase : public PassInfoMixin<DerivedT> {
20private:
21 std::unique_ptr<MBFIWrapper> MBFIW;
22
23public:
26};
27
29 : public TailDuplicatePassBase<EarlyTailDuplicatePass, true> {
30public:
34};
35
37 : public TailDuplicatePassBase<TailDuplicatePass, false> {};
38
39} // namespace llvm
40
42 true>;
44 false>;
45
46#endif // LLVM_CODEGEN_TAILDUPLICATIONPASS_H
MachineFunctionProperties getClearedProperties() const
Properties which a MachineFunction may have at a given point in time.
A set of analyses that are preserved following a run of a transformation pass.
Definition Analysis.h:112
PreservedAnalyses run(MachineFunction &MF, MachineFunctionAnalysisManager &MFAM)
This is an optimization pass for GlobalISel generic memory operations.
AnalysisManager< MachineFunction > MachineFunctionAnalysisManager
A CRTP mix-in to automatically provide informational APIs needed for passes.
Definition PassManager.h:70