SuccessChanges

Summary

  1. [lldb/Test] Add test for man page and lldb --help output (details)
  2. For --relativenames, ignore directory 0, which is the comp_dir. (details)
  3. [PDB] Share code to relocate .debug$[SF] sections, NFC (details)
  4. [OpenMP] Replace Clang's OpenMP RTL Definitions with OMPKinds.def (details)
  5. [libc++] NFC: Minor refactoring in std::array (details)
  6. [PowerPC] Add clang option -m[no-]pcrel (details)
  7. [libc++] Add assertions on OOB accesses in std::array when the debug mode is enabled (details)
  8. [analyzer][MallocChecker] Fix the incorrect retrieval of the from argument in realloc() (details)
  9. Clean up clang/test/CodeGenObjC/os_log.m (details)
Commit 382f6d37a1f2ec472a1f869be2d33078fe6ea8da by Jonas Devlieghere
[lldb/Test] Add test for man page and lldb --help output
The file was addedlldb/test/Shell/Driver/TestHelp.test
Commit f027cfa37e6757bb2d17ac3bea944df4e06bcff4 by saugustine
For --relativenames, ignore directory 0, which is the comp_dir.

Update for upstream comments. Improve test by writing all the debug
info by hand.

Reviewers: dblaikie, jhenderson

Subscribers: hiraditya, MaskRay, rupprecht, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D80168
The file was modifiedllvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp (diff)
The file was modifiedllvm/test/tools/llvm-symbolizer/relativenames.s (diff)
Commit 45fd3e4688a78d182d11733f8d633966f05d2860 by rnk
[PDB] Share code to relocate .debug$[SF] sections, NFC

Sink relocateDebugChunk near the only call site.
The file was modifiedlld/COFF/PDB.cpp (diff)
Commit 1a4fb2edcb908d6c9141036d29b46a347b1b6f18 by jhuber6
[OpenMP] Replace Clang's OpenMP RTL Definitions with OMPKinds.def

Summary: This changes Clang's generation of OpenMP runtime functions to use the types and functions defined in OpenMPKinds and OpenMPConstants. New OpenMP runtime function information should now be added to OMPKinds.def. This patch also changed the definitions of __kmpc_push_num_teams and __kmpc_copyprivate to match those found in the runtime.

Reviewers: jdoerfert

Reviewed By: jdoerfert

Subscribers: jfb, AndreyChurbanov, openmp-commits, fghanim, hiraditya, sstefan1, cfe-commits, llvm-commits

Tags: #openmp, #clang, #llvm

Differential Revision: https://reviews.llvm.org/D80222
The file was modifiedclang/lib/CodeGen/CGOpenMPRuntime.h (diff)
The file was modifiedllvm/include/llvm/Frontend/OpenMP/OMPKinds.def (diff)
The file was modifiedclang/test/OpenMP/teams_distribute_simd_codegen.cpp (diff)
The file was modifiedclang/test/OpenMP/teams_distribute_codegen.cpp (diff)
The file was modifiedclang/test/OpenMP/barrier_codegen.cpp (diff)
The file was modifiedclang/lib/CodeGen/CGOpenMPRuntime.cpp (diff)
The file was modifiedclang/test/OpenMP/target_teams_num_teams_codegen.cpp (diff)
The file was modifiedclang/test/OpenMP/teams_distribute_parallel_for_simd_codegen.cpp (diff)
The file was modifiedllvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h (diff)
The file was modifiedclang/test/OpenMP/target_teams_thread_limit_codegen.cpp (diff)
The file was modifiedllvm/test/Transforms/OpenMP/add_attributes.ll (diff)
The file was modifiedclang/test/OpenMP/teams_codegen.cpp (diff)
The file was modifiedclang/test/OpenMP/teams_distribute_parallel_for_codegen.cpp (diff)
The file was modifiedclang/test/OpenMP/target_teams_distribute_parallel_for_codegen.cpp (diff)
The file was modifiedclang/test/OpenMP/target_teams_distribute_parallel_for_simd_codegen.cpp (diff)
The file was modifiedclang/test/OpenMP/nvptx_teams_codegen.cpp (diff)
The file was modifiedclang/test/OpenMP/openmp_win_codegen.cpp (diff)
The file was modifiedllvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp (diff)
Commit 66a14d151efb8d142e23f88166e76bfe3730adda by Louis Dionne
[libc++] NFC: Minor refactoring in std::array
The file was modifiedlibcxx/include/array (diff)
Commit 7cfded350a7edc87f4a67f84e4261e44954600d0 by lei
[PowerPC] Add clang option -m[no-]pcrel

Summary:
Add user-facing front end option to turn off pc-relative memops.
This will be compatible with gcc.

Reviewers: stefanp, nemanjai, hfinkel, power-llvm-team, #powerpc, NeHuang, saghir

Reviewed By: stefanp, NeHuang, saghir

Subscribers: saghir, wuzish, shchenz, cfe-commits, kbarton, echristo

Tags: #clang, #powerpc

Differential Revision: https://reviews.llvm.org/D80757
The file was modifiedclang/include/clang/Driver/Options.td (diff)
The file was modifiedclang/lib/Basic/Targets/PPC.h (diff)
The file was addedclang/test/Driver/ppc-pcrel.cpp
The file was modifiedclang/lib/Basic/Targets/PPC.cpp (diff)
Commit 23776a178f8379e1d9b4d79952bac916c1fa70fe by Louis Dionne
[libc++] Add assertions on OOB accesses in std::array when the debug mode is enabled

Like we do for empty std::array, make sure we have assertions in place
for obvious out-of-bounds issues in std::array when the debug mode is
enabled (which isn't by default).
The file was modifiedlibcxx/include/array (diff)
Commit 6bedfaf5200474f9a72b059f0d99dd39ece1c03e by dkszelethus
[analyzer][MallocChecker] Fix the incorrect retrieval of the from argument in realloc()

In the added testfile, the from argument was recognized as
&Element{SymRegion{reg_$0<long * global_a>},-1 S64b,long}
instead of
reg_$0<long * global_a>.
The file was modifiedclang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp (diff)
The file was modifiedclang/test/Analysis/malloc.c (diff)
Commit 959517ace1cd9e8bcd0af3be6259dd4d78a9bd84 by Akira
Clean up clang/test/CodeGenObjC/os_log.m

Don't run optimization passes at -O2 and remove unneeded #ifdef and test
cases.
The file was modifiedclang/test/CodeGenObjC/os_log.m (diff)