LLVM 20.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
15
16using namespace llvm;
17
18/// The target for R600 GPUs.
20 static Target TheAMDGPUTarget;
21 return TheAMDGPUTarget;
22}
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
33 "AMD GPUs HD2XXX-HD6XXX", "AMDGPU");
35 "AMD GCN GPUs", "AMDGPU");
36}
LLVM_EXTERNAL_VISIBILITY void LLVMInitializeAMDGPUTargetInfo()
Extern function to initialize the targets for the AMDGPU backend.
#define LLVM_EXTERNAL_VISIBILITY
Definition: Compiler.h:131
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...