LLVM 20.0.0git
VEMachineFunctionInfo.h
Go to the documentation of this file.
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
16
17namespace llvm {
18
20 virtual void anchor();
21
22private:
23 Register GlobalBaseReg;
24
25 /// VarArgsFrameOffset - Frame offset to start of varargs area.
26 int VarArgsFrameOffset;
27
28 /// IsLeafProc - True if the function is a leaf procedure.
29 bool IsLeafProc;
30
31public:
32 VEMachineFunctionInfo() : VarArgsFrameOffset(0), IsLeafProc(false) {}
34 : VarArgsFrameOffset(0), IsLeafProc(false) {}
35
39 const override;
40
41 Register getGlobalBaseReg() const { return GlobalBaseReg; }
42 void setGlobalBaseReg(Register Reg) { GlobalBaseReg = Reg; }
43
44 int getVarArgsFrameOffset() const { return VarArgsFrameOffset; }
45 void setVarArgsFrameOffset(int Offset) { VarArgsFrameOffset = Offset; }
46
47 void setLeafProc(bool rhs) { IsLeafProc = rhs; }
48 bool isLeafProc() const { return IsLeafProc; }
49};
50} // namespace llvm
51
52#endif
#define F(x, y, z)
Definition: MD5.cpp:55
unsigned Reg
Basic Register Allocator
Allocate memory in an ever growing pool, as if by bump-pointer.
Definition: Allocator.h:66
Wrapper class representing virtual and physical registers.
Definition: Register.h:19
TargetSubtargetInfo - Generic base class for all target subtargets.
VEMachineFunctionInfo(const Function &F, const TargetSubtargetInfo *STI)
MachineFunctionInfo * clone(BumpPtrAllocator &Allocator, MachineFunction &DestMF, const DenseMap< MachineBasicBlock *, MachineBasicBlock * > &Src2DstMBB) const override
Make a functionally equivalent copy of this MachineFunctionInfo in MF.
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18
@ Offset
Definition: DWP.cpp:480
MachineFunctionInfo - This class can be derived from and used by targets to hold private target-speci...