<feed xmlns='http://www.w3.org/2005/Atom'>
<title>llvm-project.git/llvm/lib/Target/WebAssembly/WebAssemblyLowerGlobalDtors.cpp, branch users/nico/python-2</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/'/>
<entry>
<title>Reland "Lower `@llvm.global_dtors` using `__cxa_atexit` on MachO"</title>
<updated>2022-03-24T01:36:55+00:00</updated>
<author>
<name>Julian Lettner</name>
<email>julian.lettner@apple.com</email>
</author>
<published>2022-03-24T00:37:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=64902d335c2126e24a9d84b7410924148959e4a9'/>
<id>64902d335c2126e24a9d84b7410924148959e4a9</id>
<content type='text'>
For MachO, lower `@llvm.global_dtors` into `@llvm_global_ctors` with
`__cxa_atexit` calls to avoid emitting the deprecated `__mod_term_func`.

Reuse the existing `WebAssemblyLowerGlobalDtors.cpp` to accomplish this.

Enable fallback to the old behavior via Clang driver flag
(`-fregister-global-dtors-with-atexit`) or llc / code generation flag
(`-lower-global-dtors-via-cxa-atexit`).  This escape hatch will be
removed in the future.

Differential Revision: https://reviews.llvm.org/D121736
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
For MachO, lower `@llvm.global_dtors` into `@llvm_global_ctors` with
`__cxa_atexit` calls to avoid emitting the deprecated `__mod_term_func`.

Reuse the existing `WebAssemblyLowerGlobalDtors.cpp` to accomplish this.

Enable fallback to the old behavior via Clang driver flag
(`-fregister-global-dtors-with-atexit`) or llc / code generation flag
(`-lower-global-dtors-via-cxa-atexit`).  This escape hatch will be
removed in the future.

Differential Revision: https://reviews.llvm.org/D121736
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "Lower `@llvm.global_dtors` using `__cxa_atexit` on MachO"</title>
<updated>2022-03-23T23:11:54+00:00</updated>
<author>
<name>Zequan Wu</name>
<email>zequanwu@google.com</email>
</author>
<published>2022-03-23T22:40:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=581dc3c729c619fe636325a79279fabb2acdc1ce'/>
<id>581dc3c729c619fe636325a79279fabb2acdc1ce</id>
<content type='text'>
This reverts commit 22570bac694396514fff18dec926558951643fa6.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit 22570bac694396514fff18dec926558951643fa6.
</pre>
</div>
</content>
</entry>
<entry>
<title>Lower `@llvm.global_dtors` using `__cxa_atexit` on MachO</title>
<updated>2022-03-17T17:47:13+00:00</updated>
<author>
<name>Julian Lettner</name>
<email>julian.lettner@apple.com</email>
</author>
<published>2022-03-09T20:33:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=22570bac694396514fff18dec926558951643fa6'/>
<id>22570bac694396514fff18dec926558951643fa6</id>
<content type='text'>
For MachO, lower `@llvm.global_dtors` into `@llvm_global_ctors` with
`__cxa_atexit` calls to avoid emitting the deprecated `__mod_term_func`.

Reuse the existing `WebAssemblyLowerGlobalDtors.cpp` to accomplish this.

Enable fallback to the old behavior via Clang driver flag
(`-fregister-global-dtors-with-atexit`) or llc / code generation flag
(`-lower-global-dtors-via-cxa-atexit`).  This escape hatch will be
removed in the future.

Differential Revision: https://reviews.llvm.org/D121736
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
For MachO, lower `@llvm.global_dtors` into `@llvm_global_ctors` with
`__cxa_atexit` calls to avoid emitting the deprecated `__mod_term_func`.

Reuse the existing `WebAssemblyLowerGlobalDtors.cpp` to accomplish this.

Enable fallback to the old behavior via Clang driver flag
(`-fregister-global-dtors-with-atexit`) or llc / code generation flag
(`-lower-global-dtors-via-cxa-atexit`).  This escape hatch will be
removed in the future.

Differential Revision: https://reviews.llvm.org/D121736
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert rG9c542a5a4e1ba36c24e48185712779df52b7f7a6 "Lower `@llvm.global_dtors` using `__cxa_atexit` on MachO"</title>
<updated>2022-03-15T13:01:35+00:00</updated>
<author>
<name>Simon Pilgrim</name>
<email>llvm-dev@redking.me.uk</email>
</author>
<published>2022-03-15T13:01:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=7262eacd41997d7ca262d83367e28998662c1b21'/>
<id>7262eacd41997d7ca262d83367e28998662c1b21</id>
<content type='text'>
Mane of the build bots are complaining: Unknown command line argument '-lower-global-dtors'
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Mane of the build bots are complaining: Unknown command line argument '-lower-global-dtors'
</pre>
</div>
</content>
</entry>
<entry>
<title>Lower `@llvm.global_dtors` using `__cxa_atexit` on MachO</title>
<updated>2022-03-15T00:51:18+00:00</updated>
<author>
<name>Julian Lettner</name>
<email>julian.lettner@apple.com</email>
</author>
<published>2022-03-09T20:33:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=9c542a5a4e1ba36c24e48185712779df52b7f7a6'/>
<id>9c542a5a4e1ba36c24e48185712779df52b7f7a6</id>
<content type='text'>
For MachO, lower `@llvm.global_dtors` into `@llvm_global_ctors` with
`__cxa_atexit` calls to avoid emitting the deprecated `__mod_term_func`.

Reuse the existing `WebAssemblyLowerGlobalDtors.cpp` to accomplish this.

Enable fallback to the old behavior via Clang driver flag
(`-fregister-global-dtors-with-atexit`) or llc / code generation flag
(`-lower-global-dtors-via-cxa-atexit`).  This escape hatch will be
removed in the future.

Differential Revision: https://reviews.llvm.org/D121327
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
For MachO, lower `@llvm.global_dtors` into `@llvm_global_ctors` with
`__cxa_atexit` calls to avoid emitting the deprecated `__mod_term_func`.

Reuse the existing `WebAssemblyLowerGlobalDtors.cpp` to accomplish this.

Enable fallback to the old behavior via Clang driver flag
(`-fregister-global-dtors-with-atexit`) or llc / code generation flag
(`-lower-global-dtors-via-cxa-atexit`).  This escape hatch will be
removed in the future.

Differential Revision: https://reviews.llvm.org/D121327
</pre>
</div>
</content>
</entry>
<entry>
<title>[NFC] Add missing &lt;map&gt; includes</title>
<updated>2022-01-19T11:29:03+00:00</updated>
<author>
<name>Nikita Popov</name>
<email>npopov@redhat.com</email>
</author>
<published>2022-01-19T11:19:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=d8bff13a8a681ea8af34556f5b00409389dc64d5'/>
<id>d8bff13a8a681ea8af34556f5b00409389dc64d5</id>
<content type='text'>
These were relying on a transitive include.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
These were relying on a transitive include.
</pre>
</div>
</content>
</entry>
<entry>
<title>[NFC][llvm] Inclusive language: reword and remove uses of sanity in llvm/lib/Target</title>
<updated>2021-11-18T02:59:00+00:00</updated>
<author>
<name>Zarko Todorovski</name>
<email>zarko@ca.ibm.com</email>
</author>
<published>2021-11-18T02:59:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=5b8bbbecfae3bc1cb98726bd0b1ea829adb726be'/>
<id>5b8bbbecfae3bc1cb98726bd0b1ea829adb726be</id>
<content type='text'>
Reworded removed code comments that contain `sanity check` and `sanity
test`.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reworded removed code comments that contain `sanity check` and `sanity
test`.
</pre>
</div>
</content>
</entry>
<entry>
<title>[WebAssembly] Fix the order of destructors in the LowerGlobalDtors pass.</title>
<updated>2020-03-26T23:19:02+00:00</updated>
<author>
<name>Dan Gohman</name>
<email>sunfish@mozilla.com</email>
</author>
<published>2019-11-24T15:27:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=d865437d9c82f814dd3b0d0e60042e2c176e201f'/>
<id>d865437d9c82f814dd3b0d0e60042e2c176e201f</id>
<content type='text'>
Fix the LowerGlobalDtors pass to run destructors in the same order as the
regular LLVM destructor lowering -- in reverse order. Adjacent
destructors with the same associated object are grouped, but destructors
are not reordered based on associated objects.

Differential Revision: https://reviews.llvm.org/D70685
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix the LowerGlobalDtors pass to run destructors in the same order as the
regular LLVM destructor lowering -- in reverse order. Adjacent
destructors with the same associated object are grouped, but destructors
are not reordered based on associated objects.

Differential Revision: https://reviews.llvm.org/D70685
</pre>
</div>
</content>
</entry>
<entry>
<title>IR. Change strip* family of functions to not look through aliases.</title>
<updated>2019-08-22T19:56:14+00:00</updated>
<author>
<name>Peter Collingbourne</name>
<email>peter@pcc.me.uk</email>
</author>
<published>2019-08-22T19:56:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=2452d7030b84d358165f5f76c9270937b4ea1a91'/>
<id>2452d7030b84d358165f5f76c9270937b4ea1a91</id>
<content type='text'>
I noticed another instance of the issue where references to aliases were
being replaced with aliasees, this time in InstCombine. In the instance that
I saw it turned out to be only a QoI issue (a symbol ended up being missing
from the symbol table due to the last reference to the alias being removed,
preventing HWASAN from symbolizing a global reference), but it could easily
have manifested as incorrect behaviour.

Since this is the third such issue encountered (previously: D65118, D65314)
it seems to be time to address this common error/QoI issue once and for all
and make the strip* family of functions not look through aliases.

Includes a test for the specific issue that I saw, but no doubt there are
other similar bugs fixed here.

As with D65118 this has been tested to make sure that the optimization isn't
load bearing. I built Clang, Chromium for Linux, Android and Windows as well
as the test-suite and there were no size regressions.

Differential Revision: https://reviews.llvm.org/D66606

llvm-svn: 369697
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
I noticed another instance of the issue where references to aliases were
being replaced with aliasees, this time in InstCombine. In the instance that
I saw it turned out to be only a QoI issue (a symbol ended up being missing
from the symbol table due to the last reference to the alias being removed,
preventing HWASAN from symbolizing a global reference), but it could easily
have manifested as incorrect behaviour.

Since this is the third such issue encountered (previously: D65118, D65314)
it seems to be time to address this common error/QoI issue once and for all
and make the strip* family of functions not look through aliases.

Includes a test for the specific issue that I saw, but no doubt there are
other similar bugs fixed here.

As with D65118 this has been tested to make sure that the optimization isn't
load bearing. I built Clang, Chromium for Linux, Android and Windows as well
as the test-suite and there were no size regressions.

Differential Revision: https://reviews.llvm.org/D66606

llvm-svn: 369697
</pre>
</div>
</content>
</entry>
<entry>
<title>[WebAssembly] Fix crash when @llvm.global_dtors is external</title>
<updated>2019-03-01T00:12:13+00:00</updated>
<author>
<name>Thomas Lively</name>
<email>tlively@google.com</email>
</author>
<published>2019-03-01T00:12:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=ae79f42a2fdd1321430a9266476b66eb932da0c9'/>
<id>ae79f42a2fdd1321430a9266476b66eb932da0c9</id>
<content type='text'>
Reviewers: aheejin

Subscribers: dschuff, sbc100, jgravelle-google, hiraditya, sunfish, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D58799

llvm-svn: 355157
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reviewers: aheejin

Subscribers: dschuff, sbc100, jgravelle-google, hiraditya, sunfish, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D58799

llvm-svn: 355157
</pre>
</div>
</content>
</entry>
</feed>
