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