LLVM  8.0.1
AArch64TargetInfo.cpp
Go to the documentation of this file.
1 //===-- AArch64TargetInfo.cpp - AArch64 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 "llvm/ADT/Triple.h"
12 using namespace llvm;
13 namespace llvm {
15  static Target TheAArch64leTarget;
16  return TheAArch64leTarget;
17 }
19  static Target TheAArch64beTarget;
20  return TheAArch64beTarget;
21 }
23  static Target TheARM64Target;
24  return TheARM64Target;
25 }
26 } // namespace llvm
27 
29  // Now register the "arm64" name for use with "-march". We don't want it to
30  // take possession of the Triple::aarch64 tag though.
32  "ARM64 (little endian)", "AArch64",
33  [](Triple::ArchType) { return false; }, true);
34 
35  RegisterTarget<Triple::aarch64, /*HasJIT=*/true> Z(
36  getTheAArch64leTarget(), "aarch64", "AArch64 (little endian)", "AArch64");
37  RegisterTarget<Triple::aarch64_be, /*HasJIT=*/true> W(
38  getTheAArch64beTarget(), "aarch64_be", "AArch64 (big endian)", "AArch64");
39 }
Target & getTheAArch64beTarget()
This class represents lattice values for constants.
Definition: AllocatorList.h:24
Target & getTheAArch64leTarget()
Target & getTheARM64Target()
static void RegisterTarget(Target &T, const char *Name, const char *ShortDesc, const char *BackendName, Target::ArchMatchFnTy ArchMatchFn, bool HasJIT=false)
RegisterTarget - Register the given target.
void LLVMInitializeAArch64TargetInfo()
Target - Wrapper for Target specific information.