[ARM] VQADD instructions
[llvm-complete.git] / lib / Target / Sparc / SparcMachineFunctionInfo.h
blobfe5705878693316f39b6212556c3e1c45a25bfd0
1 //===- SparcMachineFunctionInfo.h - Sparc 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 Sparc specific per-machine-function information.
11 //===----------------------------------------------------------------------===//
12 #ifndef LLVM_LIB_TARGET_SPARC_SPARCMACHINEFUNCTIONINFO_H
13 #define LLVM_LIB_TARGET_SPARC_SPARCMACHINEFUNCTIONINFO_H
15 #include "llvm/CodeGen/MachineFunction.h"
17 namespace llvm {
19 class SparcMachineFunctionInfo : public MachineFunctionInfo {
20 virtual void anchor();
21 private:
22 unsigned GlobalBaseReg;
24 /// VarArgsFrameOffset - Frame offset to start of varargs area.
25 int VarArgsFrameOffset;
27 /// SRetReturnReg - Holds the virtual register into which the sret
28 /// argument is passed.
29 unsigned SRetReturnReg;
31 /// IsLeafProc - True if the function is a leaf procedure.
32 bool IsLeafProc;
33 public:
34 SparcMachineFunctionInfo()
35 : GlobalBaseReg(0), VarArgsFrameOffset(0), SRetReturnReg(0),
36 IsLeafProc(false) {}
37 explicit SparcMachineFunctionInfo(MachineFunction &MF)
38 : GlobalBaseReg(0), VarArgsFrameOffset(0), SRetReturnReg(0),
39 IsLeafProc(false) {}
41 unsigned getGlobalBaseReg() const { return GlobalBaseReg; }
42 void setGlobalBaseReg(unsigned Reg) { GlobalBaseReg = Reg; }
44 int getVarArgsFrameOffset() const { return VarArgsFrameOffset; }
45 void setVarArgsFrameOffset(int Offset) { VarArgsFrameOffset = Offset; }
47 unsigned getSRetReturnReg() const { return SRetReturnReg; }
48 void setSRetReturnReg(unsigned Reg) { SRetReturnReg = Reg; }
50 void setLeafProc(bool rhs) { IsLeafProc = rhs; }
51 bool isLeafProc() const { return IsLeafProc; }
55 #endif