LLVM API Documentation

Thumb2RegisterInfo.h

Go to the documentation of this file.
00001 //===- Thumb2RegisterInfo.h - Thumb-2 Register Information Impl ----*- C++ -*-===//
00002 //
00003 //                     The LLVM Compiler Infrastructure
00004 //
00005 // This file is distributed under the University of Illinois Open Source
00006 // License. See LICENSE.TXT for details.
00007 //
00008 //===----------------------------------------------------------------------===//
00009 //
00010 // This file contains the Thumb-2 implementation of the TargetRegisterInfo class.
00011 //
00012 //===----------------------------------------------------------------------===//
00013 
00014 #ifndef THUMB2REGISTERINFO_H
00015 #define THUMB2REGISTERINFO_H
00016 
00017 #include "ARM.h"
00018 #include "ARMRegisterInfo.h"
00019 #include "llvm/Target/TargetRegisterInfo.h"
00020 
00021 namespace llvm {
00022   class ARMSubtarget;
00023   class ARMBaseInstrInfo;
00024   class Type;
00025 
00026 struct Thumb2RegisterInfo : public ARMBaseRegisterInfo {
00027 public:
00028   Thumb2RegisterInfo(const ARMBaseInstrInfo &tii, const ARMSubtarget &STI);
00029 
00030   /// emitLoadConstPool - Emits a load from constpool to materialize the
00031   /// specified immediate.
00032   void emitLoadConstPool(MachineBasicBlock &MBB,
00033                          MachineBasicBlock::iterator &MBBI,
00034                          DebugLoc dl,
00035                          unsigned DestReg, unsigned SubIdx, int Val,
00036                          ARMCC::CondCodes Pred = ARMCC::AL,
00037                          unsigned PredReg = 0) const;
00038 
00039   bool requiresRegisterScavenging(const MachineFunction &MF) const;
00040 };
00041 }
00042 
00043 #endif // THUMB2REGISTERINFO_H