LLVM  8.0.1
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 (32-bit big endian)", "Mips");
36 
38  /*HasJIT=*/true>
39  Y(getTheMipselTarget(), "mipsel", "MIPS (32-bit little endian)", "Mips");
40 
42  /*HasJIT=*/true>
43  A(getTheMips64Target(), "mips64", "MIPS (64-bit big endian)", "Mips");
44 
46  /*HasJIT=*/true>
47  B(getTheMips64elTarget(), "mips64el", "MIPS (64-bit little endian)",
48  "Mips");
49 }
static GCMetadataPrinterRegistry::Add< ErlangGCPrinter > X("erlang", "erlang-compatible garbage collector")
This class represents lattice values for constants.
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()