LLVM  9.0.0svn
AArch64TargetInfo.cpp
Go to the documentation of this file.
1 //===-- AArch64TargetInfo.cpp - AArch64 Target Implementation -----------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #include "llvm/ADT/Triple.h"
11 using namespace llvm;
12 namespace llvm {
14  static Target TheAArch64leTarget;
15  return TheAArch64leTarget;
16 }
18  static Target TheAArch64beTarget;
19  return TheAArch64beTarget;
20 }
22  static Target TheARM64Target;
23  return TheARM64Target;
24 }
25 } // namespace llvm
26 
28  // Now register the "arm64" name for use with "-march". We don't want it to
29  // take possession of the Triple::aarch64 tag though.
31  "ARM64 (little endian)", "AArch64",
32  [](Triple::ArchType) { return false; }, true);
33 
34  RegisterTarget<Triple::aarch64, /*HasJIT=*/true> Z(
35  getTheAArch64leTarget(), "aarch64", "AArch64 (little endian)", "AArch64");
36  RegisterTarget<Triple::aarch64_be, /*HasJIT=*/true> W(
37  getTheAArch64beTarget(), "aarch64_be", "AArch64 (big endian)", "AArch64");
38 }
Target & getTheAArch64beTarget()
This class represents lattice values for constants.
Definition: AllocatorList.h:23
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.