1 //===- llvm/CodeGen/MachineLateInstrsCleanup.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 #ifndef LLVM_CODEGEN_MACHINELATEINSTRSCLEANUP_H 9 #define LLVM_CODEGEN_MACHINELATEINSTRSCLEANUP_H 10 11 #include "llvm/CodeGen/MachinePassManager.h" 12 13 namespace llvm { 14 15 class MachineLateInstrsCleanupPass 16 : public PassInfoMixin<MachineLateInstrsCleanupPass> { 17 public: 18 PreservedAnalyses run(MachineFunction &MachineFunction, 19 MachineFunctionAnalysisManager &MachineFunctionAM); 20 21 MachineFunctionProperties getRequiredProperties() const { 22 return MachineFunctionProperties().setNoVRegs(); 23 } 24 }; 25 26 } // namespace llvm 27 28 #endif // LLVM_CODEGEN_MACHINELATEINSTRSCLEANUP_H 29