/src/keystone/llvm/lib/Target/PowerPC/TargetInfo/PowerPCTargetInfo.cpp
Line | Count | Source |
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/Support/TargetRegistry.h" |
12 | | using namespace llvm_ks; |
13 | | |
14 | | Target llvm_ks::ThePPC32Target, llvm_ks::ThePPC64Target, llvm_ks::ThePPC64LETarget; |
15 | | |
16 | 26 | extern "C" void LLVMInitializePowerPCTargetInfo() { |
17 | 26 | RegisterTarget<Triple::ppc> |
18 | 26 | X(ThePPC32Target, "ppc32", "PowerPC 32"); |
19 | | |
20 | 26 | RegisterTarget<Triple::ppc64> |
21 | 26 | Y(ThePPC64Target, "ppc64", "PowerPC 64"); |
22 | | |
23 | 26 | RegisterTarget<Triple::ppc64le> |
24 | 26 | Z(ThePPC64LETarget, "ppc64le", "PowerPC 64 LE"); |
25 | 26 | } |