LLVM API Documentation

X86TargetInfo.cpp
Go to the documentation of this file.
00001 //===-- X86TargetInfo.cpp - X86 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 "MCTargetDesc/X86MCTargetDesc.h"
00011 #include "llvm/Support/TargetRegistry.h"
00012 using namespace llvm;
00013 
00014 Target llvm::TheX86_32Target, llvm::TheX86_64Target;
00015 
00016 extern "C" void LLVMInitializeX86TargetInfo() { 
00017   RegisterTarget<Triple::x86, /*HasJIT=*/true>
00018     X(TheX86_32Target, "x86", "32-bit X86: Pentium-Pro and above");
00019 
00020   RegisterTarget<Triple::x86_64, /*HasJIT=*/true>
00021     Y(TheX86_64Target, "x86-64", "64-bit X86: EM64T and AMD64");
00022 }