2007-01-19 15:51:42 +08:00
|
|
|
//===- ARMInstrInfo.h - ARM Instruction Information -------------*- C++ -*-===//
|
2006-05-15 06:18:28 +08:00
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
2007-12-30 04:36:04 +08:00
|
|
|
// This file is distributed under the University of Illinois Open Source
|
2006-05-15 06:18:28 +08: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-09 00:09:28 +08:00
|
|
|
#include "ARMBaseInstrInfo.h"
|
2006-05-15 06:18:28 +08:00
|
|
|
#include "ARMRegisterInfo.h"
|
2009-07-09 00:09:28 +08:00
|
|
|
#include "ARMSubtarget.h"
|
2008-10-08 05:01:51 +08:00
|
|
|
#include "ARM.h"
|
2006-05-15 06:18:28 +08:00
|
|
|
|
|
|
|
namespace llvm {
|
2007-01-19 15:51:42 +08:00
|
|
|
class ARMSubtarget;
|
|
|
|
|
2009-07-03 06:18:33 +08:00
|
|
|
class ARMInstrInfo : public ARMBaseInstrInfo {
|
|
|
|
ARMRegisterInfo RI;
|
|
|
|
public:
|
|
|
|
explicit ARMInstrInfo(const ARMSubtarget &STI);
|
|
|
|
|
2009-07-09 00:09:28 +08:00
|
|
|
// Return the non-pre/post incrementing version of 'Opc'. Return 0
|
|
|
|
// if there is not such an opcode.
|
|
|
|
unsigned getUnindexedOpcode(unsigned Opc) const;
|
|
|
|
|
2009-11-07 07:52:48 +08:00
|
|
|
void reMaterialize(MachineBasicBlock &MBB, MachineBasicBlock::iterator MI,
|
|
|
|
unsigned DestReg, unsigned SubIdx,
|
2009-11-14 10:55:43 +08:00
|
|
|
const MachineInstr *Orig,
|
2010-06-03 06:47:25 +08:00
|
|
|
const TargetRegisterInfo &TRI) const;
|
2009-11-07 07:52:48 +08:00
|
|
|
|
2009-07-03 06:18:33 +08: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; }
|
2006-05-15 06:18:28 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|