1 //===- VEMachineFunctionInfo.h - VE Machine Function Info -------*- 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 // This file declares VE specific per-machine-function information. 10 // 11 //===----------------------------------------------------------------------===// 12 #ifndef LLVM_LIB_TARGET_VE_VEMACHINEFUNCTIONINFO_H 13 #define LLVM_LIB_TARGET_VE_VEMACHINEFUNCTIONINFO_H 14 15 #include "llvm/CodeGen/MachineFunction.h" 16 17 namespace llvm { 18 19 class VEMachineFunctionInfo : public MachineFunctionInfo { 20 virtual void anchor(); 21 22 private: 23 /// IsLeafProc - True if the function is a leaf procedure. 24 bool IsLeafProc; 25 26 public: 27 VEMachineFunctionInfo() : IsLeafProc(false) {} 28 explicit VEMachineFunctionInfo(MachineFunction &MF) : IsLeafProc(false) {} 29 30 void setLeafProc(bool rhs) { IsLeafProc = rhs; } 31 bool isLeafProc() const { return IsLeafProc; } 32 }; 33 } // namespace llvm 34 35 #endif 36