LLVM 22.0.0git
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
16
17using namespace llvm;
18
19/// The target for R600 GPUs.
21 static Target TheAMDGPUTarget;
22 return TheAMDGPUTarget;
23}
24
25/// The target for GCN GPUs.
27 static Target TheGCNTarget;
28 return TheGCNTarget;
29}
30
31/// Extern function to initialize the targets for the AMDGPU backend
35 "AMD GPUs HD2XXX-HD6XXX", "AMDGPU");
37 "AMD GCN GPUs", "AMDGPU");
38}
LLVM_ABI LLVM_EXTERNAL_VISIBILITY void LLVMInitializeAMDGPUTargetInfo()
Extern function to initialize the targets for the AMDGPU backend.
#define LLVM_ABI
Definition: Compiler.h:213
#define LLVM_EXTERNAL_VISIBILITY
Definition: Compiler.h:132
Target - Wrapper for Target specific information.
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18
Target & getTheR600Target()
The target for R600 GPUs.
Target & getTheGCNTarget()
The target for GCN GPUs.
RegisterTarget - Helper template for registering a target, for use in the target's initialization fun...