blob: b5821d4785fc30ca5f091b3b5b12e463a3d9ee4b [file] [log] [blame]
Akira Hatanaka4552c9a2011-04-15 21:51:11 +00001//===-- MipsTargetInfo.cpp - Mips Target Implementation -------------------===//
Daniel Dunbarc984df82009-07-15 06:35:19 +00002//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
Akira Hatanaka4552c9a2011-04-15 21:51:11 +00008//===----------------------------------------------------------------------===//
Daniel Dunbarc984df82009-07-15 06:35:19 +00009
Daniel Dunbar4cb1e132009-07-18 23:03:22 +000010#include "Mips.h"
Daniel Dunbarc984df82009-07-15 06:35:19 +000011#include "llvm/Module.h"
Evan Cheng3e74d6f2011-08-24 18:08:43 +000012#include "llvm/Support/TargetRegistry.h"
Daniel Dunbarc984df82009-07-15 06:35:19 +000013using namespace llvm;
14
Daniel Dunbar8977d082009-07-26 05:03:33 +000015Target llvm::TheMipsTarget, llvm::TheMipselTarget;
Daniel Dunbarc984df82009-07-15 06:35:19 +000016
Bruno Cardoso Lopes81092dc2011-03-04 17:51:39 +000017extern "C" void LLVMInitializeMipsTargetInfo() {
Bruno Cardoso Lopesdca6cdd2011-07-21 16:28:51 +000018 RegisterTarget<Triple::mips,
19 /*HasJIT=*/true> X(TheMipsTarget, "mips", "Mips");
Daniel Dunbarc984df82009-07-15 06:35:19 +000020
Bruno Cardoso Lopesdca6cdd2011-07-21 16:28:51 +000021 RegisterTarget<Triple::mipsel,
22 /*HasJIT=*/true> Y(TheMipselTarget, "mipsel", "Mipsel");
Daniel Dunbarc984df82009-07-15 06:35:19 +000023}