[PATCH] D90529: Allow nonnull/align attribute to accept poison

Tyker via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 9 01:41:48 PST 2021


Tyker added a comment.

In D90529#2612794 <https://reviews.llvm.org/D90529#2612794>, @aqjune wrote:

> A fix in AssumeBundleBuilder to make it comply LangRef: D98228 <https://reviews.llvm.org/D98228>
>
> BTW, I found that "align" can take two operands: `"align"(i8* ptr, i64 a, i64 b)` What is the meaning of the second index (`b`)?

the meaning of the second index is the offset of the alignment. so `"align"(i8* ptr, i64 16, i64 12)` ptr is aligned on 4 but ptr + 4 is aligned on 16.
I introduced this to support __builtin_assume_aligned.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D90529/new/

https://reviews.llvm.org/D90529



More information about the llvm-commits mailing list