LLVM 20.0.0git
LoongArchTargetInfo.cpp
Go to the documentation of this file.
1//===-- LoongArchTargetInfo.cpp - LoongArch 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
11using namespace llvm;
12
14 static Target TheLoongArch32Target;
15 return TheLoongArch32Target;
16}
17
19 static Target TheLoongArch64Target;
20 return TheLoongArch64Target;
21}
22
24 RegisterTarget<Triple::loongarch32, /*HasJIT=*/false> X(
25 getTheLoongArch32Target(), "loongarch32", "32-bit LoongArch",
26 "LoongArch");
27 RegisterTarget<Triple::loongarch64, /*HasJIT=*/true> Y(
28 getTheLoongArch64Target(), "loongarch64", "64-bit LoongArch",
29 "LoongArch");
30}
#define LLVM_EXTERNAL_VISIBILITY
Definition: Compiler.h:135
static GCMetadataPrinterRegistry::Add< ErlangGCPrinter > X("erlang", "erlang-compatible garbage collector")
LLVM_EXTERNAL_VISIBILITY void LLVMInitializeLoongArchTargetInfo()
static GCMetadataPrinterRegistry::Add< OcamlGCMetadataPrinter > Y("ocaml", "ocaml 3.10-compatible collector")
Target - Wrapper for Target specific information.
@ loongarch32
Definition: Triple.h:61
@ loongarch64
Definition: Triple.h:62
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18
Target & getTheLoongArch64Target()
Target & getTheLoongArch32Target()
RegisterTarget - Helper template for registering a target, for use in the target's initialization fun...