brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.2 KiB · 2bfcffb Raw
36 lines · cpp
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-exception6//7//===----------------------------------------------------------------------===//8 9#include "TargetInfo/SparcTargetInfo.h"10#include "llvm/MC/TargetRegistry.h"11#include "llvm/Support/Compiler.h"12using namespace llvm;13 14Target &llvm::getTheSparcTarget() {15  static Target TheSparcTarget;16  return TheSparcTarget;17}18Target &llvm::getTheSparcV9Target() {19  static Target TheSparcV9Target;20  return TheSparcV9Target;21}22Target &llvm::getTheSparcelTarget() {23  static Target TheSparcelTarget;24  return TheSparcelTarget;25}26 27extern "C" LLVM_ABI LLVM_EXTERNAL_VISIBILITY void28LLVMInitializeSparcTargetInfo() {29  RegisterTarget<Triple::sparc, /*HasJIT=*/false> X(getTheSparcTarget(),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}36