LLVM API Documentation

PowerPCTargetInfo.cpp
Go to the documentation of this file.
00001 //===-- PowerPCTargetInfo.cpp - PowerPC Target Implementation -------------===//
00002 //
00003 //                     The LLVM Compiler Infrastructure
00004 //
00005 // This file is distributed under the University of Illinois Open Source
00006 // License. See LICENSE.TXT for details.
00007 //
00008 //===----------------------------------------------------------------------===//
00009 
00010 #include "PPC.h"
00011 #include "llvm/IR/Module.h"
00012 #include "llvm/Support/TargetRegistry.h"
00013 using namespace llvm;
00014 
00015 Target llvm::ThePPC32Target, llvm::ThePPC64Target, llvm::ThePPC64LETarget;
00016 
00017 extern "C" void LLVMInitializePowerPCTargetInfo() { 
00018   RegisterTarget<Triple::ppc, /*HasJIT=*/true>
00019     X(ThePPC32Target, "ppc32", "PowerPC 32");
00020 
00021   RegisterTarget<Triple::ppc64, /*HasJIT=*/true>
00022     Y(ThePPC64Target, "ppc64", "PowerPC 64");
00023 
00024   RegisterTarget<Triple::ppc64le, /*HasJIT=*/true>
00025     Z(ThePPC64LETarget, "ppc64le", "PowerPC 64 LE");
00026 }