LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SystemZRegisterInfo.h
Go to the documentation of this file.
1 //===-- SystemZRegisterInfo.h - SystemZ register information ----*- 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 #ifndef SystemZREGISTERINFO_H
11 #define SystemZREGISTERINFO_H
12 
13 #include "SystemZ.h"
15 
16 #define GET_REGINFO_HEADER
17 #include "SystemZGenRegisterInfo.inc"
18 
19 namespace llvm {
20 
21 namespace SystemZ {
22  // Return the subreg to use for referring to the even and odd registers
23  // in a GR128 pair. Is32Bit says whether we want a GR32 or GR64.
24  inline unsigned even128(bool Is32bit) {
25  return Is32bit ? subreg_hl32 : subreg_h64;
26  }
27  inline unsigned odd128(bool Is32bit) {
28  return Is32bit ? subreg_l32 : subreg_l64;
29  }
30 }
31 
32 class SystemZSubtarget;
33 class SystemZInstrInfo;
34 
36 private:
38 
39 public:
41 
42  // Override TargetRegisterInfo.h.
43  virtual bool requiresRegisterScavenging(const MachineFunction &MF) const
45  return true;
46  }
47  virtual bool requiresFrameIndexScavenging(const MachineFunction &MF) const
49  return true;
50  }
51  virtual bool trackLivenessAfterRegAlloc(const MachineFunction &MF) const
53  return true;
54  }
55  virtual const uint16_t *getCalleeSavedRegs(const MachineFunction *MF = 0)
56  const LLVM_OVERRIDE;
57  virtual BitVector getReservedRegs(const MachineFunction &MF)
58  const LLVM_OVERRIDE;
59  virtual void eliminateFrameIndex(MachineBasicBlock::iterator MI,
60  int SPAdj, unsigned FIOperandNum,
61  RegScavenger *RS) const LLVM_OVERRIDE;
62  virtual unsigned getFrameRegister(const MachineFunction &MF) const
63  LLVM_OVERRIDE;
64 };
65 
66 } // end namespace llvm
67 
68 #endif
virtual bool requiresFrameIndexScavenging(const MachineFunction &MF) const LLVM_OVERRIDE
unsigned odd128(bool Is32bit)
virtual void eliminateFrameIndex(MachineBasicBlock::iterator MI, int SPAdj, unsigned FIOperandNum, RegScavenger *RS) const LLVM_OVERRIDE
virtual bool requiresRegisterScavenging(const MachineFunction &MF) const LLVM_OVERRIDE
SystemZRegisterInfo(SystemZTargetMachine &tm)
virtual bool trackLivenessAfterRegAlloc(const MachineFunction &MF) const LLVM_OVERRIDE
virtual BitVector getReservedRegs(const MachineFunction &MF) const LLVM_OVERRIDE
virtual unsigned getFrameRegister(const MachineFunction &MF) const LLVM_OVERRIDE
unsigned even128(bool Is32bit)
virtual const uint16_t * getCalleeSavedRegs(const MachineFunction *MF=0) const LLVM_OVERRIDE
#define LLVM_OVERRIDE
Definition: Compiler.h:155