Path: blob/main/contrib/llvm-project/llvm/lib/Target/X86/TargetInfo/X86TargetInfo.cpp
35294 views
//===-- X86TargetInfo.cpp - X86 Target Implementation ---------------------===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//78#include "TargetInfo/X86TargetInfo.h"9#include "llvm/MC/TargetRegistry.h"10using namespace llvm;1112Target &llvm::getTheX86_32Target() {13static Target TheX86_32Target;14return TheX86_32Target;15}16Target &llvm::getTheX86_64Target() {17static Target TheX86_64Target;18return TheX86_64Target;19}2021extern "C" LLVM_EXTERNAL_VISIBILITY void LLVMInitializeX86TargetInfo() {22RegisterTarget<Triple::x86, /*HasJIT=*/true> X(23getTheX86_32Target(), "x86", "32-bit X86: Pentium-Pro and above", "X86");2425RegisterTarget<Triple::x86_64, /*HasJIT=*/true> Y(26getTheX86_64Target(), "x86-64", "64-bit X86: EM64T and AMD64", "X86");27}282930