LLVM  14.0.0git
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 
11 
12 using namespace llvm;
14  static Target TheAArch64leTarget;
15  return TheAArch64leTarget;
16 }
18  static Target TheAArch64beTarget;
19  return TheAArch64beTarget;
20 }
22  static Target TheAArch64leTarget;
23  return TheAArch64leTarget;
24 }
26  static Target TheARM64Target;
27  return TheARM64Target;
28 }
30  static Target TheARM64_32Target;
31  return TheARM64_32Target;
32 }
33 
35  // Now register the "arm64" name for use with "-march". We don't want it to
36  // take possession of the Triple::aarch64 tags though.
38  "ARM64 (little endian)", "AArch64",
39  [](Triple::ArchType) { return false; }, true);
41  "ARM64 (little endian ILP32)", "AArch64",
42  [](Triple::ArchType) { return false; }, true);
43 
44  RegisterTarget<Triple::aarch64, /*HasJIT=*/true> Z(
45  getTheAArch64leTarget(), "aarch64", "AArch64 (little endian)", "AArch64");
46  RegisterTarget<Triple::aarch64_be, /*HasJIT=*/true> W(
47  getTheAArch64beTarget(), "aarch64_be", "AArch64 (big endian)", "AArch64");
48  RegisterTarget<Triple::aarch64_32, /*HasJIT=*/true> X(
49  getTheAArch64_32Target(), "aarch64_32", "AArch64 (little endian ILP32)", "AArch64");
50 }
llvm
---------------------— PointerInfo ------------------------------------—
Definition: AllocatorList.h:23
llvm::Target
Target - Wrapper for Target specific information.
Definition: TargetRegistry.h:137
llvm::RISCVFenceField::W
@ W
Definition: RISCVBaseInfo.h:194
llvm::getTheAArch64_32Target
Target & getTheAArch64_32Target()
Definition: AArch64TargetInfo.cpp:21
llvm::Triple::aarch64_32
@ aarch64_32
Definition: Triple.h:54
llvm::Triple::ArchType
ArchType
Definition: Triple.h:47
llvm::getTheAArch64leTarget
Target & getTheAArch64leTarget()
Definition: AArch64TargetInfo.cpp:13
X
static GCMetadataPrinterRegistry::Add< ErlangGCPrinter > X("erlang", "erlang-compatible garbage collector")
LLVM_EXTERNAL_VISIBILITY
#define LLVM_EXTERNAL_VISIBILITY
Definition: Compiler.h:132
llvm::TargetRegistry::RegisterTarget
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.
Definition: TargetRegistry.cpp:88
llvm::getTheARM64_32Target
Target & getTheARM64_32Target()
Definition: AArch64TargetInfo.cpp:29
LLVMInitializeAArch64TargetInfo
LLVM_EXTERNAL_VISIBILITY void LLVMInitializeAArch64TargetInfo()
Definition: AArch64TargetInfo.cpp:34
llvm::Triple::aarch64_be
@ aarch64_be
Definition: Triple.h:53
llvm::RegisterTarget
RegisterTarget - Helper template for registering a target, for use in the target's initialization fun...
Definition: TargetRegistry.h:1057
llvm::getTheAArch64beTarget
Target & getTheAArch64beTarget()
Definition: AArch64TargetInfo.cpp:17
llvm::getTheARM64Target
Target & getTheARM64Target()
Definition: AArch64TargetInfo.cpp:25
TargetRegistry.h
llvm::Triple::aarch64
@ aarch64
Definition: Triple.h:52
AArch64TargetInfo.h