Add a new intrinsic that saturates a signed integer. If a value X provided is larger than the maximum value that can be represented by the provided bit width W, the this intrinsic returns that maximum value. If the X is smaller than the minimum value that can be represented in W bits, the intrinsic returns that minimum value. Otherwise, X is returned.
This is a part of implementing fixed point arithmetic in clang where some of the more complex operations will be implemented as intrinsics.
This comment doesn't mention that W must be constant.