Path: blob/main/contrib/llvm-project/llvm/lib/Target/VE/VEMachineFunctionInfo.h
35266 views
//===- VEMachineFunctionInfo.h - VE Machine Function Info -------*- C++ -*-===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//7//8// This file declares VE specific per-machine-function information.9//10//===----------------------------------------------------------------------===//11#ifndef LLVM_LIB_TARGET_VE_VEMACHINEFUNCTIONINFO_H12#define LLVM_LIB_TARGET_VE_VEMACHINEFUNCTIONINFO_H1314#include "llvm/CodeGen/MachineFunction.h"1516namespace llvm {1718class VEMachineFunctionInfo : public MachineFunctionInfo {19virtual void anchor();2021private:22Register GlobalBaseReg;2324/// VarArgsFrameOffset - Frame offset to start of varargs area.25int VarArgsFrameOffset;2627/// IsLeafProc - True if the function is a leaf procedure.28bool IsLeafProc;2930public:31VEMachineFunctionInfo() : VarArgsFrameOffset(0), IsLeafProc(false) {}32VEMachineFunctionInfo(const Function &F, const TargetSubtargetInfo *STI)33: VarArgsFrameOffset(0), IsLeafProc(false) {}3435MachineFunctionInfo *36clone(BumpPtrAllocator &Allocator, MachineFunction &DestMF,37const DenseMap<MachineBasicBlock *, MachineBasicBlock *> &Src2DstMBB)38const override;3940Register getGlobalBaseReg() const { return GlobalBaseReg; }41void setGlobalBaseReg(Register Reg) { GlobalBaseReg = Reg; }4243int getVarArgsFrameOffset() const { return VarArgsFrameOffset; }44void setVarArgsFrameOffset(int Offset) { VarArgsFrameOffset = Offset; }4546void setLeafProc(bool rhs) { IsLeafProc = rhs; }47bool isLeafProc() const { return IsLeafProc; }48};49} // namespace llvm5051#endif525354