[clang] [CIR] Implement the 'rest' of the TLS Model types (PR #215380)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 11 11:50:47 PDT 2026


================
@@ -68,9 +68,6 @@ void CIRGenModule::setGlobalTlsReferences(const VarDecl &vd,
   if (!getLangOpts().CPlusPlus)
----------------
erichkeane wrote:

Sorry, I'm not really getting what you're pointing out?  We still need these wrappers/init funcs/guards in the other types, right?  This code is quite a bit different format than classic codegen, so perhaps it isn't doing the same thing?

But if you look here: https://godbolt.org/z/WrW9adfzv

You can see that the local-dynamic still emits both of those symbols.

https://github.com/llvm/llvm-project/pull/215380


More information about the cfe-commits mailing list