SuccessChanges

Summary

  1. [lit] Make internal diff work in pipelines (details)
  2. [lit] Extend internal diff to support `-` argument (details)
  3. [clangd] Use our own relation kind. (details)
  4. [OpenCL] Preserve addrspace in CGClass (PR43145) (details)
  5. [OPENMP]Fix thread id passed to outlined region in sequential parallel (details)
Commit 221e418f0c56d6b4a8b188fb4d8e75e21f7b0c8d 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: 375114
The file was removedllvm/utils/lit/tests/Inputs/shtest-shell/diff-unified-error-1.txt
The file was addedllvm/utils/lit/lit/builtin_commands/diff.py
The file was modifiedllvm/utils/lit/tests/max-failures.py
The file was modifiedllvm/utils/lit/lit/TestRunner.py
The file was modifiedllvm/utils/lit/tests/shtest-shell.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
The file was modifiedllvm/utils/lit/tests/Inputs/shtest-shell/diff-unified.txt
The file was removedllvm/utils/lit/tests/Inputs/shtest-shell/diff-unified-error-0.txt
Commit 849d67a70080982cc1261759015a67b06b25eb16 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: 375116
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/tests/shtest-shell.py
The file was addedllvm/utils/lit/tests/Inputs/shtest-shell/diff-r-error-8.txt
The file was modifiedllvm/utils/lit/tests/Inputs/shtest-shell/diff-encodings.txt
The file was modifiedllvm/utils/lit/lit/builtin_commands/diff.py
The file was addedllvm/utils/lit/tests/Inputs/shtest-shell/diff-r-error-7.txt
Commit c8e3f43ab514bf527b2d2d01f66d4c921a2985c4 by hokein
[clangd] Use our own relation kind.
Summary: Move the RelationKind from Serialization.h to Relation.h. This
patch doesn't introduce any breaking changes.
Reviewers: kadircet
Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, usaxena95,
cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D68981
llvm-svn: 375117
The file was modifiedclang-tools-extra/clangd/index/Relation.cpp
The file was modifiedclang-tools-extra/clangd/unittests/IndexTests.cpp
The file was modifiedclang-tools-extra/clangd/unittests/SymbolCollectorTests.cpp
The file was modifiedclang-tools-extra/clangd/index/Index.h
The file was modifiedclang-tools-extra/clangd/index/YAMLSerialization.cpp
The file was modifiedclang-tools-extra/clangd/unittests/BackgroundIndexTests.cpp
The file was modifiedclang-tools-extra/clangd/XRefs.cpp
The file was modifiedclang-tools-extra/clangd/index/dex/Dex.cpp
The file was modifiedclang-tools-extra/clangd/index/Serialization.cpp
The file was modifiedclang-tools-extra/clangd/unittests/DexTests.cpp
The file was modifiedclang-tools-extra/clangd/unittests/SerializationTests.cpp
The file was modifiedclang-tools-extra/clangd/index/SymbolCollector.cpp
The file was modifiedclang-tools-extra/clangd/unittests/FileIndexTests.cpp
The file was modifiedclang-tools-extra/clangd/index/Serialization.h
The file was modifiedclang-tools-extra/clangd/index/MemIndex.cpp
The file was modifiedclang-tools-extra/clangd/index/dex/Dex.h
The file was modifiedclang-tools-extra/clangd/unittests/TypeHierarchyTests.cpp
The file was modifiedllvm/include/llvm/ADT/DenseMapInfo.h
The file was modifiedclang-tools-extra/clangd/index/Relation.h
The file was modifiedclang-tools-extra/clangd/index/MemIndex.h
Commit af6248cbb9e70122359a12ff16541fe510ada600 by sven.vanhaastregt
[OpenCL] Preserve addrspace in CGClass (PR43145)
PR43145 revealed two places where Clang was attempting to create a
bitcast without considering the address space of class types during C++
class code generation.
Differential Revision: https://reviews.llvm.org/D68403
llvm-svn: 375118
The file was modifiedclang/lib/CodeGen/CGClass.cpp
The file was modifiedclang/test/CodeGenOpenCLCXX/addrspace-derived-base.cl
Commit 3e0f4f8e928cabb3da9fc955321fb5142a0a0110 by a.bataev
[OPENMP]Fix thread id passed to outlined region in sequential parallel
regions.
The real global thread id must be passed to the outlined region instead
of the zero thread id.
llvm-svn: 375119
The file was modifiedclang/lib/CodeGen/CGOpenMPRuntime.cpp
The file was modifiedclang/test/OpenMP/parallel_if_codegen.cpp