HomePhabricator

[Intrinsic] Signed Saturation Addition Intrinsic

Authored by leonardchan on Oct 16 2018, 10:35 AM.

Description

[Intrinsic] Signed Saturation Addition Intrinsic

Add an intrinsic that takes 2 integers and perform saturation addition on them.

This is a part of implementing fixed point arithmetic in clang where some of
the more complex operations will be implemented as intrinsics.

Differential Revision: https://reviews.llvm.org/D53053

llvm-svn: 344629