LLVM
15.0.0git
lib
Target
Sparc
TargetInfo
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
9
#include "
TargetInfo/SparcTargetInfo.h
"
10
#include "
llvm/MC/TargetRegistry.h
"
11
using namespace
llvm
;
12
13
Target
&
llvm::getTheSparcTarget
() {
14
static
Target
TheSparcTarget;
15
return
TheSparcTarget;
16
}
17
Target
&
llvm::getTheSparcV9Target
() {
18
static
Target
TheSparcV9Target;
19
return
TheSparcV9Target;
20
}
21
Target
&
llvm::getTheSparcelTarget
() {
22
static
Target
TheSparcelTarget;
23
return
TheSparcelTarget;
24
}
25
26
extern
"C"
LLVM_EXTERNAL_VISIBILITY
void
LLVMInitializeSparcTargetInfo
() {
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
This is an optimization pass for GlobalISel generic memory operations.
Definition:
AddressRanges.h:17
llvm::Target
Target - Wrapper for Target specific information.
Definition:
TargetRegistry.h:145
llvm::getTheSparcTarget
Target & getTheSparcTarget()
Definition:
SparcTargetInfo.cpp:13
llvm::Triple::sparc
@ sparc
Definition:
Triple.h:77
llvm::Triple::sparcv9
@ sparcv9
Definition:
Triple.h:78
llvm::Triple::sparcel
@ sparcel
Definition:
Triple.h:79
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:126
llvm::RegisterTarget
RegisterTarget - Helper template for registering a target, for use in the target's initialization fun...
Definition:
TargetRegistry.h:1100
LLVMInitializeSparcTargetInfo
LLVM_EXTERNAL_VISIBILITY void LLVMInitializeSparcTargetInfo()
Definition:
SparcTargetInfo.cpp:26
TargetRegistry.h
llvm::getTheSparcV9Target
Target & getTheSparcV9Target()
Definition:
SparcTargetInfo.cpp:17
Generated on Sat Jun 25 2022 14:07:10 for LLVM by
1.8.17