LLVM  9.0.0svn
PowerPCTargetInfo.cpp
Go to the documentation of this file.
1 //===-- PowerPCTargetInfo.cpp - PowerPC Target Implementation -------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #include "PPC.h"
10 #include "llvm/IR/Module.h"
12 using namespace llvm;
13 
15  static Target ThePPC32Target;
16  return ThePPC32Target;
17 }
19  static Target ThePPC64Target;
20  return ThePPC64Target;
21 }
23  static Target ThePPC64LETarget;
24  return ThePPC64LETarget;
25 }
26 
28  RegisterTarget<Triple::ppc, /*HasJIT=*/true> X(getThePPC32Target(), "ppc32",
29  "PowerPC 32", "PPC");
30 
31  RegisterTarget<Triple::ppc64, /*HasJIT=*/true> Y(getThePPC64Target(), "ppc64",
32  "PowerPC 64", "PPC");
33 
34  RegisterTarget<Triple::ppc64le, /*HasJIT=*/true> Z(
35  getThePPC64LETarget(), "ppc64le", "PowerPC 64 LE", "PPC");
36 }
static GCMetadataPrinterRegistry::Add< ErlangGCPrinter > X("erlang", "erlang-compatible garbage collector")
This class represents lattice values for constants.
Definition: AllocatorList.h:23
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()