LLVM  6.0.0svn
AVRRegisterInfo.h
Go to the documentation of this file.
1 //===-- AVRRegisterInfo.h - AVR Register Information Impl -------*- 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 contains the AVR implementation of the TargetRegisterInfo class.
11 //
12 //===----------------------------------------------------------------------===//
13 
14 #ifndef LLVM_AVR_REGISTER_INFO_H
15 #define LLVM_AVR_REGISTER_INFO_H
16 
18 
19 #define GET_REGINFO_HEADER
20 #include "AVRGenRegisterInfo.inc"
21 
22 namespace llvm {
23 
24 /// Utilities relating to AVR registers.
26 public:
28 
29 public:
30  const uint16_t *
31  getCalleeSavedRegs(const MachineFunction *MF = 0) const override;
33  CallingConv::ID CC) const override;
34  BitVector getReservedRegs(const MachineFunction &MF) const override;
35 
36  const TargetRegisterClass *
38  const MachineFunction &MF) const override;
39 
40  /// Stack Frame Processing Methods
42  unsigned FIOperandNum,
43  RegScavenger *RS = NULL) const override;
44 
45  unsigned getFrameRegister(const MachineFunction &MF) const override;
46 
47  const TargetRegisterClass *
49  unsigned Kind = 0) const override;
50 
51  /// Splits a 16-bit `DREGS` register into the lo/hi register pair.
52  /// \param Reg A 16-bit register to split.
53  void splitReg(unsigned Reg, unsigned &LoReg, unsigned &HiReg) const;
54 };
55 
56 } // end namespace llvm
57 
58 #endif // LLVM_AVR_REGISTER_INFO_H
Compute iterated dominance frontiers using a linear time algorithm.
Definition: AllocatorList.h:24
const TargetRegisterClass * getPointerRegClass(const MachineFunction &MF, unsigned Kind=0) const override
BitVector getReservedRegs(const MachineFunction &MF) const override
Utilities relating to AVR registers.
const TargetRegisterClass * getLargestLegalSuperClass(const TargetRegisterClass *RC, const MachineFunction &MF) const override
Reg
All possible values of the reg field in the ModR/M byte.
const uint16_t * getCalleeSavedRegs(const MachineFunction *MF=0) const override
const uint32_t * getCallPreservedMask(const MachineFunction &MF, CallingConv::ID CC) const override
void eliminateFrameIndex(MachineBasicBlock::iterator MI, int SPAdj, unsigned FIOperandNum, RegScavenger *RS=NULL) const override
Stack Frame Processing Methods.
void splitReg(unsigned Reg, unsigned &LoReg, unsigned &HiReg) const
Splits a 16-bit DREGS register into the lo/hi register pair.
const unsigned Kind
unsigned getFrameRegister(const MachineFunction &MF) const override
IRTranslator LLVM IR MI