[clang] [llvm] [AMDGPU] Introduce GFX9/10.1/10.3/11 Generic Targets (PR #76955)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 6 03:33:57 PST 2024
================
@@ -279,13 +279,25 @@ void AMDGPUTargetInfo::getTargetDefines(const LangOptions &Opts,
if (GPUKind == llvm::AMDGPU::GK_NONE && !IsHIPHost)
return;
- StringRef CanonName = isAMDGCN(getTriple()) ? getArchNameAMDGCN(GPUKind)
- : getArchNameR600(GPUKind);
+ std::string CanonName = (isAMDGCN(getTriple()) ? getArchNameAMDGCN(GPUKind)
----------------
arsenm wrote:
SmallString?
https://github.com/llvm/llvm-project/pull/76955
More information about the llvm-commits
mailing list