LLVM  9.0.0svn
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 "Sparc.h"
10 #include "llvm/IR/Module.h"
12 using 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 
27 extern "C" void LLVMInitializeSparcTargetInfo() {
28  RegisterTarget<Triple::sparc, /*HasJIT=*/true> X(getTheSparcTarget(), "sparc",
29  "Sparc", "Sparc");
30  RegisterTarget<Triple::sparcv9, /*HasJIT=*/true> Y(
31  getTheSparcV9Target(), "sparcv9", "Sparc V9", "Sparc");
32  RegisterTarget<Triple::sparcel, /*HasJIT=*/true> Z(
33  getTheSparcelTarget(), "sparcel", "Sparc LE", "Sparc");
34 }
static GCMetadataPrinterRegistry::Add< ErlangGCPrinter > X("erlang", "erlang-compatible garbage collector")
This class represents lattice values for constants.
Definition: AllocatorList.h:23
static GCMetadataPrinterRegistry::Add< OcamlGCMetadataPrinter > Y("ocaml", "ocaml 3.10-compatible collector")
void LLVMInitializeSparcTargetInfo()
Target & getTheSparcTarget()
Target & getTheSparcelTarget()
Module.h This file contains the declarations for the Module class.
Target - Wrapper for Target specific information.
Target & getTheSparcV9Target()