[clang] [llvm] [HLSL] Set visibility of cbuffer global variables to internal (2nd attempt) (PR #202745)
Justin Bogner via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 11 12:59:57 PDT 2026
================
@@ -59,6 +59,7 @@ static bool replaceCBufferAccesses(Module &M) {
for (const hlsl::CBufferMember &Member : Mapping.Members)
replaceUsersOfGlobal(Member.GV, Mapping.Handle, Member.Offset);
+ CBufMD->removeCBufferGlobalsFromUseList(M);
----------------
bogner wrote:
I agree - this small amount of per-backend duplication seems like a lower cost than needing to reimplement removeFromUsedLists in the Frontend/HLSL library.
https://github.com/llvm/llvm-project/pull/202745
More information about the cfe-commits
mailing list