LLVM 22.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
12using namespace llvm;
13
15 static Target TheSparcTarget;
16 return TheSparcTarget;
17}
19 static Target TheSparcV9Target;
20 return TheSparcV9Target;
21}
23 static Target TheSparcelTarget;
24 return TheSparcelTarget;
25}
26
30 "sparc", "Sparc", "Sparc");
31 RegisterTarget<Triple::sparcv9, /*HasJIT=*/false> Y(
32 getTheSparcV9Target(), "sparcv9", "Sparc V9", "Sparc");
33 RegisterTarget<Triple::sparcel, /*HasJIT=*/false> Z(
34 getTheSparcelTarget(), "sparcel", "Sparc LE", "Sparc");
35}
#define LLVM_ABI
Definition Compiler.h:213
#define LLVM_EXTERNAL_VISIBILITY
Definition Compiler.h:132
LLVM_ABI LLVM_EXTERNAL_VISIBILITY void LLVMInitializeSparcTargetInfo()
static TableGen::Emitter::Opt Y("gen-skeleton-entry", EmitSkeleton, "Generate example skeleton entry")
static TableGen::Emitter::OptClass< SkeletonEmitter > X("gen-skeleton-class", "Generate example skeleton class")
Target - Wrapper for Target specific information.
This is an optimization pass for GlobalISel generic memory operations.
Target & getTheSparcTarget()
Target & getTheSparcV9Target()
Target & getTheSparcelTarget()
RegisterTarget - Helper template for registering a target, for use in the target's initialization fun...