LLVM  16.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 
10 #include "llvm/MC/TargetRegistry.h"
11 using 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=*/false> Y(
28  getTheLoongArch64Target(), "loongarch64", "64-bit LoongArch",
29  "LoongArch");
30 }
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18
llvm::getTheLoongArch32Target
Target & getTheLoongArch32Target()
Definition: LoongArchTargetInfo.cpp:13
llvm::Target
Target - Wrapper for Target specific information.
Definition: TargetRegistry.h:145
Y
static GCMetadataPrinterRegistry::Add< OcamlGCMetadataPrinter > Y("ocaml", "ocaml 3.10-compatible collector")
LLVMInitializeLoongArchTargetInfo
LLVM_EXTERNAL_VISIBILITY void LLVMInitializeLoongArchTargetInfo()
Definition: LoongArchTargetInfo.cpp:23
X
static GCMetadataPrinterRegistry::Add< ErlangGCPrinter > X("erlang", "erlang-compatible garbage collector")
LLVM_EXTERNAL_VISIBILITY
#define LLVM_EXTERNAL_VISIBILITY
Definition: Compiler.h:127
llvm::Triple::loongarch32
@ loongarch32
Definition: Triple.h:61
LoongArchTargetInfo.h
llvm::RegisterTarget
RegisterTarget - Helper template for registering a target, for use in the target's initialization fun...
Definition: TargetRegistry.h:1100
llvm::Triple::loongarch64
@ loongarch64
Definition: Triple.h:62
TargetRegistry.h
llvm::getTheLoongArch64Target
Target & getTheLoongArch64Target()
Definition: LoongArchTargetInfo.cpp:18