diff options
| author | Craig Topper <craig.topper@intel.com> | 2019-01-15 19:59:19 +0000 |
|---|---|---|
| committer | Craig Topper <craig.topper@intel.com> | 2019-01-15 19:59:19 +0000 |
| commit | 99fcbf67d04d488d819bffb8fda3bb9d5504b63b (patch) | |
| tree | d4875f7ae2caec0f1958b8906c5da47d82b78f25 /llvm/lib/Target/Nios2/Nios2Subtarget.cpp | |
| parent | 55897389799ed8759c3f1da0cb0a07959ca8467e (diff) | |
| download | bcm5719-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/Nios2Subtarget.cpp')
| -rw-r--r-- | llvm/lib/Target/Nios2/Nios2Subtarget.cpp | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/llvm/lib/Target/Nios2/Nios2Subtarget.cpp b/llvm/lib/Target/Nios2/Nios2Subtarget.cpp deleted file mode 100644 index 196bed20cdc..00000000000 --- a/llvm/lib/Target/Nios2/Nios2Subtarget.cpp +++ /dev/null @@ -1,56 +0,0 @@ -//===-- Nios2Subtarget.cpp - Nios2 Subtarget Information ------------------===// -// -// The LLVM Compiler Infrastructure -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// -// -// This file implements the Nios2 specific subclass of TargetSubtargetInfo. -// -//===----------------------------------------------------------------------===// - -#include "Nios2Subtarget.h" -#include "Nios2.h" - -using namespace llvm; - -#define DEBUG_TYPE "nios2-subtarget" - -#define GET_SUBTARGETINFO_TARGET_DESC -#define GET_SUBTARGETINFO_CTOR -#include "Nios2GenSubtargetInfo.inc" - -void Nios2Subtarget::anchor() {} - -Nios2Subtarget::Nios2Subtarget(const Triple &TT, const std::string &CPU, - const std::string &FS, const TargetMachine &TM) - : - - // Nios2GenSubtargetInfo will display features by llc -march=nios2 - // -mcpu=help - Nios2GenSubtargetInfo(TT, CPU, FS), TargetTriple(TT), - InstrInfo(initializeSubtargetDependencies(CPU, FS)), TLInfo(TM, *this), - FrameLowering(*this) {} - -Nios2Subtarget &Nios2Subtarget::initializeSubtargetDependencies(StringRef CPU, - StringRef FS) { - if (TargetTriple.getArch() == Triple::nios2) { - if (CPU != "nios2r2") { - CPU = "nios2r1"; - Nios2ArchVersion = Nios2r1; - } else { - Nios2ArchVersion = Nios2r2; - } - } else { - errs() << "!!!Error, TargetTriple.getArch() = " << TargetTriple.getArch() - << "CPU = " << CPU << "\n"; - exit(0); - } - - // Parse features string. - ParseSubtargetFeatures(CPU, FS); - - return *this; -} |

