LLVM 22.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
10#include "llvm-c/Visibility.h"
12using namespace llvm;
13
15 static Target TheX86_32Target;
16 return TheX86_32Target;
17}
19 static Target TheX86_64Target;
20 return TheX86_64Target;
21}
22
24 RegisterTarget<Triple::x86, /*HasJIT=*/true> X(
25 getTheX86_32Target(), "x86", "32-bit X86: Pentium-Pro and above", "X86");
26
27 RegisterTarget<Triple::x86_64, /*HasJIT=*/true> Y(
28 getTheX86_64Target(), "x86-64", "64-bit X86: EM64T and AMD64", "X86");
29}
static TableGen::Emitter::Opt Y("gen-skeleton-entry", EmitSkeleton, "Generate example skeleton entry")
static TableGen::Emitter::OptClass< SkeletonEmitter > X("gen-skeleton-class", "Generate example skeleton class")
#define LLVM_C_ABI
LLVM_C_ABI is the export/visibility macro used to mark symbols declared in llvm-c as exported when bu...
Definition Visibility.h:40
LLVM_C_ABI void LLVMInitializeX86TargetInfo()
Target - Wrapper for Target specific information.
This is an optimization pass for GlobalISel generic memory operations.
Target & getTheX86_32Target()
Target & getTheX86_64Target()
RegisterTarget - Helper template for registering a target, for use in the target's initialization fun...