<feed xmlns='http://www.w3.org/2005/Atom'>
<title>llvm-project.git/llvm/lib/Object/OffloadBundle.cpp, branch users/ojhunt/ptrauth-additions</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>Fix compress/decompress in LLVM Offloading API (#150064)</title>
<updated>2025-10-06T20:34:02+00:00</updated>
<author>
<name>David Salinas</name>
<email>dsalinas@amd.com</email>
</author>
<published>2025-10-06T20:34:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=efda523188c45ecedad408cf48267fef97dfb2bc'/>
<id>efda523188c45ecedad408cf48267fef97dfb2bc</id>
<content type='text'>
Co-authored-by: dsalinas_amdeng &lt;david.salinas@amd.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Co-authored-by: dsalinas_amdeng &lt;david.salinas@amd.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "Revert "Fix memory leak in Offloading API" (#161465)" (#161573)</title>
<updated>2025-10-02T00:47:47+00:00</updated>
<author>
<name>David Salinas</name>
<email>dsalinas@amd.com</email>
</author>
<published>2025-10-02T00:47:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=bdea159093ae2e4482dedb32bca5e03a212fc44f'/>
<id>bdea159093ae2e4482dedb32bca5e03a212fc44f</id>
<content type='text'>
This reverts commit d392563433316e310edacf35a40fb2f9aa477acc.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit d392563433316e310edacf35a40fb2f9aa477acc.</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "Fix memory leak in Offloading API" (#161465)</title>
<updated>2025-10-01T01:16:08+00:00</updated>
<author>
<name>ronlieb</name>
<email>ron.lieberman@amd.com</email>
</author>
<published>2025-10-01T01:16:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=d392563433316e310edacf35a40fb2f9aa477acc'/>
<id>d392563433316e310edacf35a40fb2f9aa477acc</id>
<content type='text'>
Reverts llvm/llvm-project#161430</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reverts llvm/llvm-project#161430</pre>
</div>
</content>
</entry>
<entry>
<title>Fix memory leak in Offloading API (#161430)</title>
<updated>2025-09-30T22:23:11+00:00</updated>
<author>
<name>David Salinas</name>
<email>dsalinas@amd.com</email>
</author>
<published>2025-09-30T22:23:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=b80b48d3e89eca606fde4443b603ba8fdd8f67c8'/>
<id>b80b48d3e89eca606fde4443b603ba8fdd8f67c8</id>
<content type='text'>
Fix or the failing Sanitizer buildbots from PR:
https://github.com/llvm/llvm-project/pull/143342</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix or the failing Sanitizer buildbots from PR:
https://github.com/llvm/llvm-project/pull/143342</pre>
</div>
</content>
</entry>
<entry>
<title>Add --offoading option to llvm-readobj (#143342)</title>
<updated>2025-09-29T21:16:29+00:00</updated>
<author>
<name>David Salinas</name>
<email>dsalinas@amd.com</email>
</author>
<published>2025-09-29T21:16:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=07f8f088b4b3d1c58e73f13a288ff2c088d15ad6'/>
<id>07f8f088b4b3d1c58e73f13a288ff2c088d15ad6</id>
<content type='text'>
Utilize new extensions to LLVM Offloading API to
handle offloading fatbin Bundles.

The tool will output a list of available offload bundles
using URI syntax.

---------

Co-authored-by: dsalinas_amdeng &lt;david.salinas@amd.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Utilize new extensions to LLVM Offloading API to
handle offloading fatbin Bundles.

The tool will output a list of available offload bundles
using URI syntax.

---------

Co-authored-by: dsalinas_amdeng &lt;david.salinas@amd.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>[llvm] Use a new constructor of ArrayRef (NFC) (#146008)</title>
<updated>2025-06-27T06:38:12+00:00</updated>
<author>
<name>Kazu Hirata</name>
<email>kazu@google.com</email>
</author>
<published>2025-06-27T06:38:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=26ec66dc1825824790912aeda85ac998a8374cff'/>
<id>26ec66dc1825824790912aeda85ac998a8374cff</id>
<content type='text'>
ArrayRef now has a new constructor that takes a parameter whose type
has data() and size().  This patch migrates:

  ArrayRef&lt;T&gt;(X.data(), X.size()

to:

  ArrayRef&lt;T&gt;(X)</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
ArrayRef now has a new constructor that takes a parameter whose type
has data() and size().  This patch migrates:

  ArrayRef&lt;T&gt;(X.data(), X.size()

to:

  ArrayRef&lt;T&gt;(X)</pre>
</div>
</content>
</entry>
<entry>
<title>[llvm] Remove unused includes (NFC) (#142733)</title>
<updated>2025-06-04T19:30:52+00:00</updated>
<author>
<name>Kazu Hirata</name>
<email>kazu@google.com</email>
</author>
<published>2025-06-04T19:30:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=228f66807d0be1d7873e075fc81baf41001950b5'/>
<id>228f66807d0be1d7873e075fc81baf41001950b5</id>
<content type='text'>
These are identified by misc-include-cleaner.  I've filtered out those
that break builds.  Also, I'm staying away from llvm-config.h,
config.h, and Compiler.h, which likely cause platform- or
compiler-specific build failures.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
These are identified by misc-include-cleaner.  I've filtered out those
that break builds.  Also, I'm staying away from llvm-config.h,
config.h, and Compiler.h, which likely cause platform- or
compiler-specific build failures.</pre>
</div>
</content>
</entry>
<entry>
<title>[llvm][llvm-objdump] Fix fatbin handling on 32-bit systems (#141620)</title>
<updated>2025-05-28T08:05:14+00:00</updated>
<author>
<name>David Spickett</name>
<email>david.spickett@linaro.org</email>
</author>
<published>2025-05-28T08:05:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=f8ca9e59cb438bd35b29a6d7cf6d72f50673aec9'/>
<id>f8ca9e59cb438bd35b29a6d7cf6d72f50673aec9</id>
<content type='text'>
Which fixes a test failure seen on the bots, introduced by
https://github.com/llvm/llvm-project/pull/140286.
```
[ RUN      ] OffloadingBundleTest.checkExtractOffloadBundleFatBinary
ObjectTests: ../llvm/llvm/include/llvm/ADT/StringRef.h:618: StringRef llvm::StringRef::drop_front(size_t) const: Assertion `size() &gt;= N &amp;&amp; "Dropping more elements than exist"' failed.
0 0x0a24a990 llvm::sys::PrintStackTrace(llvm::raw_ostream&amp;, int) (/home/tcwg-buildbot/worker/clang-armv8-quick/stage1/unittests/Object/./ObjectTests+0x31a990)
1 0x0a248364 llvm::sys::RunSignalHandlers() (/home/tcwg-buildbot/worker/clang-armv8-quick/stage1/unittests/Object/./ObjectTests+0x318364)
2 0x0a24b410 SignalHandler(int, siginfo_t*, void*) Signals.cpp:0:0
3 0xf46ed6f0 __default_rt_sa_restorer ./signal/../sysdeps/unix/sysv/linux/arm/sigrestorer.S:80:0
4 0xf46ddb06 ./csu/../sysdeps/unix/sysv/linux/arm/libc-do-syscall.S:47:0
5 0xf471d292 __pthread_kill_implementation ./nptl/pthread_kill.c:44:76
6 0xf46ec840 gsignal ./signal/../sysdeps/posix/raise.c:27:6
```
Also reported on 32-bit x86.

I think the cause is the code was casting the result of StringRef.find
into an int64_t. The failure value of find is StringRef::npos, which is
defined as:
static constexpr size_t npos = ~size_t(0);

* size_t(0) is 32 bits of 0s
* the inverse of that is 32 bits of 1s
* Cast to int64_t needs to widen this, and it will preserve the original
value in doing so, which is 0xffffffff.
* The result is 0x00000000ffffffff, which is &gt;= 0, so we keep searching
and try to go off the end of the file.

Or put another way, this equivalent function returns true when compiled
for a 32-bit system:
```
bool fn() {
    size_t foo = ~size_t(0);
    int64_t foo64 = (int64_t)foo;
    return foo64 &gt;= 0;
}
```

Using size_t throughout fixes the problem. Also I don't see a reason it
needs to be a signed number, given that it always searches forward from
the current offset.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Which fixes a test failure seen on the bots, introduced by
https://github.com/llvm/llvm-project/pull/140286.
```
[ RUN      ] OffloadingBundleTest.checkExtractOffloadBundleFatBinary
ObjectTests: ../llvm/llvm/include/llvm/ADT/StringRef.h:618: StringRef llvm::StringRef::drop_front(size_t) const: Assertion `size() &gt;= N &amp;&amp; "Dropping more elements than exist"' failed.
0 0x0a24a990 llvm::sys::PrintStackTrace(llvm::raw_ostream&amp;, int) (/home/tcwg-buildbot/worker/clang-armv8-quick/stage1/unittests/Object/./ObjectTests+0x31a990)
1 0x0a248364 llvm::sys::RunSignalHandlers() (/home/tcwg-buildbot/worker/clang-armv8-quick/stage1/unittests/Object/./ObjectTests+0x318364)
2 0x0a24b410 SignalHandler(int, siginfo_t*, void*) Signals.cpp:0:0
3 0xf46ed6f0 __default_rt_sa_restorer ./signal/../sysdeps/unix/sysv/linux/arm/sigrestorer.S:80:0
4 0xf46ddb06 ./csu/../sysdeps/unix/sysv/linux/arm/libc-do-syscall.S:47:0
5 0xf471d292 __pthread_kill_implementation ./nptl/pthread_kill.c:44:76
6 0xf46ec840 gsignal ./signal/../sysdeps/posix/raise.c:27:6
```
Also reported on 32-bit x86.

I think the cause is the code was casting the result of StringRef.find
into an int64_t. The failure value of find is StringRef::npos, which is
defined as:
static constexpr size_t npos = ~size_t(0);

* size_t(0) is 32 bits of 0s
* the inverse of that is 32 bits of 1s
* Cast to int64_t needs to widen this, and it will preserve the original
value in doing so, which is 0xffffffff.
* The result is 0x00000000ffffffff, which is &gt;= 0, so we keep searching
and try to go off the end of the file.

Or put another way, this equivalent function returns true when compiled
for a 32-bit system:
```
bool fn() {
    size_t foo = ~size_t(0);
    int64_t foo64 = (int64_t)foo;
    return foo64 &gt;= 0;
}
```

Using size_t throughout fixes the problem. Also I don't see a reason it
needs to be a signed number, given that it always searches forward from
the current offset.</pre>
</div>
</content>
</entry>
<entry>
<title>Extend llvm objdump fatbin (#140286)</title>
<updated>2025-05-23T15:55:16+00:00</updated>
<author>
<name>David Salinas</name>
<email>dsalinas@amd.com</email>
</author>
<published>2025-05-23T15:55:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=51a03ed27282166d418399f2ade9814ea5be9944'/>
<id>51a03ed27282166d418399f2ade9814ea5be9944</id>
<content type='text'>
Utilize the new extensions to the LLVM Offloading API to extend to
llvm-objdump to handle dumping fatbin offload bundles generated by HIP.
This extension to llvm-objdump adds the option --offload-fatbin.
Specifying this option will take the input object/executable and extract
all offload fatbin bundle entries into distinct code object files with
names reflecting the source file name combined with the Bundle Entry ID.
Users can also use the --arch-name option to filter offload fatbin
bundle entries by their target triple.

---------

Co-authored-by: dsalinas &lt;dsalinas@MKM-L1-DSALINAS.amd.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Utilize the new extensions to the LLVM Offloading API to extend to
llvm-objdump to handle dumping fatbin offload bundles generated by HIP.
This extension to llvm-objdump adds the option --offload-fatbin.
Specifying this option will take the input object/executable and extract
all offload fatbin bundle entries into distinct code object files with
names reflecting the source file name combined with the Bundle Entry ID.
Users can also use the --arch-name option to filter offload fatbin
bundle entries by their target triple.

---------

Co-authored-by: dsalinas &lt;dsalinas@MKM-L1-DSALINAS.amd.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "Reapply: [llvm-objdump] Add support for HIP offload bundles (#140128)"</title>
<updated>2025-05-16T14:23:21+00:00</updated>
<author>
<name>Kazu Hirata</name>
<email>kazu@google.com</email>
</author>
<published>2025-05-16T14:23:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=9c3ab1cfc8295e64d7bfb3bd5bec36859069a962'/>
<id>9c3ab1cfc8295e64d7bfb3bd5bec36859069a962</id>
<content type='text'>
This reverts commit 910220b84fa18ce2cbb2e21dd53b9f3d0ae582a7.

Multiple buildbot failures have been reported:
https://github.com/llvm/llvm-project/pull/140128
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit 910220b84fa18ce2cbb2e21dd53b9f3d0ae582a7.

Multiple buildbot failures have been reported:
https://github.com/llvm/llvm-project/pull/140128
</pre>
</div>
</content>
</entry>
</feed>
