LLVM  6.0.0svn
ARMTargetInfo.cpp
Go to the documentation of this file.
1 //===-- ARMTargetInfo.cpp - ARM 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 TheARMLETarget;
16  return TheARMLETarget;
17 }
19  static Target TheARMBETarget;
20  return TheARMBETarget;
21 }
23  static Target TheThumbLETarget;
24  return TheThumbLETarget;
25 }
27  static Target TheThumbBETarget;
28  return TheThumbBETarget;
29 }
30 
31 extern "C" void LLVMInitializeARMTargetInfo() {
32  RegisterTarget<Triple::arm, /*HasJIT=*/true> X(getTheARMLETarget(), "arm",
33  "ARM");
34  RegisterTarget<Triple::armeb, /*HasJIT=*/true> Y(getTheARMBETarget(), "armeb",
35  "ARM (big endian)");
36 
37  RegisterTarget<Triple::thumb, /*HasJIT=*/true> A(getTheThumbLETarget(),
38  "thumb", "Thumb");
39  RegisterTarget<Triple::thumbeb, /*HasJIT=*/true> B(
40  getTheThumbBETarget(), "thumbeb", "Thumb (big endian)");
41 }
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
Target & getTheThumbLETarget()
static GCMetadataPrinterRegistry::Add< OcamlGCMetadataPrinter > Y("ocaml", "ocaml 3.10-compatible collector")
Target & getTheARMBETarget()
void LLVMInitializeARMTargetInfo()
Target & getTheThumbBETarget()
static GCRegistry::Add< OcamlGC > B("ocaml", "ocaml 3.10-compatible GC")
Target - Wrapper for Target specific information.
Target & getTheARMLETarget()