blob: 8c73c9bd794081460aa9b862c5f8f2d3bfb11a6f [file]
//===-- XtensaInstrInfo.h - Xtensa Instruction Information ------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// 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
//
//===----------------------------------------------------------------------===//
//
// This file contains the Xtensa implementation of the TargetInstrInfo class.
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_LIB_TARGET_XTENSA_XTENSAINSTRINFO_H
#define LLVM_LIB_TARGET_XTENSA_XTENSAINSTRINFO_H
#include "Xtensa.h"
#include "XtensaRegisterInfo.h"
#include "llvm/CodeGen/TargetInstrInfo.h"
#include "llvm/CodeGen/TargetRegisterInfo.h"
#define GET_INSTRINFO_HEADER
#include "XtensaGenInstrInfo.inc"
namespace llvm {
class XtensaTargetMachine;
class XtensaSubtarget;
class XtensaInstrInfo : public XtensaGenInstrInfo {
const XtensaRegisterInfo RI;
const XtensaSubtarget &STI;
public:
XtensaInstrInfo(const XtensaSubtarget &STI);
// Return the XtensaRegisterInfo, which this class owns.
const XtensaRegisterInfo &getRegisterInfo() const { return RI; }
const XtensaSubtarget &getSubtarget() const { return STI; }
};
} // end namespace llvm
#endif /* LLVM_LIB_TARGET_XTENSA_XTENSAINSTRINFO_H */