diff options
author | Andres-Salamanca <andrealebarbaritos@gmail.com> | 2025-07-18 16:13:34 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-18 16:13:34 -0500 |
commit | b02787d33f24d83f1d5814c578b7b0fce7156382 (patch) | |
tree | 814531fb048888a642e1157c721a335d1509e9ad /llvm/lib/Support/ProgramStack.cpp | |
parent | d63ab5467dcae0492e2f4def336ddbb73ce10dc5 (diff) | |
download | llvm-b02787d33f24d83f1d5814c578b7b0fce7156382.zip llvm-b02787d33f24d83f1d5814c578b7b0fce7156382.tar.gz llvm-b02787d33f24d83f1d5814c578b7b0fce7156382.tar.bz2 |
[CIR] Fix alignment when lowering set/get bitfield operations (#148999)
This PR fixes incorrect alignment when lowering `set` and `getBitField`
operations to LLVM IR. The issue occurred because during lowering, the
function was being called with an alignment of 0, which caused it to
default to the alignment of the packed member. For example, if the
bitfield was packed inside a `u64i`, it would use an alignment of 8.
With this change, the generated code now matches what the classic
codegen produces.
In the assembly format, I changed to be similar to how it's done in
loadOp. If there's a better approach, please feel free to point it out.
Diffstat (limited to 'llvm/lib/Support/ProgramStack.cpp')
0 files changed, 0 insertions, 0 deletions