summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Nios2/InstPrinter/Nios2InstPrinter.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2019-01-15 19:59:19 +0000
committerCraig Topper <craig.topper@intel.com>2019-01-15 19:59:19 +0000
commit99fcbf67d04d488d819bffb8fda3bb9d5504b63b (patch)
treed4875f7ae2caec0f1958b8906c5da47d82b78f25 /llvm/lib/Target/Nios2/InstPrinter/Nios2InstPrinter.cpp
parent55897389799ed8759c3f1da0cb0a07959ca8467e (diff)
downloadbcm5719-llvm-99fcbf67d04d488d819bffb8fda3bb9d5504b63b.tar.gz
bcm5719-llvm-99fcbf67d04d488d819bffb8fda3bb9d5504b63b.zip
[Nios2] Remove Nios2 backend
As mentioned here http://lists.llvm.org/pipermail/llvm-dev/2019-January/129121.html This backend is incomplete and has not been maintained in several months. Differential Revision: https://reviews.llvm.org/D56691 llvm-svn: 351231
Diffstat (limited to 'llvm/lib/Target/Nios2/InstPrinter/Nios2InstPrinter.cpp')
-rw-r--r--llvm/lib/Target/Nios2/InstPrinter/Nios2InstPrinter.cpp66
1 files changed, 0 insertions, 66 deletions
diff --git a/llvm/lib/Target/Nios2/InstPrinter/Nios2InstPrinter.cpp b/llvm/lib/Target/Nios2/InstPrinter/Nios2InstPrinter.cpp
deleted file mode 100644
index de0a5f9e84e..00000000000
--- a/llvm/lib/Target/Nios2/InstPrinter/Nios2InstPrinter.cpp
+++ /dev/null
@@ -1,66 +0,0 @@
-//===-- Nios2InstPrinter.cpp - Convert Nios2 MCInst to assembly syntax-----===//
-//
-// The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-//
-// This class prints an Nios2 MCInst to a .s file.
-//
-//===----------------------------------------------------------------------===//
-
-#include "Nios2InstPrinter.h"
-
-#include "Nios2InstrInfo.h"
-#include "llvm/MC/MCExpr.h"
-#include "llvm/MC/MCInst.h"
-#include "llvm/MC/MCInstrInfo.h"
-#include "llvm/Support/raw_ostream.h"
-using namespace llvm;
-
-#define DEBUG_TYPE "asm-printer"
-
-#define PRINT_ALIAS_INSTR
-#include "Nios2GenAsmWriter.inc"
-
-void Nios2InstPrinter::printRegName(raw_ostream &OS, unsigned RegNo) const {
- OS << getRegisterName(RegNo);
-}
-
-void Nios2InstPrinter::printInst(const MCInst *MI, raw_ostream &O,
- StringRef Annot, const MCSubtargetInfo &STI) {
- // Try to print any aliases first.
- if (!printAliasInstr(MI, STI, O))
- printInstruction(MI, STI, O);
- printAnnotation(O, Annot);
-}
-
-void Nios2InstPrinter::printOperand(const MCInst *MI, int OpNo,
- const MCSubtargetInfo &STI,
- raw_ostream &O) {
- const MCOperand &Op = MI->getOperand(OpNo);
- if (Op.isReg()) {
- printRegName(O, Op.getReg());
- return;
- }
-
- if (Op.isImm()) {
- O << Op.getImm();
- return;
- }
-
- assert(Op.isExpr() && "unknown operand kind in printOperand");
- Op.getExpr()->print(O, &MAI, true);
-}
-
-void Nios2InstPrinter::printMemOperand(const MCInst *MI, int opNum,
- const MCSubtargetInfo &STI,
- raw_ostream &O, const char *Modifier) {
- // Load/Store memory operands -- imm($reg)
- printOperand(MI, opNum + 1, STI, O);
- O << "(";
- printOperand(MI, opNum, STI, O);
- O << ")";
-}
OpenPOWER on IntegriCloud