Path: blob/main/contrib/llvm-project/llvm/lib/Target/LoongArch/TargetInfo/LoongArchTargetInfo.cpp
35294 views
//===-- LoongArchTargetInfo.cpp - LoongArch Target Implementation ---------===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//78#include "TargetInfo/LoongArchTargetInfo.h"9#include "llvm/MC/TargetRegistry.h"10using namespace llvm;1112Target &llvm::getTheLoongArch32Target() {13static Target TheLoongArch32Target;14return TheLoongArch32Target;15}1617Target &llvm::getTheLoongArch64Target() {18static Target TheLoongArch64Target;19return TheLoongArch64Target;20}2122extern "C" LLVM_EXTERNAL_VISIBILITY void LLVMInitializeLoongArchTargetInfo() {23RegisterTarget<Triple::loongarch32, /*HasJIT=*/false> X(24getTheLoongArch32Target(), "loongarch32", "32-bit LoongArch",25"LoongArch");26RegisterTarget<Triple::loongarch64, /*HasJIT=*/true> Y(27getTheLoongArch64Target(), "loongarch64", "64-bit LoongArch",28"LoongArch");29}303132