2007-01-19 07:51:42 +00:00
|
|
|
//===- ARMInstrInfo.h - ARM Instruction Information -------------*- C++ -*-===//
|
2006-05-14 22:18:28 +00:00
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
2007-12-29 20:36:04 +00:00
|
|
|
// This file is distributed under the University of Illinois Open Source
|
2006-05-14 22:18:28 +00:00
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// This file contains the ARM implementation of the TargetInstrInfo class.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef ARMINSTRUCTIONINFO_H
|
|
|
|
#define ARMINSTRUCTIONINFO_H
|
|
|
|
|
|
|
|
#include "llvm/Target/TargetInstrInfo.h"
|
2009-07-08 16:09:28 +00:00
|
|
|
#include "ARMBaseInstrInfo.h"
|
2006-05-14 22:18:28 +00:00
|
|
|
#include "ARMRegisterInfo.h"
|
2009-07-08 16:09:28 +00:00
|
|
|
#include "ARMSubtarget.h"
|
2008-10-07 21:01:51 +00:00
|
|
|
#include "ARM.h"
|
2006-05-14 22:18:28 +00:00
|
|
|
|
|
|
|
namespace llvm {
|
2007-01-19 07:51:42 +00:00
|
|
|
class ARMSubtarget;
|
|
|
|
|
2009-07-02 22:18:33 +00:00
|
|
|
class ARMInstrInfo : public ARMBaseInstrInfo {
|
|
|
|
ARMRegisterInfo RI;
|
2009-08-02 05:20:37 +00:00
|
|
|
const ARMSubtarget &Subtarget;
|
2009-07-02 22:18:33 +00:00
|
|
|
public:
|
|
|
|
explicit ARMInstrInfo(const ARMSubtarget &STI);
|
|
|
|
|
2009-07-08 16:09:28 +00:00
|
|
|
// Return the non-pre/post incrementing version of 'Opc'. Return 0
|
|
|
|
// if there is not such an opcode.
|
|
|
|
unsigned getUnindexedOpcode(unsigned Opc) const;
|
|
|
|
|
|
|
|
// Return true if the block does not fall through.
|
|
|
|
bool BlockHasNoFallThrough(const MachineBasicBlock &MBB) const;
|
|
|
|
|
2009-07-02 22:18:33 +00:00
|
|
|
/// getRegisterInfo - TargetInstrInfo is a superset of MRegister info. As
|
|
|
|
/// such, whenever a client has an instance of instruction info, it should
|
|
|
|
/// always be able to get register info as well (through this method).
|
|
|
|
///
|
|
|
|
const ARMRegisterInfo &getRegisterInfo() const { return RI; }
|
|
|
|
|
|
|
|
void reMaterialize(MachineBasicBlock &MBB, MachineBasicBlock::iterator MI,
|
2009-07-16 09:20:10 +00:00
|
|
|
unsigned DestReg, unsigned SubIdx,
|
|
|
|
const MachineInstr *Orig) const;
|
2006-05-14 22:18:28 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|