1. [ConstantRange] Add `ushl_sat()`/`sshl_sat()` methods. (details)
Commit e0ea842baec00b6bf6dc0069f1c1961da5889927 by lebedev.ri
[ConstantRange] Add `ushl_sat()`/`sshl_sat()` methods.
Summary: To be used in `ConstantRange::shlWithNoOverflow()`, may in
future be useful for when saturating shift/mul ops are added.
Unlike `ConstantRange::shl()`, these are precise.
Reviewers: nikic, spatel, reames
Reviewed By: nikic
Subscribers: hiraditya, llvm-commits
Tags: #llvm
Differential Revision:
The file was modifiedllvm/include/llvm/IR/ConstantRange.h
The file was modifiedllvm/lib/IR/ConstantRange.cpp
The file was modifiedllvm/unittests/IR/ConstantRangeTest.cpp