LLVM  6.0.0svn
SparcTargetInfo.cpp
Go to the documentation of this file.
1 //===-- SparcTargetInfo.cpp - Sparc 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 "Sparc.h"
11 #include "llvm/IR/Module.h"
13 using namespace llvm;
14 
16  static Target TheSparcTarget;
17  return TheSparcTarget;
18 }
20  static Target TheSparcV9Target;
21  return TheSparcV9Target;
22 }
24  static Target TheSparcelTarget;
25  return TheSparcelTarget;
26 }
27 
28 extern "C" void LLVMInitializeSparcTargetInfo() {
29  RegisterTarget<Triple::sparc, /*HasJIT=*/true> X(getTheSparcTarget(), "sparc",
30  "Sparc", "Sparc");
31  RegisterTarget<Triple::sparcv9, /*HasJIT=*/true> Y(
32  getTheSparcV9Target(), "sparcv9", "Sparc V9", "Sparc");
33  RegisterTarget<Triple::sparcel, /*HasJIT=*/true> Z(
34  getTheSparcelTarget(), "sparcel", "Sparc LE", "Sparc");
35 }
static GCMetadataPrinterRegistry::Add< ErlangGCPrinter > X("erlang", "erlang-compatible garbage collector")
Compute iterated dominance frontiers using a linear time algorithm.
Definition: AllocatorList.h:24
static GCMetadataPrinterRegistry::Add< OcamlGCMetadataPrinter > Y("ocaml", "ocaml 3.10-compatible collector")
void LLVMInitializeSparcTargetInfo()
Target & getTheSparcTarget()
Target & getTheSparcelTarget()
Module.h This file contains the declarations for the Module class.
Target - Wrapper for Target specific information.
Target & getTheSparcV9Target()