mirror of
https://github.com/jeremysrand/llvm-65816.git
synced 2024-09-26 19:56:31 +00:00
45 lines
1.4 KiB
C++
45 lines
1.4 KiB
C++
//===-- WDC65816InstrInfo.h - WDC65816 Instruction Information --*- C++ -*-===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// This file contains the WDC65816 implementation of the TargetInstrInfo class.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef WDC65816INSTRUCTIONINFO_H
|
|
#define WDC65816INSTRUCTIONINFO_H
|
|
|
|
#include "WDC65816RegisterInfo.h"
|
|
#include "llvm/Target/TargetInstrInfo.h"
|
|
|
|
#define GET_INSTRINFO_HEADER
|
|
#include "WDC65816GenInstrInfo.inc"
|
|
|
|
namespace llvm {
|
|
|
|
class WDC65816InstrInfo : public WDC65816GenInstrInfo {
|
|
const WDC65816RegisterInfo RI;
|
|
const WDC65816Subtarget& Subtarget;
|
|
virtual void anchor();
|
|
public:
|
|
explicit WDC65816InstrInfo(WDC65816Subtarget &ST);
|
|
|
|
/// 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).
|
|
///
|
|
virtual const WDC65816RegisterInfo &getRegisterInfo() const { return RI; }
|
|
|
|
unsigned getGlobalBaseReg(MachineFunction *MF) const;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|