UnstableChanges

Changes from Git (git http://labmaster3.local/git/llvm-project.git)

Summary

  1. [test] Pass DSYMUTIL and SDKROOT as part of the Make invocation. (details)
  2. [test] Use a different module cache for Shell and API tests. (details)
  3. [OPENMP50]Support for declare variant directive for NVPTX target. (details)
  4. [lit] Make internal diff work in pipelines (details)
  5. [lit] Clean up internal diff's encoding handling (details)
  6. [lit] Extend internal diff to support `-` argument (details)
  7. gn build: merge r374381 more (effectively a no-op) (details)
  8. [lit] Extend internal diff to support -U (details)
Commit 2d2cf936ac6c80fdc851fbd489c192e9bd8c4e9a by Jonas Devlieghere
[test] Pass DSYMUTIL and SDKROOT as part of the Make invocation.
Pass the DSYMUTIL and SDKROOT variables on the command line instead of
the environment. This makes it easier to reproduce the make invocation
during development.
Differential revision: https://reviews.llvm.org/D68812
llvm-svn: 374385
The file was modifiedlldb/packages/Python/lldbsuite/test/plugins/builder_base.py
Commit 27c23653aec79e447193281f2f29da15d8bb1bf9 by Jonas Devlieghere
[test] Use a different module cache for Shell and API tests.
Before the test reorganization, everything was part of a single test
suite with a single module cache. Now that things are properly separated
this is no longer the case. Only the shell tests inherited the logic to
properly configure and wipe the module caches. This patch adds that
logic back for the API tests. While doing so, I noticed that we were
configuring a Clang module cache in CMake, but weren't actually using it
from dotest.py. I included a fix for that in this patch as well.
Differential revision: https://reviews.llvm.org/D68755
llvm-svn: 374386
The file was modifiedlldb/packages/Python/lldbsuite/test/configuration.py
The file was modifiedlldb/packages/Python/lldbsuite/test/lldbtest.py
The file was modifiedlldb/test/API/lit.cfg
The file was modifiedlldb/packages/Python/lldbsuite/test/dotest.py
The file was modifiedlldb/packages/Python/lldbsuite/test/dotest_args.py
The file was modifiedlldb/test/API/lit.site.cfg.in
The file was modifiedlldb/test/Shell/lit.site.cfg.py.in
The file was modifiedlldb/test/CMakeLists.txt
The file was modifiedlldb/test/Shell/lit.cfg.py
The file was modifiedlldb/packages/Python/lldbsuite/test/plugins/builder_base.py
The file was modifiedlldb/packages/Python/lldbsuite/test/make/Makefile.rules
Commit c2cd2d40aa2e657c4f7bf0bac2594c9ea9611f43 by a.bataev
[OPENMP50]Support for declare variant directive for NVPTX target.
NVPTX does not support global aliases. Instead, we have to copy the full
body of the variant function for the original function.
llvm-svn: 374387
The file was modifiedclang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
The file was modifiedclang/lib/CodeGen/CodeGenModule.cpp
The file was addedclang/test/OpenMP/nvptx_declare_variant_implementation_vendor_codegen.cpp
The file was modifiedclang/lib/CodeGen/CGOpenMPRuntime.h
The file was modifiedclang/lib/CodeGen/CGOpenMPRuntime.cpp
The file was modifiedclang/lib/CodeGen/CGOpenMPRuntimeNVPTX.h
The file was modifiedclang/lib/CodeGen/CodeGenModule.h
Commit df35ec8289eec85e9a551578b1b7ae35b214860f by jdenny.ornl
[lit] Make internal diff work in pipelines
When using lit's internal shell, RUN lines like the following
accidentally execute an external `diff` instead of lit's internal
`diff`:
```
# RUN: program | diff file -
# RUN: not diff file1 file2 | FileCheck %s
```
Such cases exist now, in `clang/test/Analysis` for example.  We are
preparing patches to ensure lit's internal `diff` is called in such
cases, which will then fail because lit's internal `diff` cannot
currently be used in pipelines and doesn't recognize `-` as a
command-line option.
To enable pipelines, this patch moves lit's `diff` implementation into
an out-of-process script, similar to lit's `cat` implementation.  A
follow-up patch will implement `-` to mean stdin.
Reviewed By: probinson, stella.stamenova
Differential Revision: https://reviews.llvm.org/D66574
llvm-svn: 374388
The file was modifiedllvm/utils/lit/lit/TestRunner.py
The file was modifiedllvm/utils/lit/tests/shtest-shell.py
The file was addedllvm/utils/lit/lit/builtin_commands/diff.py
The file was removedllvm/utils/lit/tests/Inputs/shtest-shell/diff-error-0.txt
The file was addedllvm/utils/lit/tests/Inputs/shtest-shell/diff-pipes.txt
Commit 19e6bb25f05fa24ea445dd455c7f44fc3b036725 by jdenny.ornl
[lit] Clean up internal diff's encoding handling
As suggested by rnk at D67643#1673043, instead of reading files multiple
times until an appropriate encoding is found, read them once as binary,
and then try to decode what was read.
For python >= 3.5, don't fail when attempting to decode the
`diff_bytes` output in order to print it.
Finally, add some tests for encoding handling.
Reviewed By: rnk
Differential Revision: https://reviews.llvm.org/D68664
llvm-svn: 374389
The file was addedllvm/utils/lit/tests/Inputs/shtest-shell/diff-in.bin
The file was modifiedllvm/utils/lit/tests/max-failures.py
The file was addedllvm/utils/lit/tests/Inputs/shtest-shell/diff-in.utf16
The file was addedllvm/utils/lit/tests/Inputs/shtest-shell/diff-encodings.txt
The file was modifiedllvm/utils/lit/tests/shtest-shell.py
The file was modifiedllvm/utils/lit/lit/builtin_commands/diff.py
The file was addedllvm/utils/lit/tests/Inputs/shtest-shell/diff-in.utf8
Commit f4edce12fffee221a16c5829b24281b3e23f423d by jdenny.ornl
[lit] Extend internal diff to support `-` argument
When using lit's internal shell, RUN lines like the following
accidentally execute an external `diff` instead of lit's internal
`diff`:
```
# RUN: program | diff file -
```
Such cases exist now, in `clang/test/Analysis` for example.  We are
preparing patches to ensure lit's internal `diff` is called in such
cases, which will then fail because lit's internal `diff` doesn't
recognize `-` as a command-line option.  This patch adds support for
`-` to mean stdin.
Reviewed By: probinson, rnk
Differential Revision: https://reviews.llvm.org/D67643
llvm-svn: 374390
The file was modifiedllvm/utils/lit/tests/Inputs/shtest-shell/diff-encodings.txt
The file was addedllvm/utils/lit/tests/Inputs/shtest-shell/diff-r-error-8.txt
The file was modifiedllvm/utils/lit/tests/max-failures.py
The file was modifiedllvm/utils/lit/tests/Inputs/shtest-shell/diff-pipes.txt
The file was modifiedllvm/utils/lit/lit/builtin_commands/diff.py
The file was modifiedllvm/utils/lit/tests/shtest-shell.py
The file was addedllvm/utils/lit/tests/Inputs/shtest-shell/diff-r-error-7.txt
Commit a134d3cfc9d4f3a2db0023f3a6da53d52008c5f5 by nicolasweber
gn build: merge r374381 more (effectively a no-op)
llvm-svn: 374391
The file was modifiedllvm/utils/gn/secondary/llvm/lib/DebugInfo/GSYM/BUILD.gn
Commit 61d7ecbf84c7deb91752216b82fbb69715b6830a by jdenny.ornl
[lit] Extend internal diff to support -U
When using lit's internal shell, RUN lines like the following
accidentally execute an external `diff` instead of lit's internal
`diff`:
```
# RUN: program | diff -U1 file -
```
Such cases exist now, in `clang/test/Analysis` for example.  We are
preparing patches to ensure lit's internal `diff` is called in such
cases, which will then fail because lit's internal `diff` doesn't
recognize `-U` as a command-line option.  This patch adds `-U` support.
Reviewed By: rnk
Differential Revision: https://reviews.llvm.org/D68668
llvm-svn: 374392
The file was modifiedllvm/utils/lit/lit/builtin_commands/diff.py
The file was addedllvm/utils/lit/tests/Inputs/shtest-shell/diff-unified.txt
The file was modifiedllvm/utils/lit/tests/max-failures.py
The file was modifiedllvm/utils/lit/tests/shtest-shell.py