21 static Target TheAMDGPUTarget;
22 return TheAMDGPUTarget;
27 static Target TheGCNTarget;
34 static Target TheGCNLegacyTarget;
35 return TheGCNLegacyTarget;
42 "AMD GPUs HD2XXX-HD6XXX",
"AMDGPU");
52 "legacy name for amdgpu",
"AMDGPU",
LLVM_ABI LLVM_EXTERNAL_VISIBILITY void LLVMInitializeAMDGPUTargetInfo()
Extern function to initialize the targets for the AMDGPU backend.
#define LLVM_EXTERNAL_VISIBILITY
Target - Wrapper for Target specific information.
This is an optimization pass for GlobalISel generic memory operations.
Target & getTheR600Target()
The target for R600 GPUs.
Target & getTheGCNTarget()
The target for GCN GPUs.
Target & getTheGCNLegacyTarget()
The target for GCN GPUs, registered under the legacy "amdgcn" architecture name for use with -march.
RegisterTarget - Helper template for registering a target, for use in the target's initialization fun...
static LLVM_ABI void RegisterTarget(Target &T, const char *Name, const char *ShortDesc, const char *BackendName, Target::ArchMatchFnTy ArchMatchFn, bool HasJIT=false)
RegisterTarget - Register the given target.