SuccessChanges

Summary

  1. sanitizer_common: Implement COMPILER_CHECK using static_assert (details)
  2. [AArch64][SVE] Add lowering for rounding operations (details)
  3. [clang-format] Parse __ptr32/__ptr64 as a pointer qualifier (details)
  4. [clang-format] Add a test showing the current config file list parsing (details)
  5. FormatTest: Provide real line number in failure messages (details)
  6. [HeapProf] Address post-review comments in instrumentation code (details)
  7. [OpenMPOpt] Assume indirect call always changes ICV (details)
  8. [libclang] Add translateCXRangeToCharRange conversion (details)
  9. [analyzer][StdLibraryFunctionsChecker] Add POSIX time handling functions (details)
  10. [DSE,MemorySSA] Remove some duplicated test functions. (details)
  11. [objdump][macho] Emit segment names along with section names (details)
Commit fab60665ebc51b1b6c132e368fee00865d4d3942 by thakis
sanitizer_common: Implement COMPILER_CHECK using static_assert

Since this is an internal header, we can just assume static_assert
exists.

If this doesn't upset any bots, I'll replace all uses of
COMPILER_CHECK in a follow-up.
The file was modifiedcompiler-rt/lib/sanitizer_common/sanitizer_internal_defs.h
Commit 1ffcbe35ae0e136d7dd4cdd77eda306cc98b00e7 by dancgr
[AArch64][SVE] Add lowering for rounding operations

Add the functionality to lower SVE rounding operations for passthru variant.
Created a new test case file for all rounding operations.

Reviewed By: paulwalker-arm

Differential Revision: https://reviews.llvm.org/D86793
The file was modifiedllvm/lib/Target/AArch64/AArch64SVEInstrInfo.td
The file was addedllvm/test/CodeGen/AArch64/sve-fp-rounding.ll
The file was modifiedllvm/lib/Target/AArch64/AArch64ISelLowering.h
The file was modifiedllvm/lib/Target/AArch64/AArch64ISelLowering.cpp
The file was modifiedllvm/test/CodeGen/AArch64/sve-fp.ll
Commit 8c810acc94ed462238242c04c75ab33fc96da6e8 by Alexander.Richardson
[clang-format] Parse __ptr32/__ptr64 as a pointer qualifier

Before:
x = (foo *__ptr32) * v;
MACRO(A * __ptr32 a);
x = (foo *__ptr64) * v;
MACRO(A * __ptr64 a);

After:
x = (foo *__ptr32)*v;
MACRO(A *__ptr32 a);
x = (foo *__ptr64)*v;
MACRO(A *__ptr64 a);

Depends on D86721 (to apply cleanly)

Reviewed By: MyDeveloperDay

Differential Revision: https://reviews.llvm.org/D86775
The file was modifiedclang/unittests/Format/FormatTest.cpp
The file was modifiedclang/lib/Format/FormatToken.h
Commit e0ff5a8410ea58ba3d2e75791789a28ce976a7e7 by Alexander.Richardson
[clang-format] Add a test showing the current config file list parsing

Currently clang-format starts overriding the default values at index 0
(keeping the existing values) instead of appending or replacing all values.
This patch simply checks the current (IMO surprising) behaviour and does
not attempt to change it.

Reviewed By: MyDeveloperDay

Differential Revision: https://reviews.llvm.org/D86941
The file was addedclang/test/Format/dump-config-list-override.cpp
Commit 2108bceceb5e6eca361aaa6b10441d83bd9edc1b by Alexander.Richardson
FormatTest: Provide real line number in failure messages

Currently a test failure always reports a line number inside verifyFormat()
which is not very helpful to see which test failed. With this change we now
emit the line number where the verify function was called. When using an
IDE such as CLion, the output now includes a clickable link that points to
the call site.

Reviewed By: MyDeveloperDay

Differential Revision: https://reviews.llvm.org/D86926
The file was modifiedclang/unittests/Format/FormatTest.cpp
Commit 45c3560384814d04c9813e644efa8e2155ecae52 by tejohnson
[HeapProf] Address post-review comments in instrumentation code

Addresses post-review comments from D85948, which can be found here:
https://reviews.llvm.org/rG7ed8124d46f9.
The file was modifiedclang/include/clang/Driver/Options.td
The file was modifiedclang/lib/Driver/SanitizerArgs.cpp
The file was modifiedclang/include/clang/Basic/CodeGenOptions.def
The file was modifiedllvm/lib/Transforms/Instrumentation/HeapProfiler.cpp
The file was modifiedclang/lib/Frontend/CompilerInvocation.cpp
The file was modifiedclang/test/Driver/fmemprof.cpp
The file was modifiedclang/lib/Driver/ToolChains/Clang.cpp
The file was modifiedllvm/include/llvm/Transforms/Instrumentation/HeapProfiler.h
Commit 4eef14f9780d9fc9a88096a3cabd669bcfa02bbc by aktoon
[OpenMPOpt] Assume indirect call always changes ICV

When checking call sites, give special handling to indirect call, as the
callee may be unknown and can lead to nullptr dereference later. Assume
conservatively that the ICV always changes in such case.

Reviewed By: sstefan1

Differential Revision: https://reviews.llvm.org/D87104
The file was modifiedllvm/lib/Transforms/IPO/OpenMPOpt.cpp
The file was modifiedllvm/test/Transforms/OpenMP/icv_tracking.ll
Commit baf3c77bd9f6baf60a09ef3625fef84080642b72 by Jan Korous
[libclang] Add translateCXRangeToCharRange conversion

Add new conversion with clearly specified semantics.

https://reviews.llvm.org/D86990
The file was modifiedclang/tools/libclang/CXSourceLocation.h
The file was modifiedclang/tools/libclang/CIndex.cpp
Commit f0b9dbcfc7ba2a217cab3217d6217fc270c88b58 by gabor.marton
[analyzer][StdLibraryFunctionsChecker] Add POSIX time handling functions

Differential Revision: https://reviews.llvm.org/D84248
The file was modifiedclang/test/Analysis/std-c-library-functions-POSIX.c
The file was modifiedclang/test/Analysis/std-c-library-functions-arg-constraints.c
The file was modifiedclang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp
Commit 51932fc6bde88d1798a6cdea1f3885164d5524d7 by flo
[DSE,MemorySSA] Remove some duplicated test functions.

Some tests from multibuild-malloc-free.ll do not actually use malloc or
free and where split out to multiblock-throwing.ll, but not removed from
the original file. This patch cleans that up. It also moves @test22 to
simple.ll, because it does not involve multiple blocks.
The file was modifiedllvm/test/Transforms/DeadStoreElimination/MSSA/multiblock-malloc-free.ll
The file was modifiedllvm/test/Transforms/DeadStoreElimination/MSSA/multiblock-throwing.ll
The file was modifiedllvm/test/Transforms/DeadStoreElimination/MSSA/simple.ll
Commit 3f1a9b7eca0a969e18aabefa3ceb9054b94c17c0 by daniel_l_sanders
[objdump][macho] Emit segment names along with section names

I recently came across a MachO with multiple sections of the same name but
different segments. We should emit the segment name alongside the section name
for MachO's.

Differential Revision: https://reviews.llvm.org/D87119
The file was modifiedllvm/test/tools/llvm-objdump/MachO/section-contents.test
The file was modifiedllvm/tools/llvm-objdump/llvm-objdump.cpp
The file was modifiedllvm/test/MC/AArch64/arm64_32-compact-unwind.s