LLVM  14.0.0git
SparcTargetInfo.cpp
Go to the documentation of this file.
1 //===-- SparcTargetInfo.cpp - Sparc 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 using namespace llvm;
12 
14  static Target TheSparcTarget;
15  return TheSparcTarget;
16 }
18  static Target TheSparcV9Target;
19  return TheSparcV9Target;
20 }
22  static Target TheSparcelTarget;
23  return TheSparcelTarget;
24 }
25 
27  RegisterTarget<Triple::sparc, /*HasJIT=*/true> X(getTheSparcTarget(), "sparc",
28  "Sparc", "Sparc");
29  RegisterTarget<Triple::sparcv9, /*HasJIT=*/true> Y(
30  getTheSparcV9Target(), "sparcv9", "Sparc V9", "Sparc");
31  RegisterTarget<Triple::sparcel, /*HasJIT=*/true> Z(
32  getTheSparcelTarget(), "sparcel", "Sparc LE", "Sparc");
33 }
SparcTargetInfo.h
llvm
---------------------— PointerInfo ------------------------------------—
Definition: AllocatorList.h:23
llvm::Target
Target - Wrapper for Target specific information.
Definition: TargetRegistry.h:137
llvm::getTheSparcTarget
Target & getTheSparcTarget()
Definition: SparcTargetInfo.cpp:13
llvm::Triple::sparc
@ sparc
Definition: Triple.h:75
llvm::Triple::sparcv9
@ sparcv9
Definition: Triple.h:76
llvm::Triple::sparcel
@ sparcel
Definition: Triple.h:77
Y
static GCMetadataPrinterRegistry::Add< OcamlGCMetadataPrinter > Y("ocaml", "ocaml 3.10-compatible collector")
llvm::getTheSparcelTarget
Target & getTheSparcelTarget()
Definition: SparcTargetInfo.cpp:21
X
static GCMetadataPrinterRegistry::Add< ErlangGCPrinter > X("erlang", "erlang-compatible garbage collector")
LLVM_EXTERNAL_VISIBILITY
#define LLVM_EXTERNAL_VISIBILITY
Definition: Compiler.h:132
llvm::RegisterTarget
RegisterTarget - Helper template for registering a target, for use in the target's initialization fun...
Definition: TargetRegistry.h:1057
LLVMInitializeSparcTargetInfo
LLVM_EXTERNAL_VISIBILITY void LLVMInitializeSparcTargetInfo()
Definition: SparcTargetInfo.cpp:26
TargetRegistry.h
llvm::getTheSparcV9Target
Target & getTheSparcV9Target()
Definition: SparcTargetInfo.cpp:17