1 //===- llvm/CodeGen/PostRASchedulerList.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_POSTRASCHEDULERLIST_H 10 #define LLVM_CODEGEN_POSTRASCHEDULERLIST_H 11 12 #include "llvm/CodeGen/MachinePassManager.h" 13 14 namespace llvm { 15 16 class PostRASchedulerPass : public PassInfoMixin<PostRASchedulerPass> { 17 const TargetMachine *TM; 18 19 public: PostRASchedulerPass(const TargetMachine * TM)20 PostRASchedulerPass(const TargetMachine *TM) : TM(TM) {} 21 PreservedAnalyses run(MachineFunction &MF, 22 MachineFunctionAnalysisManager &MFAM); 23 getRequiredProperties()24 MachineFunctionProperties getRequiredProperties() const { 25 return MachineFunctionProperties().setNoVRegs(); 26 } 27 }; 28 29 } // namespace llvm 30 31 #endif // LLVM_CODEGEN_POSTRASCHEDULERLIST_H 32