]>
git.proxmox.com Git - rustc.git/blob - src/llvm/lib/Target/R600/TargetInfo/AMDGPUTargetInfo.cpp
1 //===-- TargetInfo/AMDGPUTargetInfo.cpp - TargetInfo for AMDGPU -----------===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
12 //===----------------------------------------------------------------------===//
14 #include "AMDGPUTargetMachine.h"
15 #include "llvm/Support/TargetRegistry.h"
19 /// \brief The target which suports all AMD GPUs. This will eventually
20 /// be deprecated and there will be a R600 target and a GCN target.
21 Target
llvm::TheAMDGPUTarget
;
22 /// \brief The target for GCN GPUs
23 Target
llvm::TheGCNTarget
;
25 /// \brief Extern function to initialize the targets for the AMDGPU backend
26 extern "C" void LLVMInitializeR600TargetInfo() {
27 RegisterTarget
<Triple::r600
, false>
28 R600(TheAMDGPUTarget
, "r600", "AMD GPUs HD2XXX-HD6XXX");
29 RegisterTarget
<Triple::amdgcn
, false> GCN(TheGCNTarget
, "amdgcn", "AMD GCN GPUs");