2009-11-08 06:00:39 +08:00
|
|
|
//===- Thumb2RegisterInfo.h - Thumb-2 Register Information Impl -*- C++ -*-===//
|
2009-06-27 20:16:40 +08:00
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
2009-11-08 06:00:39 +08:00
|
|
|
// This file contains the Thumb-2 implementation of the TargetRegisterInfo
|
|
|
|
// class.
|
2009-06-27 20:16:40 +08:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2009-07-03 06:18:33 +08:00
|
|
|
#ifndef THUMB2REGISTERINFO_H
|
|
|
|
#define THUMB2REGISTERINFO_H
|
2009-06-27 20:16:40 +08:00
|
|
|
|
|
|
|
#include "ARM.h"
|
2012-03-17 15:33:42 +08:00
|
|
|
#include "ARMBaseRegisterInfo.h"
|
2009-06-27 20:16:40 +08:00
|
|
|
#include "llvm/Target/TargetRegisterInfo.h"
|
|
|
|
|
|
|
|
namespace llvm {
|
2013-06-07 13:54:19 +08:00
|
|
|
|
|
|
|
class ARMSubtarget;
|
2009-06-27 20:16:40 +08:00
|
|
|
|
2009-07-03 06:18:33 +08:00
|
|
|
struct Thumb2RegisterInfo : public ARMBaseRegisterInfo {
|
2009-06-27 20:16:40 +08:00
|
|
|
public:
|
2013-06-07 13:54:19 +08:00
|
|
|
Thumb2RegisterInfo(const ARMSubtarget &STI);
|
2009-06-27 20:16:40 +08:00
|
|
|
|
|
|
|
/// emitLoadConstPool - Emits a load from constpool to materialize the
|
|
|
|
/// specified immediate.
|
2009-07-24 08:16:18 +08:00
|
|
|
void emitLoadConstPool(MachineBasicBlock &MBB,
|
|
|
|
MachineBasicBlock::iterator &MBBI,
|
|
|
|
DebugLoc dl,
|
|
|
|
unsigned DestReg, unsigned SubIdx, int Val,
|
|
|
|
ARMCC::CondCodes Pred = ARMCC::AL,
|
2011-03-06 02:43:50 +08:00
|
|
|
unsigned PredReg = 0,
|
|
|
|
unsigned MIFlags = MachineInstr::NoFlags) const;
|
2009-06-27 20:16:40 +08:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2009-07-03 06:18:33 +08:00
|
|
|
#endif // THUMB2REGISTERINFO_H
|