LLVM  6.0.0svn
MipsTargetInfo.cpp
Go to the documentation of this file.
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"
13 using namespace llvm;
14 
16  static Target TheMipsTarget;
17  return TheMipsTarget;
18 }
20  static Target TheMipselTarget;
21  return TheMipselTarget;
22 }
24  static Target TheMips64Target;
25  return TheMips64Target;
26 }
28  static Target TheMips64elTarget;
29  return TheMips64elTarget;
30 }
31 
32 extern "C" void LLVMInitializeMipsTargetInfo() {
34  /*HasJIT=*/true>
35  X(getTheMipsTarget(), "mips", "Mips");
36 
38  /*HasJIT=*/true>
39  Y(getTheMipselTarget(), "mipsel", "Mipsel");
40 
42  /*HasJIT=*/true>
43  A(getTheMips64Target(), "mips64", "Mips64 [experimental]");
44 
46  /*HasJIT=*/true>
47  B(getTheMips64elTarget(), "mips64el", "Mips64el [experimental]");
48 }
RegisterTarget - Helper template for registering a target, for use in the target's initialization fun...
static GCMetadataPrinterRegistry::Add< ErlangGCPrinter > X("erlang", "erlang-compatible garbage collector")
Compute iterated dominance frontiers using a linear time algorithm.
Definition: AllocatorList.h:24
Target & getTheMipselTarget()
static GCMetadataPrinterRegistry::Add< OcamlGCMetadataPrinter > Y("ocaml", "ocaml 3.10-compatible collector")
Target & getTheMips64Target()
Target & getTheMips64elTarget()
static GCRegistry::Add< OcamlGC > B("ocaml", "ocaml 3.10-compatible GC")
Module.h This file contains the declarations for the Module class.
Target - Wrapper for Target specific information.
Target & getTheMipsTarget()
void LLVMInitializeMipsTargetInfo()