LLVM  10.0.0svn
AMDGPUTargetInfo.cpp
Go to the documentation of this file.
1 //===-- TargetInfo/AMDGPUTargetInfo.cpp - TargetInfo for AMDGPU -----------===//
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 //
9 /// \file
10 //
11 //===----------------------------------------------------------------------===//
12 
15 
16 using namespace llvm;
17 
18 /// The target which supports all AMD GPUs. This will eventually
19 /// be deprecated and there will be a R600 target and a GCN target.
21  static Target TheAMDGPUTarget;
22  return TheAMDGPUTarget;
23 }
24 /// The target for GCN GPUs
26  static Target TheGCNTarget;
27  return TheGCNTarget;
28 }
29 
30 /// Extern function to initialize the targets for the AMDGPU backend
31 extern "C" void LLVMInitializeAMDGPUTargetInfo() {
33  "AMD GPUs HD2XXX-HD6XXX", "AMDGPU");
35  "AMD GCN GPUs", "AMDGPU");
36 }
Target & getTheGCNTarget()
The target for GCN GPUs.
This class represents lattice values for constants.
Definition: AllocatorList.h:23
Target & getTheAMDGPUTarget()
The target which supports all AMD GPUs.
void LLVMInitializeAMDGPUTargetInfo()
Extern function to initialize the targets for the AMDGPU backend.
Target - Wrapper for Target specific information.