SuccessChanges

Summary

  1. Illustrate a redirector using the example of round function from math.h. (details)
  2. [MIPS GlobalISel] Fix -Wunused-variable in -DLLVM_ENABLE_ASSERTIONS=off (details)
  3. [lit] Fix internal env calling env (details)
Commit 9364107cf348c7d4a2d05b8906bda6ba384ce6f6 by sivachandra
Illustrate a redirector using the example of round function from math.h.
Setup demonstrated in this patch is only for ELF-ish platforms.
Also note:
1. Use of redirectors is a temporary scheme. They will be removed once
  LLVM-libc has implementations for the redirected functions. 2.
Redirectors are optional. One can choose to not include them in the
  LLVM-libc build for their platform. 3. Even with redirectors used, we
want to link to the system libc
  dynamically.
Reviewers: dlj, hfinkel, jakehehrlich, phosek, stanshebs, theraven,
alexshap
Subscribers: mgorny, libc-commits
Tags: #libc-project
Differential Revision: https://reviews.llvm.org/D69020
The file was modifiedlibc/cmake/modules/LLVMLibCRules.cmake
The file was addedlibc/src/math/round/round.h
The file was addedlibc/src/math/CMakeLists.txt
The file was addedlibc/docs/redirectors_schematic.svg
The file was addedlibc/src/math/round/round_redirector.cpp
The file was modifiedlibc/src/CMakeLists.txt
The file was addedlibc/docs/redirectors.rst
The file was addedlibc/src/math/round/CMakeLists.txt
The file was addedlibc/src/math/round/round.cpp
The file was modifiedlibc/lib/CMakeLists.txt
The file was modifiedlibc/docs/build_system.rst
Commit 45ee0d6de6f82833de1320de35366669b2b1cdf2 by maskray
[MIPS GlobalISel] Fix -Wunused-variable in -DLLVM_ENABLE_ASSERTIONS=off
builds after D69663
The file was modifiedllvm/lib/Target/Mips/MipsInstructionSelector.cpp
Commit cb2c4bb0e0da675bb0ab3a3fce4cbb014d83f675 by jdenny.ornl
[lit] Fix internal env calling env
Without this patch, when using lit's internal shell, if `env` on a lit
RUN line calls `env`, lit accidentally searches for the latter as an
external executable.  What's worse is that works fine when a developer
is testing on a platform where `env` is available and behaves as
expected, but it then breaks on other platforms.
`env` calling `env` can make sense if one such `env` is within a lit
substitution, as in D65156 and D65121.  This patch ensures that lit
executes both as internal commands.
Reviewed By: probinson, mgorny, rnk
Differential Revision: https://reviews.llvm.org/D65697
The file was modifiedllvm/utils/lit/lit/TestRunner.py
The file was modifiedllvm/utils/lit/tests/shtest-env.py
The file was addedllvm/utils/lit/tests/Inputs/shtest-env/env-calls-env.txt
The file was addedllvm/utils/lit/tests/Inputs/shtest-env/env-args-nested-none.txt