1 //===-- MipsTargetInfo.cpp - Mips Target Implementation -------------------===// 2 // 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 // 8 //===----------------------------------------------------------------------===// 9 10 #include "Mips.h" 11 #include "llvm/IR/Module.h" 12 #include "llvm/Support/TargetRegistry.h" 13 using namespace llvm; 14 15 Target llvm::TheMipsTarget, llvm::TheMipselTarget; 16 Target llvm::TheMips64Target, llvm::TheMips64elTarget; 17 18 extern "C" void LLVMInitializeMipsTargetInfo() { 19 RegisterTarget<Triple::mips, 20 /*HasJIT=*/true> X(TheMipsTarget, "mips", "Mips"); 21 22 RegisterTarget<Triple::mipsel, 23 /*HasJIT=*/true> Y(TheMipselTarget, "mipsel", "Mipsel"); 24 25 RegisterTarget<Triple::mips64, 26 /*HasJIT=*/true> A(TheMips64Target, "mips64", "Mips64 [experimental]"); 27 28 RegisterTarget<Triple::mips64el, 29 /*HasJIT=*/true> B(TheMips64elTarget, 30 "mips64el", "Mips64el [experimental]"); 31 } 32