LLVM 22.0.0git
RISCVTargetInfo.cpp
Go to the documentation of this file.
1//===-- RISCVTargetInfo.cpp - RISC-V 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
12using namespace llvm;
13
15 static Target TheRISCV32Target;
16 return TheRISCV32Target;
17}
18
20 static Target TheRISCV64Target;
21 return TheRISCV64Target;
22}
23
25 static Target TheRISCV32beTarget;
26 return TheRISCV32beTarget;
27}
28
30 static Target TheRISCV64beTarget;
31 return TheRISCV64beTarget;
32}
33
36 RegisterTarget<Triple::riscv32, /*HasJIT=*/true> X(
37 getTheRISCV32Target(), "riscv32", "32-bit RISC-V", "RISCV");
38 RegisterTarget<Triple::riscv64, /*HasJIT=*/true> Y(
39 getTheRISCV64Target(), "riscv64", "64-bit RISC-V", "RISCV");
41 "32-bit big endian RISC-V", "RISCV");
43 "64-bit big endian RISC-V", "RISCV");
44}
static GCRegistry::Add< OcamlGC > B("ocaml", "ocaml 3.10-compatible GC")
static GCRegistry::Add< ErlangGC > A("erlang", "erlang-compatible garbage collector")
#define LLVM_ABI
Definition: Compiler.h:213
#define LLVM_EXTERNAL_VISIBILITY
Definition: Compiler.h:132
static GCMetadataPrinterRegistry::Add< ErlangGCPrinter > X("erlang", "erlang-compatible garbage collector")
static GCMetadataPrinterRegistry::Add< OcamlGCMetadataPrinter > Y("ocaml", "ocaml 3.10-compatible collector")
LLVM_ABI LLVM_EXTERNAL_VISIBILITY void LLVMInitializeRISCVTargetInfo()
Target - Wrapper for Target specific information.
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18
Target & getTheRISCV32Target()
Target & getTheRISCV64beTarget()
Target & getTheRISCV64Target()
Target & getTheRISCV32beTarget()
RegisterTarget - Helper template for registering a target, for use in the target's initialization fun...