SuccessChanges

Summary

  1. [lldb] Fix 'r' and 'run' aliases on Apple Silicon (details)
  2. [lldb] s/TARGET_OS_EMBEDDED/TARGET_OS_IPHONE/ (details)
  3. [dfsan] Fix building OriginAddr at non-linux OS (details)
  4. [Polly] Sanitize optimization levels. (details)
  5. [TableGen] Make the map in InfoByHwMode protected. NFCI (details)
  6. [OpenMP][AMDGPU] Add support for linking libomptarget bitcode (details)
  7. gn build: Support cross-compiling libunwind for Android. (details)
  8. [WebAssembly] Fix delegate's argument computation (details)
  9. [Test] Add a potentially hanging test to prevent merging patches that hang it (details)
  10. DebugInfo/Symbolize: Use stable_sort (details)
Commit 4d3a061c32ee5c4fb88be389a4dd7fd71fc9fa9c by Jonas Devlieghere
[lldb] Fix 'r' and 'run' aliases on Apple Silicon

The 'r' and 'run' aliases were different based on the target
architecture. I suspect the intention was to disable shell expansion on
embedded devices. This fixes TestCustomShell.test on AS.
The file was modifiedlldb/test/Shell/Host/TestCustomShell.test
The file was modifiedlldb/source/Interpreter/CommandInterpreter.cpp
Commit 732534ed64284b7ec6dde98e7b0ff779fce6b3d4 by Jonas Devlieghere
[lldb] s/TARGET_OS_EMBEDDED/TARGET_OS_IPHONE/

TARGET_OS_EMBEDDED is deprecated, use TARGET_OS_IPHONE and/or
TARGET_OS_SIMULATOR instead.
The file was modifiedlldb/source/Host/macosx/objcxx/HostInfoMacOSX.mm
The file was modifiedlldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
Commit 083d45b21c1f7651345c1378b7d3302afe8f297a by jianzhouzh
[dfsan] Fix building OriginAddr at non-linux OS

Fix the broken build by D96545
The file was modifiedcompiler-rt/lib/dfsan/dfsan_platform.h
Commit 9b123cde6340449669b88afc540d560080b4113b by llvm-project
[Polly] Sanitize optimization levels.

The description of the -polly switch stated that it was only enabled
with -O3. This was a lie, the optimization level was ignored. Only at
-O0 Polly was not added to the pass pipeline because the pass builder,
but only because the extension points were not triggered.

In the NewPM, the VectorizerStart extensions point is actually trigger
even with -O0 which leads to the following crash:

   Assertion `Level != OptimizationLevel::O0 && "Must request optimizations!"' failed.

We sanitize the optimization levels using the following rules for both
pass mangers:

1. Only enable Polly if optimizing at all (-O1, -O2 or -O3).
2. Do not enable Polly when optimizing for size.
3. Ignore the optimization level for diagnostic passes (printer, viewer
    or JScop-exporter).
4. If only diagnostic passes enabled, skip the code-generation.
5. Fix the description of the -polly command line option.
The file was modifiedpolly/lib/Support/RegisterPasses.cpp
Commit 56277e3e10d204e26e7884c4d978b82fd1620f02 by craig.topper
[TableGen] Make the map in InfoByHwMode protected. NFCI

Switch some for loops to just use the begin()/end() implementations
in the InfoByHwMode struct.

Add a method to insert into the map for the one case that was
modifying the map directly.
The file was modifiedllvm/utils/TableGen/CodeEmitterGen.cpp
The file was modifiedllvm/utils/TableGen/CodeGenRegisters.cpp
The file was modifiedllvm/utils/TableGen/InfoByHwMode.h
The file was modifiedllvm/utils/TableGen/FixedLenDecoderEmitter.cpp
Commit 79401b43ce4e3aa856c50e78b38327e3ff4ae9eb by Pushpinder.Singh
[OpenMP][AMDGPU] Add support for linking libomptarget bitcode

This patch uses the existing logic of CUDA for searching libomptarget
and extracts it to a common method.

Reviewed By: JonChesterfield, tianshilei1992

Differential Revision: https://reviews.llvm.org/D96248
The file was modifiedclang/test/Driver/amdgpu-openmp-toolchain.c
The file was modifiedclang/lib/Driver/ToolChains/CommonArgs.h
The file was addedclang/test/Driver/Inputs/hip_dev_lib/libomptarget-amdgcn-gfx906.bc
The file was modifiedclang/include/clang/Basic/DiagnosticDriverKinds.td
The file was modifiedclang/include/clang/Driver/Options.td
The file was addedclang/test/Driver/Inputs/hip_dev_lib/libomptarget-amdgcn-gfx803.bc
The file was modifiedclang/lib/Driver/ToolChains/CommonArgs.cpp
The file was modifiedclang/lib/Driver/ToolChains/AMDGPUOpenMP.cpp
The file was modifiedclang/lib/Driver/ToolChains/Cuda.cpp
Commit e434fc0dde8c6b11df8c4d68c2758c3b5d69a97f by peter
gn build: Support cross-compiling libunwind for Android.

- Usual cross-compilation fix: s/target_/current_/g

- Define _LIBUNWIND_IS_NATIVE_ONLY to enable unwinding past
  functions with return pointer authentication.

- Android needs two libunwind static libraries: one with symbols exported and
  one without. These both need to be in the same build tree so
  the libunwind_hermetic_static_library configuration option doesn't
  help here. Replace it with build rules that build both libraries.

- Install the libraries in the location that Android expects them to be.

Differential Revision: https://reviews.llvm.org/D96563
The file was modifiedllvm/utils/gn/secondary/libunwind/src/BUILD.gn
The file was modifiedllvm/utils/gn/secondary/libunwind/BUILD.gn
Commit 2968611fdaff215ff1e0064a3c147229211edf9c by aheejin
[WebAssembly] Fix delegate's argument computation

I previously assumed `delegate`'s immediate argument computation
followed a different rule than that of branches, but we agreed to make
it the same
(https://github.com/WebAssembly/exception-handling/issues/146). This
removes the need for a separate `DelegateStack` in both CFGStackify and
InstPrinter.

When computing the immediate argument, we use a different function for
`delegate` computation because in MIR `DELEGATE`'s instruction's
destination is the destination catch BB or delegate BB, and when it is a
catch BB, we need an additional step of getting its corresponding `end`
marker.

Reviewed By: tlively, dschuff

Differential Revision: https://reviews.llvm.org/D96525
The file was modifiedllvm/lib/Target/WebAssembly/WebAssemblyCFGStackify.cpp
The file was modifiedllvm/test/CodeGen/WebAssembly/cfg-stackify-eh.ll
The file was modifiedllvm/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyInstPrinter.cpp
The file was modifiedllvm/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyInstPrinter.h
Commit b32fa1751f3cb7d93c5c2490f775415a1bcf1a73 by mkazantsev
[Test] Add a potentially hanging test to prevent merging patches that hang it
The file was modifiedllvm/test/CodeGen/X86/2020_12_02_decrementing_loop.ll
Commit 0fd7c31a098efdfaa5a57dbac6e9c0921b00a999 by i
DebugInfo/Symbolize: Use stable_sort

This fixes coff-dwarf.test on some build bots.
The test relies on the sort order and prefers main (StorageClass: External) to .text (StorageClass: Static).
The file was modifiedllvm/lib/DebugInfo/Symbolize/SymbolizableObjectFile.cpp