This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Rename arith.addi_carry to arith.addui_carry
ClosedPublic

Authored by kuhar on Aug 23 2022, 11:32 AM.

Details

Summary

The intention is to have this op lowered to
llvm.intr.uadd.with.overflow or spv.IAddCarry. LLVM has a second
intrinsic for signed add-with-overflow, llvm.intr.sadd.with.overflow,
with different semantics. Therefore we should have 2 ops with arith,
and be explicit about signed/unsigned semantics.

Rename arith.addi_carry to arith.addui_carry before we introduce a
signed version of this op: arith.addsi_carry.

Diff Detail

Event Timeline

kuhar created this revision.Aug 23 2022, 11:32 AM
kuhar requested review of this revision.Aug 23 2022, 11:32 AM
antiagainst accepted this revision.Aug 23 2022, 7:27 PM
This revision is now accepted and ready to land.Aug 23 2022, 7:27 PM
This revision was automatically updated to reflect the committed changes.