aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
diff options
context:
space:
mode:
authortyb0807 <sontuan.vu119@gmail.com>2025-07-17 19:38:21 +0200
committerGitHub <noreply@github.com>2025-07-17 13:38:21 -0400
commitaa3978573e15205b43c6a7e3b4a6f940ccded7a2 (patch)
treee31c2e4e01c7461c74f9776b67cf4aeeb5c57cc2 /llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
parent163da8796bed51f82d7c07d0ac6db6de7879bd21 (diff)
downloadllvm-aa3978573e15205b43c6a7e3b4a6f940ccded7a2.zip
llvm-aa3978573e15205b43c6a7e3b4a6f940ccded7a2.tar.gz
llvm-aa3978573e15205b43c6a7e3b4a6f940ccded7a2.tar.bz2
[mlir][vector][memref] Add `alignment` attribute to memory access ops (#144344)
Alignment information is important to allow LLVM backends such as AMDGPU to select wide memory accesses (e.g., dwordx4 or b128). Since this info is not always inferable, it's better to inform LLVM backends explicitly about it. Furthermore, alignment is not necessarily a property of the element type, but of each individual memory access op (we can have overaligned and underaligned accesses compared to the natural/preferred alignment of the element type). This patch introduces `alignment` attribute to memref/vector.load/store ops. Follow-up PRs will 1. Propagate the attribute to LLVM/SPIR-V. 2. Introduce `alignment` attribute to other vector memory access ops: vector.gather + vector.scatter vector.transfer_read + vector.transfer_write vector.compressstore + vector.expandload vector.maskedload + vector.maskedstore 3. Replace `--convert-vector-to-llvm='use-vector-alignment=1` with a simple pass to populate alignment attributes based on the vector types.
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp')
0 files changed, 0 insertions, 0 deletions