diff options
| author | Nikita Popov <npopov@redhat.com> | 2025-10-20 10:50:09 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-20 08:50:09 +0000 |
| commit | 573ca36753e9141f25b941ea9a84d0599e3baae7 (patch) | |
| tree | 95123db2f43d751351da7d8f87b9cb0074db2829 /clang/unittests/Format/FormatTestJava.cpp | |
| parent | 8774128fcbff455baa2ac4b49cc7877f78ec8ff8 (diff) | |
| download | llvm-573ca36753e9141f25b941ea9a84d0599e3baae7.zip llvm-573ca36753e9141f25b941ea9a84d0599e3baae7.tar.gz llvm-573ca36753e9141f25b941ea9a84d0599e3baae7.tar.bz2 | |
[IR] Replace alignment argument with attribute on masked intrinsics (#163802)
The `masked.load`, `masked.store`, `masked.gather` and `masked.scatter`
intrinsics currently accept a separate alignment immarg. Replace this
with an `align` attribute on the pointer / vector of pointers argument.
This is the standard representation for alignment information on
intrinsics, and is already used by all other memory intrinsics. This
means the signatures now match llvm.expandload, llvm.vp.load, etc.
(Things like llvm.memcpy used to have a separate alignment argument as
well, but were already migrated a long time ago.)
It's worth noting that the masked.gather and masked.scatter intrinsics
previously accepted a zero alignment to indicate the ABI type alignment
of the element type. This special case is gone now: If the align
attribute is omitted, the implied alignment is 1, as usual. If ABI
alignment is desired, it needs to be explicitly emitted (which the
IRBuilder API already requires anyway).
Diffstat (limited to 'clang/unittests/Format/FormatTestJava.cpp')
0 files changed, 0 insertions, 0 deletions
