Change allowsUnalignedMemoryAccesses to take type argument since some targets
[llvm/avr.git] / lib / Target / SystemZ / SystemZMachineFunctionInfo.h
blobe47d41962ea899c89e9fd5280b8bba2276b9fce5
1 //==- SystemZMachineFuctionInfo.h - SystemZ machine function info -*- C++ -*-=//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This file declares SystemZ-specific per-machine-function information.
12 //===----------------------------------------------------------------------===//
14 #ifndef SYSTEMZMACHINEFUNCTIONINFO_H
15 #define SYSTEMZMACHINEFUNCTIONINFO_H
17 #include "llvm/CodeGen/MachineFunction.h"
19 namespace llvm {
21 /// SystemZMachineFunctionInfo - This class is derived from MachineFunction and
22 /// contains private SystemZ target-specific information for each MachineFunction.
23 class SystemZMachineFunctionInfo : public MachineFunctionInfo {
24 /// CalleeSavedFrameSize - Size of the callee-saved register portion of the
25 /// stack frame in bytes.
26 unsigned CalleeSavedFrameSize;
28 /// LowReg - Low register of range of callee-saved registers to store.
29 unsigned LowReg;
31 /// HighReg - High register of range of callee-saved registers to store.
32 unsigned HighReg;
33 public:
34 SystemZMachineFunctionInfo() : CalleeSavedFrameSize(0) {}
36 SystemZMachineFunctionInfo(MachineFunction &MF) : CalleeSavedFrameSize(0) {}
38 unsigned getCalleeSavedFrameSize() const { return CalleeSavedFrameSize; }
39 void setCalleeSavedFrameSize(unsigned bytes) { CalleeSavedFrameSize = bytes; }
41 unsigned getLowReg() const { return LowReg; }
42 void setLowReg(unsigned Reg) { LowReg = Reg; }
44 unsigned getHighReg() const { return HighReg; }
45 void setHighReg(unsigned Reg) { HighReg = Reg; }
48 } // End llvm namespace
50 #endif