diff options
author | Matthias Gehre <matthias.gehre@amd.com> | 2024-03-22 15:39:52 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-22 15:39:52 +0100 |
commit | 71db97152173a524a3e16e02b7fdc50f405c8695 (patch) | |
tree | b3899b3d45a5668646da844e0c5b8544868ffa8a /llvm/lib/Object/ELF.cpp | |
parent | 8612fa0d84c730a753d04de012a8372ba5a10677 (diff) | |
download | llvm-71db97152173a524a3e16e02b7fdc50f405c8695.zip llvm-71db97152173a524a3e16e02b7fdc50f405c8695.tar.gz llvm-71db97152173a524a3e16e02b7fdc50f405c8695.tar.bz2 |
[mlir][emitc] Arith to EmitC: Handle addi, subi and muli (#86120)
Important to consider that `arith` has wrap around semantics, and in C++
signed overflow is UB.
Unless the operation guarantees that no signed overflow happens, we will
perform the arithmetic in an equivalent unsigned type.
`bool` also doesn't wrap around in C++, and is not addressed here.
Diffstat (limited to 'llvm/lib/Object/ELF.cpp')
0 files changed, 0 insertions, 0 deletions