<feed xmlns='http://www.w3.org/2005/Atom'>
<title>llvm-project.git/llvm/lib/Transforms/Instrumentation/BoundsChecking.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>[IRBuilder] Add new overload for CreateIntrinsic (#131942)</title>
<updated>2025-03-31T15:10:34+00:00</updated>
<author>
<name>Rahul Joshi</name>
<email>rjoshi@nvidia.com</email>
</author>
<published>2025-03-31T15:10:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=74b7abf15452574808834c0a08dd2af6bada2648'/>
<id>74b7abf15452574808834c0a08dd2af6bada2648</id>
<content type='text'>
Add a new `CreateIntrinsic` overload with no `Types`, useful for
creating calls to non-overloaded intrinsics that don't need additional
mangling.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add a new `CreateIntrinsic` overload with no `Types`, useful for
creating calls to non-overloaded intrinsics that don't need additional
mangling.</pre>
</div>
</content>
</entry>
<entry>
<title>[BoundsChecking] Update ubsantrap to use GuardKind (#124613)</title>
<updated>2025-01-28T16:52:31+00:00</updated>
<author>
<name>Thurston Dang</name>
<email>thurston@google.com</email>
</author>
<published>2025-01-28T16:52:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=ef92e6b99fc2a881f70c4e21bbdd6ae7a0c446c8'/>
<id>ef92e6b99fc2a881f70c4e21bbdd6ae7a0c446c8</id>
<content type='text'>
This change makes it consistent with other uses of ubsantrap.

This also updates the tests. Notably, BoundsChecking/runtimes.ll had guard=3 which passed only because the method of calculating the parameter (`IRB.GetInsertBlock()-&gt;getParent()-&gt;size()`) happened to give the same answer.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This change makes it consistent with other uses of ubsantrap.

This also updates the tests. Notably, BoundsChecking/runtimes.ll had guard=3 which passed only because the method of calculating the parameter (`IRB.GetInsertBlock()-&gt;getParent()-&gt;size()`) happened to give the same answer.</pre>
</div>
</content>
</entry>
<entry>
<title>[BoundsChecking]  Add guard= pass parameter (#122575)</title>
<updated>2025-01-13T17:36:41+00:00</updated>
<author>
<name>Vitaly Buka</name>
<email>vitalybuka@google.com</email>
</author>
<published>2025-01-13T17:36:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=1a7d46fac8aa5ff4a96db01937cdb3b106253ac6'/>
<id>1a7d46fac8aa5ff4a96db01937cdb3b106253ac6</id>
<content type='text'>
And use that as an argument for
allow_ubsan_check when needed.

Other ubsan checks use SanitizerKind,
but those are known to the clang only.

So make it a parameter in LLVM.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
And use that as an argument for
allow_ubsan_check when needed.

Other ubsan checks use SanitizerKind,
but those are known to the clang only.

So make it a parameter in LLVM.</pre>
</div>
</content>
</entry>
<entry>
<title>[NFCI][BoundsChecking] Apply nosanitize on local-bounds instrumentation (#122416)</title>
<updated>2025-01-11T02:11:19+00:00</updated>
<author>
<name>Vitaly Buka</name>
<email>vitalybuka@google.com</email>
</author>
<published>2025-01-11T02:11:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=8af4d206e0f979f68925a08f9dffd60a98ce97e2'/>
<id>8af4d206e0f979f68925a08f9dffd60a98ce97e2</id>
<content type='text'>
Should be NFCI as we run sanitizer, like msan, before local-bounds.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Should be NFCI as we run sanitizer, like msan, before local-bounds.</pre>
</div>
</content>
</entry>
<entry>
<title>[nfc][BoundsChecking] Rename BoundsCheckingOptions into Options (#122359)</title>
<updated>2025-01-10T04:38:13+00:00</updated>
<author>
<name>Vitaly Buka</name>
<email>vitalybuka@google.com</email>
</author>
<published>2025-01-10T04:38:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=4c8fdc29549f9c7c3c710e3ada2cb00a70af609e'/>
<id>4c8fdc29549f9c7c3c710e3ada2cb00a70af609e</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[nfc][BoundsChecking] Refactor BoundsCheckingOptions (#122346)</title>
<updated>2025-01-10T04:19:01+00:00</updated>
<author>
<name>Vitaly Buka</name>
<email>vitalybuka@google.com</email>
</author>
<published>2025-01-10T04:19:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=9c2de994a18b8eb50634e620af762ed28ec5dcc2'/>
<id>9c2de994a18b8eb50634e620af762ed28ec5dcc2</id>
<content type='text'>
Remove ReportingMode and ReportingOpts.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Remove ReportingMode and ReportingOpts.</pre>
</div>
</content>
</entry>
<entry>
<title>Remove -bounds-checking-unique-traps (replace with -fno-sanitize-merge=local-bounds) (#120682)</title>
<updated>2024-12-20T18:07:44+00:00</updated>
<author>
<name>Thurston Dang</name>
<email>thurston@google.com</email>
</author>
<published>2024-12-20T18:07:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=5bb650345d83669434713146aaa431c1f7ad43d6'/>
<id>5bb650345d83669434713146aaa431c1f7ad43d6</id>
<content type='text'>
#120613 removed -ubsan-unique-traps and replaced it with
-fno-sanitize-merge (introduced in #120511), which allows fine-grained
control of which UBSan checks to prevent merging. This analogous patch
removes -bound-checking-unique-traps, and allows it to be controlled via
-fno-sanitize-merge=local-bounds.

Most of this patch is simply plumbing through the compiler flags into
the bounds checking pass.

Note: this patch subtly changes -fsanitize-merge (the default) to also
include -fsanitize-merge=local-bounds. This is different from the
previous behavior, where -fsanitize-merge (or the old
-ubsan-unique-traps) did not affect local-bounds (requiring the separate
-bounds-checking-unique-traps). However, we argue that the new behavior
is more intuitive.

Removing -bounds-checking-unique-traps and merging its functionality
into -fsanitize-merge breaks backwards compatibility; we hope that this
is acceptable since '-mllvm -bounds-checking-unique-traps' was an
experimental flag.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
#120613 removed -ubsan-unique-traps and replaced it with
-fno-sanitize-merge (introduced in #120511), which allows fine-grained
control of which UBSan checks to prevent merging. This analogous patch
removes -bound-checking-unique-traps, and allows it to be controlled via
-fno-sanitize-merge=local-bounds.

Most of this patch is simply plumbing through the compiler flags into
the bounds checking pass.

Note: this patch subtly changes -fsanitize-merge (the default) to also
include -fsanitize-merge=local-bounds. This is different from the
previous behavior, where -fsanitize-merge (or the old
-ubsan-unique-traps) did not affect local-bounds (requiring the separate
-bounds-checking-unique-traps). However, we argue that the new behavior
is more intuitive.

Removing -bounds-checking-unique-traps and merging its functionality
into -fsanitize-merge breaks backwards compatibility; we hope that this
is acceptable since '-mllvm -bounds-checking-unique-traps' was an
experimental flag.</pre>
</div>
</content>
</entry>
<entry>
<title>[BoundsChecking] Add support for runtime handlers (#120513)</title>
<updated>2024-12-20T00:24:02+00:00</updated>
<author>
<name>Vitaly Buka</name>
<email>vitalybuka@google.com</email>
</author>
<published>2024-12-20T00:24:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=3d297514e2c3f10b3fd8fcf0e5b1c745dfe644cf'/>
<id>3d297514e2c3f10b3fd8fcf0e5b1c745dfe644cf</id>
<content type='text'>
This is a step forward to have reporting consistent with other UBSAN
checks.

Runtime and clang parts are here #120515.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is a step forward to have reporting consistent with other UBSAN
checks.

Runtime and clang parts are here #120515.</pre>
</div>
</content>
</entry>
<entry>
<title>[BoundsSan] Update BoundsChecking.cpp to use no-merge attribute where applicable (#120620)</title>
<updated>2024-12-19T21:31:29+00:00</updated>
<author>
<name>Thurston Dang</name>
<email>thurston@google.com</email>
</author>
<published>2024-12-19T21:31:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=d33a2c58112bdd74225b0ff4f07acc49bed7e6ea'/>
<id>d33a2c58112bdd74225b0ff4f07acc49bed7e6ea</id>
<content type='text'>
https://github.com/llvm/llvm-project/pull/65972 introduced
-ubsan-unique-traps and -bounds-checking-unique-traps, which attach the
function size to the ubsantrap intrinsic.

https://github.com/llvm/llvm-project/pull/117651 changed
ubsan-unique-traps to use nomerge instead of the function size, but did
not update -bounds-checking-unique-traps. This patch adds nomerge to
bounds-checking-unique-traps.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/llvm/llvm-project/pull/65972 introduced
-ubsan-unique-traps and -bounds-checking-unique-traps, which attach the
function size to the ubsantrap intrinsic.

https://github.com/llvm/llvm-project/pull/117651 changed
ubsan-unique-traps to use nomerge instead of the function size, but did
not update -bounds-checking-unique-traps. This patch adds nomerge to
bounds-checking-unique-traps.</pre>
</div>
</content>
</entry>
<entry>
<title>[BoundsChecking] Add parameters to pass (#119894)</title>
<updated>2024-12-18T06:07:14+00:00</updated>
<author>
<name>Vitaly Buka</name>
<email>vitalybuka@google.com</email>
</author>
<published>2024-12-18T06:07:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=55e87a79b9c3e0cb80503a4b6eec0fab404b2966'/>
<id>55e87a79b9c3e0cb80503a4b6eec0fab404b2966</id>
<content type='text'>
This check is a part of UBSAN, but does not support
verbose output like other UBSAN checks.

This is a step to fix that.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This check is a part of UBSAN, but does not support
verbose output like other UBSAN checks.

This is a step to fix that.</pre>
</div>
</content>
</entry>
</feed>
