================
@@ -2420,8 +2421,15 @@ static void printCommonGlobalAndAlias(OpAsmPrinter &p,
OpType op) {
StringRef visibility = stringifyVisibility(op.getVisibility_());
if (!visibility.empty())
p << visibility << ' ';
- if (op.getThreadLocal_())
- p << "thread_local ";
+
+ if (ThreadLocalMode mode = op.getTlsMode();
+ mode != ThreadLocalMode::NotThreadLocal) {
+ p << "thread_local";
+ if (mode != ThreadLocalMode::GeneralDynamic)
----------------
gysit wrote:
Ah ok, if this mirrors LLVM then I would stick to it (especially given it is
already implemented).
https://github.com/llvm/llvm-project/pull/214337
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits