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   /// VarArgsFrameOffset - Frame offset to start of varargs area.
24   int VarArgsFrameOffset;
25 
26   /// IsLeafProc - True if the function is a leaf procedure.
27   bool IsLeafProc;
28 
29 public:
30   VEMachineFunctionInfo() : VarArgsFrameOffset(0), IsLeafProc(false) {}
31   explicit VEMachineFunctionInfo(MachineFunction &MF)
32       : VarArgsFrameOffset(0), IsLeafProc(false) {}
33 
34   int getVarArgsFrameOffset() const { return VarArgsFrameOffset; }
35   void setVarArgsFrameOffset(int Offset) { VarArgsFrameOffset = Offset; }
36 
37   void setLeafProc(bool rhs) { IsLeafProc = rhs; }
38   bool isLeafProc() const { return IsLeafProc; }
39 };
40 } // namespace llvm
41 
42 #endif
43