SuccessChanges

Summary

  1. [clang-repl] Add exhaustive list of libInterpreter dependencies. (details)
  2. Use an allow list on reserved macro identifiers (details)
  3. [FPEnv][X86] Implement lowering of llvm.set.rounding (details)
  4. Revert "[SimpleLoopUnswitch] Port partially invariant unswitch from LoopUnswitch to SimpleLoopUnswitch" (details)
  5. [NFC] Add GetInferiorAddrSize method, unify code to compute (details)
  6. [libcxx] NFC. Fix misprint unodered -> unordered (details)
  7. [clang-repl] Add final set of missing library dependencies. (details)
  8. [TSAN] Honor failure memory orders in AtomicCAS (details)
  9. [SCEV] Apply guards to max with non-unitary steps. (details)
Commit 3f4c5185926ad2a07a642b8b0b7a4accffeb7e36 by v.g.vassilev
[clang-repl] Add exhaustive list of libInterpreter dependencies.

This patch should appease the bots building with -DBUILD_SHARED_LIBS=On,
resolving the regression introduced in 92f9852fc99b.
The file was modifiedclang/lib/Interpreter/CMakeLists.txt
Commit 6045cb89e5e8223eea4d7f9c3a3e0d8d25ff909f by sguelton
Use an allow list on reserved macro identifiers

The allow list is based on various official sources (see in-code comment).

This fixes https://bugs.llvm.org/show_bug.cgi?id=50248

Differential Revision: https://reviews.llvm.org/D102168
The file was modifiedclang/lib/Lex/PPDirectives.cpp
The file was modifiedclang/test/Preprocessor/macro-reserved.c
Commit 12537ab77227db8f2b42e6172b24313d8f442e97 by sepavloff
[FPEnv][X86] Implement lowering of llvm.set.rounding

Differential Revision: https://reviews.llvm.org/D74730
The file was modifiedllvm/lib/Target/X86/X86ISelLowering.cpp
The file was modifiedllvm/lib/Target/X86/X86ISelLowering.h
The file was addedllvm/test/CodeGen/X86/fpenv.ll
The file was modifiedllvm/lib/Target/X86/X86InstrFPStack.td
Commit 107d19eb017ff6734986af077eb2e9f6600114a9 by jingu.kang
Revert "[SimpleLoopUnswitch] Port partially invariant unswitch from LoopUnswitch to SimpleLoopUnswitch"

This reverts commit 88b259c01463c08ac2575b4432c07ea7751946b5.

It needs to fix below bugs.

https://bugs.llvm.org/show_bug.cgi?id=50279
https://bugs.llvm.org/show_bug.cgi?id=50302
The file was modifiedllvm/test/Transforms/SimpleLoopUnswitch/partial-unswitch.ll
The file was removedllvm/test/Transforms/SimpleLoopUnswitch/partial-unswitch-mssa-threshold.ll
The file was removedllvm/test/Transforms/SimpleLoopUnswitch/partial-unswitch-update-memoryssa.ll
The file was modifiedllvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp
Commit afee09751d2d744a753ef4d3e8d83857dcd0f682 by Jason Molenda
[NFC] Add GetInferiorAddrSize method, unify code to compute

MachProcess.mm has a sequence to get the address size in
the inferior in three places; and I'm about to add a fourth
in a future patch.  Not a fan.
The file was modifiedlldb/tools/debugserver/source/MacOSX/MachProcess.h
The file was modifiedlldb/tools/debugserver/source/MacOSX/MachProcess.mm
Commit 8a86787847d92c0b428171d9de748c1cf91b3159 by kbessonova
[libcxx] NFC. Fix misprint unodered -> unordered

Differential Revision: https://reviews.llvm.org/D102354
The file was modifiedlibcxx/include/__hash_table
Commit b2186a69c169c7e39c2a769ba859f656aa4cef1b by v.g.vassilev
[clang-repl] Add final set of missing library dependencies.
The file was modifiedclang/tools/clang-repl/CMakeLists.txt
Commit fd184c062c1a1b4727ddf0452ebab11fb8834880 by bruno.cardoso
[TSAN] Honor failure memory orders in AtomicCAS

LLVM has lifted strong requirements for CAS failure memory orders in 431e3138a and 819e0d105e84.

Add support for honoring them in `AtomicCAS`.

https://github.com/google/sanitizers/issues/970

Differential Revision: https://reviews.llvm.org/D99434
The file was modifiedcompiler-rt/lib/tsan/rtl/tsan_interface_atomic.cpp
The file was addedcompiler-rt/test/tsan/compare_exchange.cpp
The file was modifiedllvm/test/Instrumentation/ThreadSanitizer/atomic.ll
Commit e2759f110b6e9a33db449ebdf428480f46db67b8 by flo
[SCEV] Apply guards to max with non-unitary steps.

We already apply loop-guards when computing the maximum with unitary
steps. This extends the code to also do so when dealing with non-unitary
steps.

This allows us to infer a tighter maximum in some cases.

Reviewed By: nikic

Differential Revision: https://reviews.llvm.org/D102267
The file was modifiedllvm/test/Analysis/ScalarEvolution/max-backedge-taken-count-guard-info.ll
The file was modifiedllvm/lib/Analysis/ScalarEvolution.cpp