2012-02-18 12:03:15 +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
|
|
|
|
|
2009-07-08 16:09:28 +00:00
|
|
|
#include "ARMBaseInstrInfo.h"
|
2006-05-14 22:18:28 +00:00
|
|
|
#include "ARMRegisterInfo.h"
|
|
|
|
|
|
|
|
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;
|
|
|
|
public:
|
|
|
|
explicit ARMInstrInfo(const ARMSubtarget &STI);
|
|
|
|
|
2012-02-28 23:53:30 +00:00
|
|
|
/// getNoopForMachoTarget - Return the noop instruction to use for a noop.
|
2014-03-10 02:09:33 +00:00
|
|
|
void getNoopForMachoTarget(MCInst &NopInst) const override;
|
2012-02-28 23:53:30 +00:00
|
|
|
|
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.
|
2014-03-10 02:09:33 +00:00
|
|
|
unsigned getUnindexedOpcode(unsigned Opc) const override;
|
2009-07-08 16:09:28 +00:00
|
|
|
|
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).
|
|
|
|
///
|
2014-03-10 02:09:33 +00:00
|
|
|
const ARMRegisterInfo &getRegisterInfo() const override { return RI; }
|
2006-05-14 22:18:28 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|