LLVM API Documentation
00001 //===-- MipsTargetInfo.cpp - Mips Target Implementation -------------------===// 00002 // 00003 // The LLVM Compiler Infrastructure 00004 // 00005 // This file is distributed under the University of Illinois Open Source 00006 // License. See LICENSE.TXT for details. 00007 // 00008 //===----------------------------------------------------------------------===// 00009 00010 #include "Mips.h" 00011 #include "llvm/IR/Module.h" 00012 #include "llvm/Support/TargetRegistry.h" 00013 using namespace llvm; 00014 00015 Target llvm::TheMipsTarget, llvm::TheMipselTarget; 00016 Target llvm::TheMips64Target, llvm::TheMips64elTarget; 00017 00018 extern "C" void LLVMInitializeMipsTargetInfo() { 00019 RegisterTarget<Triple::mips, 00020 /*HasJIT=*/true> X(TheMipsTarget, "mips", "Mips"); 00021 00022 RegisterTarget<Triple::mipsel, 00023 /*HasJIT=*/true> Y(TheMipselTarget, "mipsel", "Mipsel"); 00024 00025 RegisterTarget<Triple::mips64, 00026 /*HasJIT=*/false> A(TheMips64Target, "mips64", "Mips64 [experimental]"); 00027 00028 RegisterTarget<Triple::mips64el, 00029 /*HasJIT=*/false> B(TheMips64elTarget, 00030 "mips64el", "Mips64el [experimental]"); 00031 }