llvm-project/llvm
Nathan Slingerland 644badbf01 [Support] Change SaturatingAdd()/SaturatingMultiply() to use pointer for returning overflow state
Summary:
Improve SaturatingAdd()/SaturatingMultiply() to use bool * to optionally return overflow result.
This should make it clearer that the value is returned at callsites and reduces the size of the implementation.

Reviewers: davidxl, silvas

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D15219

llvm-svn: 255128
2015-12-09 17:11:28 +00:00
..
autoconf [autoconf] Fix MinGW build 2015-11-28 00:54:12 +00:00
bindings Fix `llvm-config` to adapt to the install environment. 2015-11-09 23:15:38 +00:00
cmake [CMake] Ignore externalizing debuginfo for unit tests 2015-12-08 21:51:48 +00:00
docs Update doc for C++ TLS calling convention. 2015-12-07 21:40:09 +00:00
examples [Orc] Fix Kaleidoscope example for change in r254693. 2015-12-04 02:32:32 +00:00
include [Support] Change SaturatingAdd()/SaturatingMultiply() to use pointer for returning overflow state 2015-12-09 17:11:28 +00:00
lib Revert "[InstCombine] fold bitcasts around an extractelement" 2015-12-09 16:31:39 +00:00
projects [CMake] Disable adding the test suite as a projects subdirectory 2015-10-28 18:36:56 +00:00
resources
test Revert "[InstCombine] fold bitcasts around an extractelement" 2015-12-09 16:31:39 +00:00
tools Fix the order of destructors in LibLTOCodeGenerator 2015-12-09 03:37:51 +00:00
unittests [Support] Change SaturatingAdd()/SaturatingMultiply() to use pointer for returning overflow state 2015-12-09 17:11:28 +00:00
utils Use make_range to reduce mentions of iterator type. NFC 2015-12-06 05:08:07 +00:00
.arcconfig
.clang-format
.clang-tidy adding readability-identifier-naming to llvm clang-tidy configuration. 2015-12-08 17:44:51 +00:00
.gitignore
CMakeLists.txt [CMake] Add option LLVM_EXTERNALIZE_DEBUGINFO 2015-12-03 18:45:39 +00:00
CODE_OWNERS.TXT Friendly takeover of the Hexagon backend 2015-12-03 17:07:12 +00:00
CREDITS.TXT
LICENSE.TXT
LLVMBuild.txt
Makefile
Makefile.common
Makefile.config.in
Makefile.rules Create Makefile variables for 'share' and 'libexec' 2015-11-09 16:10:00 +00:00
README.txt Test commit after password reset 2015-11-11 19:24:08 +00:00
configure [autoconf] Fix MinGW build 2015-11-28 00:54:12 +00:00
llvm.spec.in

README.txt

Low Level Virtual Machine (LLVM)
================================

This directory and its subdirectories contain source code for LLVM,
a toolkit for the construction of highly optimized compilers,
optimizers, and runtime environments.

LLVM is open source software. You may freely distribute it under the terms of
the license agreement found in LICENSE.txt.

Please see the documentation provided in docs/ for further
assistance with LLVM, and in particular docs/GettingStarted.rst for getting
started with LLVM and docs/README.txt for an overview of LLVM's
documentation setup.

If you are writing a package for LLVM, see docs/Packaging.rst for our
suggestions.