Changes

Summary

  1. precommit tests for D109457 (details)
  2. [AMDGPU] NFC: Fixing small spelling errors in AMDGPU header files (details)
  3. [lldb] Refactor and rename CPlusPlusLanguage::FindAlternateFunctionManglings (details)
  4. [MachCore] Report arm64 thread exception state (details)
  5. Revert "[MachCore] Report arm64 thread exception state" (details)
  6. Revert "[lldb] Skip TestAppleSimulatorOSType if json parsing fails" (details)
  7. [Bazel] Use posix definitions for FreeBSD (details)
  8. [clang][NFC] refactor GlobalMethodPool to encapsulate its map (details)
Commit df7c2bcf4e45e8e20539d9024893c42f6cf1c0fd by listmail
precommit tests for D109457
The file was modifiedllvm/test/Analysis/ScalarEvolution/trip-count-implied-addrec.ll
Commit 4c1023b4b7900db3ddeec16e16018c1413ecc3db by jacob.lambert
[AMDGPU] NFC: Fixing small spelling errors in AMDGPU header files

Nonfunctional commit fixing several minor spelling errors in llvm/lib/Target/AMDGPU header files.
Testing workflow as a new contributor.

Differential Revision: https://reviews.llvm.org/D109733
The file was modifiedllvm/lib/Target/AMDGPU/R600InstrInfo.h
The file was modifiedllvm/lib/Target/AMDGPU/AMDGPU.h
The file was modifiedllvm/lib/Target/AMDGPU/GCNSchedStrategy.h
The file was modifiedllvm/lib/Target/AMDGPU/AMDGPUTargetMachine.h
The file was modifiedllvm/lib/Target/AMDGPU/GCNSubtarget.h
Commit a65f6aafe2d357cd83de62832a2bdae49a2d6749 by apl
[lldb] Refactor and rename CPlusPlusLanguage::FindAlternateFunctionManglings

I have 2 goals with this change:
1. Disambiguate between CPlusPlus::FindAlternateFunctionManglings and
   IRExecutionUnit::FindBestAlternateMangledName. These are named very
   similar things, they try to do very similar things, but their
   approaches are different. This change should make it clear that one
   is generating possible alternate manglings (through some
   heuristics-based approach) and the other is finding alternate
   manglings (through searching the SymbolFile for potential matches).
2. Change GenerateAlternateFunctionManglings from a static method in
   CPlusPlusLanguage to a virtual method in Language. This will allow us
   to remove a direct use of CPlusPlusLanguage in IRExecutionUnit,
   further pushing it to be more general. This change doesn't meet this
   goal completely but allows for it to happen later.

Though this doesn't remove IRExecutionUnit's dependency on
CPlusPlusLanguage, it does bring us closer to that goal.

Differential Revision: https://reviews.llvm.org/D109785
The file was modifiedlldb/source/Expression/IRExecutionUnit.cpp
The file was modifiedlldb/source/Plugins/Language/CPlusPlus/CPlusPlusLanguage.h
The file was modifiedlldb/source/Plugins/Language/CPlusPlus/CPlusPlusLanguage.cpp
The file was modifiedlldb/unittests/Language/CPlusPlus/CPlusPlusLanguageTest.cpp
The file was modifiedlldb/include/lldb/Target/Language.h
Commit 7eb67748f9d7186419d678e807c01fc2a3811a80 by Vedant Kumar
[MachCore] Report arm64 thread exception state

A MachO userspace corefile may contain LC_THREAD commands which specify
thread exception state.

For arm64* only (for now), report a human-readable version of this state
as the thread stop reason, instead of 'SIGSTOP'.

As a follow-up, similar functionality can be implemented for x86 cores
by translating the trapno/err exception registers.

rdar://82898146

Differential Revision: https://reviews.llvm.org/D109795
The file was modifiedlldb/include/lldb/module.modulemap
The file was addedlldb/test/API/macosx/corefile-exception-reason/main.cpp
The file was addedlldb/test/API/macosx/corefile-exception-reason/TestCorefileExceptionReason.py
The file was addedlldb/test/API/macosx/corefile-exception-reason/Makefile
The file was modifiedlldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
The file was addedlldb/include/lldb/Target/AppleArm64ExceptionClass.h
The file was addedlldb/include/lldb/Target/AppleArm64ExceptionClass.def
The file was modifiedlldb/source/Plugins/Process/mach-core/ThreadMachCore.cpp
Commit 79e48f3c7c8ca205048f584b7658ef001a677c6d by Vedant Kumar
Revert "[MachCore] Report arm64 thread exception state"

This reverts commit 7eb67748f9d7186419d678e807c01fc2a3811a80. It causes
TestMachCore.MachCoreTestCase to fail.
The file was modifiedlldb/source/Plugins/Process/mach-core/ThreadMachCore.cpp
The file was removedlldb/include/lldb/Target/AppleArm64ExceptionClass.def
The file was modifiedlldb/include/lldb/module.modulemap
The file was removedlldb/include/lldb/Target/AppleArm64ExceptionClass.h
The file was removedlldb/test/API/macosx/corefile-exception-reason/TestCorefileExceptionReason.py
The file was removedlldb/test/API/macosx/corefile-exception-reason/main.cpp
The file was modifiedlldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
The file was removedlldb/test/API/macosx/corefile-exception-reason/Makefile
Commit 8fb86011026c56204e54a2806d598249c6297d08 by augusto2112
Revert "[lldb] Skip TestAppleSimulatorOSType if json parsing fails"

This reverts commit 47dd1f642846d476e3d789f4aa941699dc0ed3fe.
After discussing with Jim Ingham, we agreed to leave the test as-is
so we can catch any CI problems instead of silently skipping the test.
The file was modifiedlldb/test/API/tools/lldb-server/TestAppleSimulatorOSType.py
Commit 2aa8474210044e41b527bd68870991b4104c4f2f by gcmn
[Bazel] Use posix definitions for FreeBSD

Presently, definitions default to those for Linux which are not defined for FreeBSD (HAVE_LSEEK64, HAVE_MALLINFO, etc.).  Patch sets os_defines to posix definitions under FreeBSD.

Reviewed By: GMNGeoffrey

Differential Revision: https://reviews.llvm.org/D109913
The file was modifiedutils/bazel/llvm-project-overlay/llvm/config.bzl
Commit e6020b2a42245d888e941eba66fbce9d0c4ab0a8 by danielrodriguez
[clang][NFC] refactor GlobalMethodPool to encapsulate its map

This refactor changes the GlobalMethodPool to a class that contains
the DenseMap of methods. This is to allow for the addition of a
separate DenseSet in a follow-up diff that will handle method
de-duplication when inserting methods into the global method pool.

Changes:
  - the `GlobalMethods` pair becomes `GlobalMethodPool::Lists`
  - the `GlobalMethodPool` becomes a class containing the `DenseMap` of methods
  - pass through methods are added to maintain most of the existing code without changing `MethodPool` -> `MethodPool.Methods` everywhere

Reviewed By: dexonsmith

Differential Revision: https://reviews.llvm.org/D109898
The file was modifiedclang/include/clang/Sema/Sema.h
The file was modifiedclang/lib/Sema/SemaDeclObjC.cpp
The file was modifiedclang/lib/Serialization/ASTReader.cpp