LLVM  6.0.0svn
AMDGPUTargetInfo.cpp
Go to the documentation of this file.
1 //===-- TargetInfo/AMDGPUTargetInfo.cpp - TargetInfo for AMDGPU -----------===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 /// \file
11 //
12 //===----------------------------------------------------------------------===//
13 
14 #include "AMDGPUTargetMachine.h"
16 
17 using namespace llvm;
18 
19 /// \brief The target which supports all AMD GPUs. This will eventually
20 /// be deprecated and there will be a R600 target and a GCN target.
22  static Target TheAMDGPUTarget;
23  return TheAMDGPUTarget;
24 }
25 /// \brief The target for GCN GPUs
27  static Target TheGCNTarget;
28  return TheGCNTarget;
29 }
30 
31 /// \brief Extern function to initialize the targets for the AMDGPU backend
32 extern "C" void LLVMInitializeAMDGPUTargetInfo() {
34  "AMD GPUs HD2XXX-HD6XXX");
36  "AMD GCN GPUs");
37 }
RegisterTarget - Helper template for registering a target, for use in the target's initialization fun...
Target & getTheGCNTarget()
The target for GCN GPUs.
Compute iterated dominance frontiers using a linear time algorithm.
Definition: AllocatorList.h:24
Target & getTheAMDGPUTarget()
The target which supports all AMD GPUs.
void LLVMInitializeAMDGPUTargetInfo()
Extern function to initialize the targets for the AMDGPU backend.
The AMDGPU TargetMachine interface definition for hw codgen targets.
Target - Wrapper for Target specific information.