[clang] [clang][CodeGen][SPIRV] Translate `amdgpu_flat_work_group_size` into `reqd_work_group_size`. (PR #116820)
Matt Arsenault via cfe-commits
cfe-commits at lists.llvm.org
Thu Dec 19 01:20:43 PST 2024
================
@@ -245,6 +247,41 @@ SPIRVTargetCodeGenInfo::getGlobalVarAddressSpace(CodeGenModule &CGM,
return DefaultGlobalAS;
}
+void SPIRVTargetCodeGenInfo::setTargetAttributes(
+ const Decl *D, llvm::GlobalValue *GV, CodeGen::CodeGenModule &M) const {
+ if (!M.getLangOpts().HIP ||
+ M.getTarget().getTriple().getVendor() != llvm::Triple::AMD)
+ return;
----------------
arsenm wrote:
Remove the vendor check. The language check is also suspect, this is interpretation of a target attribute
https://github.com/llvm/llvm-project/pull/116820
More information about the cfe-commits
mailing list