Multiplication followed by addition (https://en.wikipedia.org/wiki/Multiply–accumulate_operation) is a sufficiently common use-case to warrant a separate helper.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
llvm/include/llvm/Support/CheckedArithmetic.h | ||
---|---|---|
65–67 ↗ | (On Diff #151201) | if (llvm::Optional<T> Product = checkedMul(A, B)) { ... } |