[ORC] Add std::tuple support to SimplePackedSerialization.
[llvm-project.git] / llvm / lib / Target / VE / VEMachineFunctionInfo.h
blob16b25fed3f11d44b827c64af0bc2c5765e2a5b66
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.
11 //===----------------------------------------------------------------------===//
12 #ifndef LLVM_LIB_TARGET_VE_VEMACHINEFUNCTIONINFO_H
13 #define LLVM_LIB_TARGET_VE_VEMACHINEFUNCTIONINFO_H
15 #include "llvm/CodeGen/MachineFunction.h"
17 namespace llvm {
19 class VEMachineFunctionInfo : public MachineFunctionInfo {
20 virtual void anchor();
22 private:
23 Register GlobalBaseReg;
25 /// VarArgsFrameOffset - Frame offset to start of varargs area.
26 int VarArgsFrameOffset;
28 /// IsLeafProc - True if the function is a leaf procedure.
29 bool IsLeafProc;
31 public:
32 VEMachineFunctionInfo()
33 : GlobalBaseReg(), VarArgsFrameOffset(0), IsLeafProc(false) {}
34 explicit VEMachineFunctionInfo(MachineFunction &MF)
35 : GlobalBaseReg(), VarArgsFrameOffset(0), IsLeafProc(false) {}
37 Register getGlobalBaseReg() const { return GlobalBaseReg; }
38 void setGlobalBaseReg(Register Reg) { GlobalBaseReg = Reg; }
40 int getVarArgsFrameOffset() const { return VarArgsFrameOffset; }
41 void setVarArgsFrameOffset(int Offset) { VarArgsFrameOffset = Offset; }
43 void setLeafProc(bool rhs) { IsLeafProc = rhs; }
44 bool isLeafProc() const { return IsLeafProc; }
46 } // namespace llvm
48 #endif