summaryrefslogtreecommitdiff
path: root/lib/Target/Hexagon/MCTargetDesc/HexagonMCTargetDesc.h
diff options
context:
space:
mode:
authorTony Linthicum <tlinth@codeaurora.org>2011-12-15 22:29:08 +0000
committerTony Linthicum <tlinth@codeaurora.org>2011-12-15 22:29:08 +0000
commitd239ff67f210094c205be7e57332948caecf6a24 (patch)
tree64947b11bba2720be4b3ce07e7d96158ae73fbfb /lib/Target/Hexagon/MCTargetDesc/HexagonMCTargetDesc.h
parent60d99a5278e4a0e7116a05c01cececb07ca1362a (diff)
downloadllvm-d239ff67f210094c205be7e57332948caecf6a24.tar.gz
llvm-d239ff67f210094c205be7e57332948caecf6a24.tar.bz2
llvm-d239ff67f210094c205be7e57332948caecf6a24.tar.xz
Add MCTargetDesc library to Hexagon target
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146692 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Hexagon/MCTargetDesc/HexagonMCTargetDesc.h')
-rw-r--r--lib/Target/Hexagon/MCTargetDesc/HexagonMCTargetDesc.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/lib/Target/Hexagon/MCTargetDesc/HexagonMCTargetDesc.h b/lib/Target/Hexagon/MCTargetDesc/HexagonMCTargetDesc.h
new file mode 100644
index 0000000000..364841f8f1
--- /dev/null
+++ b/lib/Target/Hexagon/MCTargetDesc/HexagonMCTargetDesc.h
@@ -0,0 +1,40 @@
+//===-- SPUMCTargetDesc.h - Hexagon Target Descriptions ---------*- C++ -*-===//
+//
+// 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.
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef SPUMCTARGETDESC_H
+#define SPUMCTARGETDESC_H
+
+namespace llvm {
+class MCSubtargetInfo;
+class Target;
+class StringRef;
+
+extern Target TheHexagonTarget;
+
+} // End llvm namespace
+
+// 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