2012-03-17 09:39:20 +00:00
|
|
|
//===-- HexagonMCTargetDesc.h - Hexagon Target Descriptions -----*- C++ -*-===//
|
2011-12-15 22:29:08 +00:00
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// This file provides Hexagon specific target descriptions.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2014-08-13 16:26:38 +00:00
|
|
|
#ifndef LLVM_LIB_TARGET_HEXAGON_MCTARGETDESC_HEXAGONMCTARGETDESC_H
|
|
|
|
#define LLVM_LIB_TARGET_HEXAGON_MCTARGETDESC_HEXAGONMCTARGETDESC_H
|
2011-12-15 22:29:08 +00:00
|
|
|
|
2014-11-06 17:05:51 +00:00
|
|
|
#include <cstdint>
|
|
|
|
|
2011-12-15 22:29:08 +00:00
|
|
|
namespace llvm {
|
2015-05-31 22:18:42 +00:00
|
|
|
struct InstrItinerary;
|
|
|
|
struct InstrStage;
|
2014-11-06 17:05:51 +00:00
|
|
|
class MCAsmBackend;
|
2014-10-03 13:18:11 +00:00
|
|
|
class MCCodeEmitter;
|
|
|
|
class MCContext;
|
|
|
|
class MCInstrInfo;
|
2014-11-06 17:05:51 +00:00
|
|
|
class MCObjectWriter;
|
2014-10-03 13:18:11 +00:00
|
|
|
class MCRegisterInfo;
|
2011-12-15 22:29:08 +00:00
|
|
|
class MCSubtargetInfo;
|
|
|
|
class Target;
|
2015-06-10 10:35:34 +00:00
|
|
|
class Triple;
|
2014-11-06 17:05:51 +00:00
|
|
|
class StringRef;
|
|
|
|
class raw_ostream;
|
2015-04-14 22:14:34 +00:00
|
|
|
class raw_pwrite_stream;
|
2011-12-15 22:29:08 +00:00
|
|
|
|
|
|
|
extern Target TheHexagonTarget;
|
|
|
|
|
2015-05-31 21:57:09 +00:00
|
|
|
extern const InstrStage HexagonStages[];
|
|
|
|
|
2015-02-19 17:38:39 +00:00
|
|
|
MCInstrInfo *createHexagonMCInstrInfo();
|
|
|
|
|
2014-11-06 17:05:51 +00:00
|
|
|
MCCodeEmitter *createHexagonMCCodeEmitter(MCInstrInfo const &MCII,
|
|
|
|
MCRegisterInfo const &MRI,
|
2014-10-03 13:18:11 +00:00
|
|
|
MCContext &MCT);
|
|
|
|
|
2014-11-06 17:05:51 +00:00
|
|
|
MCAsmBackend *createHexagonAsmBackend(Target const &T,
|
2015-06-10 10:35:34 +00:00
|
|
|
MCRegisterInfo const &MRI,
|
|
|
|
const Triple &TT, StringRef CPU);
|
2014-11-06 17:05:51 +00:00
|
|
|
|
2015-04-14 22:14:34 +00:00
|
|
|
MCObjectWriter *createHexagonELFObjectWriter(raw_pwrite_stream &OS,
|
|
|
|
uint8_t OSABI, StringRef CPU);
|
2014-11-06 17:05:51 +00:00
|
|
|
|
2015-06-23 09:49:53 +00:00
|
|
|
} // End llvm namespace
|
2011-12-15 22:29:08 +00:00
|
|
|
|
|
|
|
// Define symbolic names for Hexagon registers. This defines a mapping from
|
|
|
|
// register name to register number.
|
|
|
|
//
|
|
|
|
#define GET_REGINFO_ENUM
|
|
|
|
#include "HexagonGenRegisterInfo.inc"
|
|
|
|
|
|
|
|
// Defines symbolic names for the Hexagon instructions.
|
|
|
|
//
|
|
|
|
#define GET_INSTRINFO_ENUM
|
|
|
|
#include "HexagonGenInstrInfo.inc"
|
|
|
|
|
|
|
|
#define GET_SUBTARGETINFO_ENUM
|
|
|
|
#include "HexagonGenSubtargetInfo.inc"
|
|
|
|
|
|
|
|
#endif
|