2012-02-18 20:03:15 +08:00
|
|
|
//===-- ARMInstrInfo.h - ARM Instruction Information ------------*- C++ -*-===//
|
2006-05-15 06:18:28 +08:00
|
|
|
//
|
2019-01-19 16:50:56 +08:00
|
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
2006-05-15 06:18:28 +08:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// This file contains the ARM implementation of the TargetInstrInfo class.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2014-08-14 00:26:38 +08:00
|
|
|
#ifndef LLVM_LIB_TARGET_ARM_ARMINSTRINFO_H
|
|
|
|
#define LLVM_LIB_TARGET_ARM_ARMINSTRINFO_H
|
2006-05-15 06:18:28 +08:00
|
|
|
|
2009-07-09 00:09:28 +08:00
|
|
|
#include "ARMBaseInstrInfo.h"
|
2006-05-15 06:18:28 +08:00
|
|
|
#include "ARMRegisterInfo.h"
|
|
|
|
|
|
|
|
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);
|
|
|
|
|
2017-04-22 05:48:41 +08:00
|
|
|
/// Return the noop instruction to use for a noop.
|
|
|
|
void getNoop(MCInst &NopInst) const override;
|
2012-02-29 07:53:30 +08:00
|
|
|
|
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.
|
2014-03-10 10:09:33 +08:00
|
|
|
unsigned getUnindexedOpcode(unsigned Opc) const override;
|
2009-07-09 00:09:28 +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).
|
|
|
|
///
|
2014-03-10 10:09:33 +08:00
|
|
|
const ARMRegisterInfo &getRegisterInfo() const override { return RI; }
|
2014-07-26 03:31:34 +08:00
|
|
|
|
|
|
|
private:
|
2016-06-28 23:18:26 +08:00
|
|
|
void expandLoadStackGuard(MachineBasicBlock::iterator MI) const override;
|
2006-05-15 06:18:28 +08:00
|
|
|
};
|
|
|
|
|
2015-06-23 17:49:53 +08:00
|
|
|
}
|
2006-05-15 06:18:28 +08:00
|
|
|
|
|
|
|
#endif
|