LLVM 22.0.0git
MachineCopyPropagation.h
Go to the documentation of this file.
1//===- llvm/CodeGen/MachineCopyPropagation.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_MACHINECOPYPROPAGATION_H
10#define LLVM_CODEGEN_MACHINECOPYPROPAGATION_H
11
13
14namespace llvm {
15
17 : public PassInfoMixin<MachineCopyPropagationPass> {
18 bool UseCopyInstr;
19
20public:
21 MachineCopyPropagationPass(bool UseCopyInstr = false)
22 : UseCopyInstr(UseCopyInstr) {}
23
26
28 return MachineFunctionProperties().setNoVRegs();
29 }
30};
31
32} // namespace llvm
33
34#endif // LLVM_CODEGEN_MACHINECOPYPROPAGATION_H
A container for analyses that lazily runs them and caches their results.
Definition: PassManager.h:255
PreservedAnalyses run(MachineFunction &MF, MachineFunctionAnalysisManager &MFAM)
MachineFunctionProperties getRequiredProperties() const
MachineCopyPropagationPass(bool UseCopyInstr=false)
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
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18
A CRTP mix-in to automatically provide informational APIs needed for passes.
Definition: PassManager.h:70