2012-02-17 08:55:11 +00:00
|
|
|
//===-- MipsTargetInfo.cpp - Mips Target Implementation -------------------===//
|
2009-07-15 06:35:19 +00:00
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
2011-04-15 21:51:11 +00:00
|
|
|
//===----------------------------------------------------------------------===//
|
2009-07-15 06:35:19 +00:00
|
|
|
|
2009-07-18 23:03:22 +00:00
|
|
|
#include "Mips.h"
|
2013-01-02 11:36:10 +00:00
|
|
|
#include "llvm/IR/Module.h"
|
2011-08-24 18:08:43 +00:00
|
|
|
#include "llvm/Support/TargetRegistry.h"
|
2009-07-15 06:35:19 +00:00
|
|
|
using namespace llvm;
|
|
|
|
|
2009-07-26 05:03:33 +00:00
|
|
|
Target llvm::TheMipsTarget, llvm::TheMipselTarget;
|
2011-09-21 03:00:58 +00:00
|
|
|
Target llvm::TheMips64Target, llvm::TheMips64elTarget;
|
2009-07-15 06:35:19 +00:00
|
|
|
|
2011-03-04 17:51:39 +00:00
|
|
|
extern "C" void LLVMInitializeMipsTargetInfo() {
|
2011-07-21 16:28:51 +00:00
|
|
|
RegisterTarget<Triple::mips,
|
|
|
|
/*HasJIT=*/true> X(TheMipsTarget, "mips", "Mips");
|
2009-07-15 06:35:19 +00:00
|
|
|
|
2011-07-21 16:28:51 +00:00
|
|
|
RegisterTarget<Triple::mipsel,
|
|
|
|
/*HasJIT=*/true> Y(TheMipselTarget, "mipsel", "Mipsel");
|
2011-09-21 03:00:58 +00:00
|
|
|
|
|
|
|
RegisterTarget<Triple::mips64,
|
|
|
|
/*HasJIT=*/false> A(TheMips64Target, "mips64", "Mips64 [experimental]");
|
|
|
|
|
|
|
|
RegisterTarget<Triple::mips64el,
|
|
|
|
/*HasJIT=*/false> B(TheMips64elTarget,
|
|
|
|
"mips64el", "Mips64el [experimental]");
|
2009-07-15 06:35:19 +00:00
|
|
|
}
|