1 //===- Thumb2RegisterInfo.h - Thumb-2 Register Information Impl -*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file contains the Thumb-2 implementation of the TargetRegisterInfo
13 //===----------------------------------------------------------------------===//
15 #ifndef THUMB2REGISTERINFO_H
16 #define THUMB2REGISTERINFO_H
19 #include "ARMBaseRegisterInfo.h"
20 #include "llvm/Target/TargetRegisterInfo.h"
26 struct Thumb2RegisterInfo : public ARMBaseRegisterInfo {
28 Thumb2RegisterInfo(const ARMSubtarget &STI);
30 /// emitLoadConstPool - Emits a load from constpool to materialize the
31 /// specified immediate.
32 void emitLoadConstPool(MachineBasicBlock &MBB,
33 MachineBasicBlock::iterator &MBBI,
35 unsigned DestReg, unsigned SubIdx, int Val,
36 ARMCC::CondCodes Pred = ARMCC::AL,
38 unsigned MIFlags = MachineInstr::NoFlags) const;
42 #endif // THUMB2REGISTERINFO_H