brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1017 B · 550050e Raw
30 lines · cpp
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-exception6//7//===----------------------------------------------------------------------===//8 9#include "TargetInfo/X86TargetInfo.h"10#include "llvm-c/Visibility.h"11#include "llvm/MC/TargetRegistry.h"12using namespace llvm;13 14Target &llvm::getTheX86_32Target() {15  static Target TheX86_32Target;16  return TheX86_32Target;17}18Target &llvm::getTheX86_64Target() {19  static Target TheX86_64Target;20  return TheX86_64Target;21}22 23extern "C" LLVM_C_ABI void LLVMInitializeX86TargetInfo() {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}30