LLVM 19.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
11using namespace llvm;
12
14 static Target TheRISCV32Target;
15 return TheRISCV32Target;
16}
17
19 static Target TheRISCV64Target;
20 return TheRISCV64Target;
21}
22
24 RegisterTarget<Triple::riscv32, /*HasJIT=*/true> X(
25 getTheRISCV32Target(), "riscv32", "32-bit RISC-V", "RISCV");
26 RegisterTarget<Triple::riscv64, /*HasJIT=*/true> Y(
27 getTheRISCV64Target(), "riscv64", "64-bit RISC-V", "RISCV");
28}
#define LLVM_EXTERNAL_VISIBILITY
Definition: Compiler.h:135
static GCMetadataPrinterRegistry::Add< ErlangGCPrinter > X("erlang", "erlang-compatible garbage collector")
static GCMetadataPrinterRegistry::Add< OcamlGCMetadataPrinter > Y("ocaml", "ocaml 3.10-compatible collector")
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 & getTheRISCV64Target()
RegisterTarget - Helper template for registering a target, for use in the target's initialization fun...