pass machinemoduleinfo down into getSymbolForDwarfGlobalReference,
[llvm/avr.git] / lib / Target / ARM / Thumb2RegisterInfo.h
bloba63c60b73b8042239ad032f8861964055222a6d2
1 //===- Thumb2RegisterInfo.h - Thumb-2 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 Thumb-2 implementation of the TargetRegisterInfo class.
12 //===----------------------------------------------------------------------===//
14 #ifndef THUMB2REGISTERINFO_H
15 #define THUMB2REGISTERINFO_H
17 #include "ARM.h"
18 #include "ARMRegisterInfo.h"
19 #include "llvm/Target/TargetRegisterInfo.h"
21 namespace llvm {
22 class ARMSubtarget;
23 class ARMBaseInstrInfo;
24 class Type;
26 struct Thumb2RegisterInfo : public ARMBaseRegisterInfo {
27 public:
28 Thumb2RegisterInfo(const ARMBaseInstrInfo &tii, 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,
34 DebugLoc dl,
35 unsigned DestReg, unsigned SubIdx, int Val,
36 ARMCC::CondCodes Pred = ARMCC::AL,
37 unsigned PredReg = 0) const;
39 bool requiresRegisterScavenging(const MachineFunction &MF) const;
43 #endif // THUMB2REGISTERINFO_H