[all-commits] [llvm/llvm-project] bf601b: [mlir][LLVM] Add nsw and nuw flags to trunc (#115509)
lfrenot via All-commits
all-commits at lists.llvm.org
Mon Nov 11 08:12:07 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: bf601ba3322dd908ee9290af7f0d9bafa051a734
https://github.com/llvm/llvm-project/commit/bf601ba3322dd908ee9290af7f0d9bafa051a734
Author: lfrenot <leon.frenot at gmail.com>
Date: 2024-11-11 (Mon, 11 Nov 2024)
Changed paths:
M mlir/include/mlir/Dialect/LLVMIR/LLVMOps.td
M mlir/test/Dialect/LLVMIR/roundtrip.mlir
M mlir/test/Target/LLVMIR/Import/nsw_nuw.ll
M mlir/test/Target/LLVMIR/nsw_nuw.mlir
Log Message:
-----------
[mlir][LLVM] Add nsw and nuw flags to trunc (#115509)
This implementation is based on the one already existing for the binary
operations.
If the nuw keyword is present, and any of the truncated bits are
non-zero, the result is a poison value. If the nsw keyword is present,
and any of the truncated bits are not the same as the top bit of the
truncation result, the result is a poison value.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list