1 //===-- PowerPCTargetInfo.cpp - PowerPC Target Implementation -------------===//
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
7 //===----------------------------------------------------------------------===//
9 #include "TargetInfo/PowerPCTargetInfo.h"
10 #include "llvm/Support/TargetRegistry.h"
13 Target
&llvm::getThePPC32Target() {
14 static Target ThePPC32Target
;
15 return ThePPC32Target
;
17 Target
&llvm::getThePPC64Target() {
18 static Target ThePPC64Target
;
19 return ThePPC64Target
;
21 Target
&llvm::getThePPC64LETarget() {
22 static Target ThePPC64LETarget
;
23 return ThePPC64LETarget
;
26 extern "C" void LLVMInitializePowerPCTargetInfo() {
27 RegisterTarget
<Triple::ppc
, /*HasJIT=*/true> X(getThePPC32Target(), "ppc32",
30 RegisterTarget
<Triple::ppc64
, /*HasJIT=*/true> Y(getThePPC64Target(), "ppc64",
33 RegisterTarget
<Triple::ppc64le
, /*HasJIT=*/true> Z(
34 getThePPC64LETarget(), "ppc64le", "PowerPC 64 LE", "PPC");