LLVM 20.0.0git
X86TargetInfo.cpp
Go to the documentation of this file.
1//===-- X86TargetInfo.cpp - X86 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 TheX86_32Target;
15 return TheX86_32Target;
16}
18 static Target TheX86_64Target;
19 return TheX86_64Target;
20}
21
23 RegisterTarget<Triple::x86, /*HasJIT=*/true> X(
24 getTheX86_32Target(), "x86", "32-bit X86: Pentium-Pro and above", "X86");
25
26 RegisterTarget<Triple::x86_64, /*HasJIT=*/true> Y(
27 getTheX86_64Target(), "x86-64", "64-bit X86: EM64T and AMD64", "X86");
28}
#define LLVM_C_ABI
Definition: Compiler.h:218
static GCMetadataPrinterRegistry::Add< ErlangGCPrinter > X("erlang", "erlang-compatible garbage collector")
static GCMetadataPrinterRegistry::Add< OcamlGCMetadataPrinter > Y("ocaml", "ocaml 3.10-compatible collector")
LLVM_C_ABI void LLVMInitializeX86TargetInfo()
Target - Wrapper for Target specific information.
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18
Target & getTheX86_32Target()
Target & getTheX86_64Target()
RegisterTarget - Helper template for registering a target, for use in the target's initialization fun...