LLVM  6.0.0svn
PowerPCTargetInfo.cpp
Go to the documentation of this file.
1 //===-- PowerPCTargetInfo.cpp - PowerPC 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 "PPC.h"
11 #include "llvm/IR/Module.h"
13 using namespace llvm;
14 
16  static Target ThePPC32Target;
17  return ThePPC32Target;
18 }
20  static Target ThePPC64Target;
21  return ThePPC64Target;
22 }
24  static Target ThePPC64LETarget;
25  return ThePPC64LETarget;
26 }
27 
29  RegisterTarget<Triple::ppc, /*HasJIT=*/true> X(getThePPC32Target(), "ppc32",
30  "PowerPC 32", "PPC");
31 
32  RegisterTarget<Triple::ppc64, /*HasJIT=*/true> Y(getThePPC64Target(), "ppc64",
33  "PowerPC 64", "PPC");
34 
35  RegisterTarget<Triple::ppc64le, /*HasJIT=*/true> Z(
36  getThePPC64LETarget(), "ppc64le", "PowerPC 64 LE", "PPC");
37 }
static GCMetadataPrinterRegistry::Add< ErlangGCPrinter > X("erlang", "erlang-compatible garbage collector")
Compute iterated dominance frontiers using a linear time algorithm.
Definition: AllocatorList.h:24
Target & getThePPC32Target()
void LLVMInitializePowerPCTargetInfo()
static GCMetadataPrinterRegistry::Add< OcamlGCMetadataPrinter > Y("ocaml", "ocaml 3.10-compatible collector")
Target & getThePPC64Target()
Module.h This file contains the declarations for the Module class.
Target - Wrapper for Target specific information.
Target & getThePPC64LETarget()