[PATCH] D152251: [clang][CodeGen] Fix GPU-specific attributes being dropped by bitcode linking
Yaxun Liu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 7 06:09:45 PDT 2023
yaxunl accepted this revision.
yaxunl added a comment.
LGTM. Thanks
================
Comment at: clang/test/CodeGenCUDA/link-builtin-bitcode-gpu-attrs-preserved.cu:35
+// INTERNALIZE: attributes #[[ATTR]] = {{.*}} "target-cpu"="gfx{{.*}}" "target-features"="+gfx11-insts"
+// NOINTERNALIZE: attributes #[[ATTR]] = {{.*}} "target-features"="+gfx11-insts"
+
----------------
Do we know why internalize keeps the target-cpu attribute but non-internalize does not?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D152251/new/
https://reviews.llvm.org/D152251
More information about the cfe-commits
mailing list