LLVM  6.0.0svn
X86TargetInfo.cpp
Go to the documentation of this file.
1 //===-- X86TargetInfo.cpp - X86 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 
12 using namespace llvm;
13 
15  static Target TheX86_32Target;
16  return TheX86_32Target;
17 }
19  static Target TheX86_64Target;
20  return TheX86_64Target;
21 }
22 
23 extern "C" void LLVMInitializeX86TargetInfo() {
24  RegisterTarget<Triple::x86, /*HasJIT=*/true> X(
25  getTheX86_32Target(), "x86", "32-bit X86: Pentium-Pro and above");
26 
27  RegisterTarget<Triple::x86_64, /*HasJIT=*/true> Y(
28  getTheX86_64Target(), "x86-64", "64-bit X86: EM64T and AMD64");
29 }
RegisterTarget - Helper template for registering a target, for use in the target&#39;s initialization fun...
static GCMetadataPrinterRegistry::Add< ErlangGCPrinter > X("erlang", "erlang-compatible garbage collector")
Compute iterated dominance frontiers using a linear time algorithm.
Definition: AllocatorList.h:24
static GCMetadataPrinterRegistry::Add< OcamlGCMetadataPrinter > Y("ocaml", "ocaml 3.10-compatible collector")
Target - Wrapper for Target specific information.
Target & getTheX86_32Target()
void LLVMInitializeX86TargetInfo()
Target & getTheX86_64Target()