2016-11-11 09:27:37 +01:00
|
|
|
//===- ARMRegisterBankInfo ---------------------------------------*- C++ -*-==//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
/// \file
|
|
|
|
/// This file declares the targeting of the RegisterBankInfo class for ARM.
|
|
|
|
/// \todo This should be generated by TableGen.
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef LLVM_LIB_TARGET_ARM_ARMREGISTERBANKINFO_H
|
|
|
|
#define LLVM_LIB_TARGET_ARM_ARMREGISTERBANKINFO_H
|
|
|
|
|
|
|
|
#include "llvm/CodeGen/GlobalISel/RegisterBankInfo.h"
|
|
|
|
|
2017-02-05 13:07:55 +01:00
|
|
|
#define GET_REGBANK_DECLARATIONS
|
|
|
|
#include "ARMGenRegisterBank.inc"
|
|
|
|
|
2016-11-11 09:27:37 +01:00
|
|
|
namespace llvm {
|
|
|
|
|
|
|
|
class TargetRegisterInfo;
|
|
|
|
|
2017-02-05 13:07:55 +01:00
|
|
|
class ARMGenRegisterBankInfo : public RegisterBankInfo {
|
|
|
|
#define GET_TARGET_REGBANK_CLASS
|
|
|
|
#include "ARMGenRegisterBank.inc"
|
2016-12-16 13:54:46 +01:00
|
|
|
};
|
|
|
|
|
2016-11-11 09:27:37 +01:00
|
|
|
/// This class provides the information for the target register banks.
|
2017-02-05 13:07:55 +01:00
|
|
|
class ARMRegisterBankInfo final : public ARMGenRegisterBankInfo {
|
2016-11-11 09:27:37 +01:00
|
|
|
public:
|
|
|
|
ARMRegisterBankInfo(const TargetRegisterInfo &TRI);
|
2016-12-16 13:54:46 +01:00
|
|
|
|
|
|
|
const RegisterBank &
|
|
|
|
getRegBankFromRegClass(const TargetRegisterClass &RC) const override;
|
|
|
|
|
2017-05-06 00:48:22 +02:00
|
|
|
const InstructionMapping &
|
|
|
|
getInstrMapping(const MachineInstr &MI) const override;
|
2016-11-11 09:27:37 +01:00
|
|
|
};
|
|
|
|
} // End llvm namespace.
|
|
|
|
#endif
|