2017-01-27 07:40:06 +08:00
|
|
|
//===- ARMInstructionSelector -----------------------------------*- C++ -*-===//
|
2016-11-11 16:27:37 +08:00
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
2017-01-27 07:40:06 +08:00
|
|
|
//
|
2016-11-11 16:27:37 +08:00
|
|
|
/// \file
|
|
|
|
/// This file declares the targeting of the InstructionSelector class for ARM.
|
2017-01-27 07:40:06 +08:00
|
|
|
//
|
2016-11-11 16:27:37 +08:00
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef LLVM_LIB_TARGET_ARM_ARMINSTRUCTIONSELECTOR_H
|
|
|
|
#define LLVM_LIB_TARGET_ARM_ARMINSTRUCTIONSELECTOR_H
|
|
|
|
|
|
|
|
#include "llvm/CodeGen/GlobalISel/InstructionSelector.h"
|
|
|
|
|
|
|
|
namespace llvm {
|
2017-01-27 07:40:06 +08:00
|
|
|
|
2016-11-11 16:27:37 +08:00
|
|
|
class ARMBaseInstrInfo;
|
|
|
|
class ARMBaseRegisterInfo;
|
|
|
|
class ARMRegisterBankInfo;
|
|
|
|
class ARMSubtarget;
|
|
|
|
|
|
|
|
class ARMInstructionSelector : public InstructionSelector {
|
|
|
|
public:
|
2016-11-16 00:42:10 +08:00
|
|
|
ARMInstructionSelector(const ARMSubtarget &STI,
|
2016-11-11 16:27:37 +08:00
|
|
|
const ARMRegisterBankInfo &RBI);
|
|
|
|
|
2017-01-27 07:40:06 +08:00
|
|
|
bool select(MachineInstr &I) const override;
|
2016-11-11 16:27:37 +08:00
|
|
|
|
|
|
|
private:
|
|
|
|
const ARMBaseInstrInfo &TII;
|
|
|
|
const ARMBaseRegisterInfo &TRI;
|
2016-12-16 20:54:46 +08:00
|
|
|
const ARMRegisterBankInfo &RBI;
|
2016-11-11 16:27:37 +08:00
|
|
|
};
|
|
|
|
|
2017-01-27 07:40:06 +08:00
|
|
|
} // end namespace llvm
|
|
|
|
|
|
|
|
#endif // LLVM_LIB_TARGET_ARM_ARMINSTRUCTIONSELECTOR_H
|