[PATCH] D103495: [static initializers] Don't put ordered dynamic initializers of static variables into global_ctors
Wolfgang Pieb via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 7 11:19:21 PDT 2021
wolfgangp updated this revision to Diff 350364.
wolfgangp added a comment.
Herald added subscribers: llvm-commits, jdoerfert, pengfei, jrtc27, fedor.sergeev, hiraditya, jyknight, dschuff.
Herald added a project: LLVM.
Following the suggestion to define an order of initialization for the entries in llvm.global_ctors and llvm.global_dtors this is mainly a documentation change, as well as a simple reversed emission of global_ctors/dtors entries when InitArray is not used.
3 test cases are affected, 2 of them just by a reversed order of emission of priority-suffixed sections. I added a couple of entries to the third test case to verify in-order emission of entries with equal priority.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D103495/new/
https://reviews.llvm.org/D103495
Files:
llvm/docs/LangRef.rst
llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
llvm/test/CodeGen/SPARC/constructor.ll
llvm/test/CodeGen/X86/2011-08-29-InitOrder.ll
llvm/test/CodeGen/X86/constructor.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D103495.350364.patch
Type: text/x-patch
Size: 7065 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210607/ed941e58/attachment.bin>
More information about the cfe-commits
mailing list