SuccessChanges

Summary

  1. [zorg] Add HIP builder script (details)
Commit 1a32648b32ec114a62bf4f206a01d6827a6315f1 by enye.shi
[zorg] Add HIP builder script

Simple script for HIP builder to build llvm-project incrementally,
then build and execute HIP tests from llvm-test-suite.

Reviewed By: tra

Differential Revision: https://reviews.llvm.org/D100060
The file was addedzorg/buildbot/builders/annotated/hip-build.sh
The file was addedzorg/buildbot/builders/annotated/buildbot-helper.sh

Summary

  1. [Attributor] Use checkForAllUses instead of custom use tracking (details)
  2. [Attributor] Simplify to values in the genericValueTraversal (details)
  3. [Attributor] Use set vector instead of vector to prevent duplicates (details)
  4. [AArch64][GlobalISel] Don't form truncstores in postlegalizer-lowering for s128. (details)
  5. Remove the DarwinLog functionality from debguserver (details)
  6. [mlir-tblgen] Fix failed matching when binds same operand of an op in different depth (details)
  7. [AArch64][SME] Add system registers and related instructions (details)
  8. [lldb] Remove unused variable. NFCI (details)
  9. [AArch64][SVE][InstCombine] last{a,b} of a splat vector (details)
  10. [hwasan] Use stack safety analysis. (details)
  11. [hwasan] [NFC] copy and disable ASAN tests to hwasan. (details)
  12. [PowerPC] Add lit.local.cfg in AtomicExpand tests (details)
  13. [NFC] run clang-format on hwasan use-after-scope tests. (details)
  14. [clang][deps] Normalize ignored filenames in minimizing file system (details)
  15. Revert "[hwasan] Use stack safety analysis." (details)
  16. [DSE] Transform memset + malloc --> calloc (PR25892) (details)
  17. [AMDGPU] Disable LDS lowering for GFX shaders (details)
  18. [clang][deps] Separate filesystem caches for minimized and original files (details)
  19. [clang][deps] Avoid minimizing PCH input files (details)
  20. [PowerPC][NFC] add more cases for lfiwzx/lfiwax (details)
  21. [gn build] (manually) port bc1a2979fc70 (details)
  22. [DebugInfo][InstrRef] Fix a broken substitution method, add test coverage (details)
  23. [AMDGPU] Pre-commit test case for D106284 (details)
  24. [clang][deps] Fix test by checking ignored files correctly (details)
  25. [llvm][tools] Hide more unrelated tool options (details)
  26. [SystemZ] Fix invalid assumption in getCPUNameFromS390Model (details)
  27. [AMDGPU] Improve register computation for indirect calls (details)
  28. [gn build] Port 2b08f6af62af (details)
  29. [clangd] Add tests covering existing header-guard behavior. NFC (details)
  30. [clangd] Propagate header-guarded flag from preamble to main AST (details)
  31. [clang-tidy] Don't suggest "inline" fix for main function in (details)
  32. [Lex] Consider a PCH header-guarded even with #endif truncated (details)
  33. [MIPS][MSA] Regenerate basic operations test checks (details)
  34. [X86] X86InstCombineIntrinsic.cpp - silence clang-tidy warnings about incorrect uses of auto. NFCI. (details)
  35. [linalg] Add TensorDimOp to list of ops known by bufferization. (details)
  36. [libc++][NFC] Add missing commits to the ABI changelog (details)
  37. [AArch64] Regenerate some tests checks. NFC (details)
  38. Exclude pybind11 2.7.0 from MLIR python requirements. (details)
  39. [PowerPC][Builtins] Added a number of builtins for compatibility with XL. (details)
  40. Reland Produce warning for performing pointer arithmetic on a null pointer. (details)
  41. [gn build] remove stray character in a comment (details)
  42. [VPlan] Add recipe for first-order rec phis, make splicing explicit. (details)
  43. [VPlan] Fix formatting glitch from d2a73fb44ea0b8. (details)
  44. [AArch64][SVE] Move instcombine like transforms out of SVEIntrinsicOpts (details)
  45. [Attributor] Initialize effectively unused value to appease UBSAN (details)
  46. [CostModel] Templatize EntryCost::Cost to allow custom cost metrics (details)
  47. [PowerPC] Restore FastMathFlags of Builder for Vector FDiv Builtins (details)
  48. [SystemZ][z/OS] Add GOFF support to file magic identification (details)
  49. [NFC][LoopVectorizer] Remove VF.isScalable() assertion from collectInstsToScalarize and getInstructionCost (details)
  50. [clang][patch][NFC] Refactor calculation of FunctionDecl to avoid duplicate code (details)
  51. [NFC] Fix some comments and only look at terminators when looking for ReturnLike ops (details)
  52. [SampleProfile] Remove ProfileIsValid (NFC) (details)
  53. [libcxx][ranges] Add common_iterator. (details)
  54. [gn build] Port 1a29403d2f8a (details)
  55. [UpdateCCTestChecks] Implement --global-value-regex (details)
  56. [UpdateCCTestChecks] Implement --global-hex-value-regex (details)
  57. [Bazel] Update for bc1a2979fc (details)
  58. [LV] Change interface of getReductionPatternCost to return Optional (details)
  59. [RISCV] Use unordered indexed loads for MGATHER. (details)
  60. Avoid keeping internal string_views in Twine. (details)
  61. [PowerPC] Inefficient register allocation of ACC registers results in many copies. (details)
  62. [RISCV] Add custom isel to select (and (srl X, C1), C2) and (and (shl X, C1), C2) (details)
  63. [PowerPC] Semachecking for XL compat builtin icbt (details)
  64. [Driver] Detect libstdc++ include paths for native gcc on 32-bit non-Debian Linux (details)
  65. [RISCV] Add -mattr=+c command lines to add-before-shl.ll to prepare for D105417. NFC (details)
  66. [RISCV] Teach RISCVMatInt about cases where it can use LUI+SLLI to replace LUI+ADDI+SLLI for large constants. (details)
  67. This patch extends the OptimizeGlobalAddressOfMalloc to handle the null check of global pointer variables. It is disabled with https://reviews.llvm.org/rGb7cd291c1542aee12c9e9fde6c411314a163a8ea. This PR is to reenable it while fixing the original problem reported. The fix is to set the store value correctly when creating store for the new created global init bool symbol. (details)
  68. [test] Avoid llvm-symbolizer/llvm-addr2line one-dash long options (details)
  69. [OpenMP][Documentation] Fix hyperlink location (details)
  70. [MLIR][NFC] Minor cleanup for BufferDeallocation pass. (details)
  71. [OpenMP] Change AMDGCN to AMDGPU in the Cmake Module (details)
  72. [OpenMP] Set RequiresFullRuntime false in SPMDization (details)
  73. [SystemZ][z/OS][libcxx]: fix libcxx test cases related to codecvt class UTF16/32 (details)
  74. [SystemZ][z/OS][libcxx]: fix libcxx test cases related to codecvt class UTF8 (details)
  75. [NewPM] Print pre-transformation IR name in --print-after-all (details)
  76. ThinLTO: Fix inline assembly references to static functions with CFI (details)
  77. [mlir][ods] Add nested OpTrait (details)
  78. [libc++][doc] Fixes a broken link. (details)
  79. [PowerPC][test] Don't write to srcdir (details)
  80. [Inline] Fix noalias addition on simplified instructions (PR50589) (details)
  81. [Utils] Add -compilation-dir flag to prepare-code-coverage-artifact.py (details)
  82. Fix Threshold overwrite bug in the Oz inlining model features. (details)
  83. [PowerPC] Add PowerPC cmpb builtin and emit target indepedent code for XL compatibility (details)
  84. [clang-scan-deps] ignore top-level module dependencies that aren't actually imported (details)
  85. [Verifier] Check byval/etc type when comparing ABI attributes (details)
  86. [ThinTLOBitcodeWriter] Fix unused variable warning (NFC) (details)
  87. [NFC] Update code owners file (details)
  88. [flang] Fix legitimate warning from latest GCC (details)
  89. [Orc] Fix sret/byval attributes in test (NFC) (details)
  90. [BitcodeReader] Handle type attributes more explicitly (NFCI) (details)
  91. Reland "[lld][WebAssembly] Cleanup duplicate fields in Symbols.h. NFC" (details)
  92. [PowerPC] Extra test case for LDARX (details)
  93. [AttrBuilder] Assert correct attribute kind (details)
  94. [lld][WebAssembly] Error on import of TLS symbols in shared libraries (details)
  95. [AArch64] Fix i128 cmpxchg using ldxp/stxp. (details)
  96. [NFC][OpenMP] Fix an issue that no CHECK in test cases (details)
  97. [OpenMP][deviceRTLs] Update return type of function __kmpc_parallel_level (details)
  98. [IR] Rename `comdat noduplicates` to `comdat nodeduplicate` (details)
  99. [AArch64] Delete unused Opcode after D106039 (details)
  100. [clang][darwin] add support for Mac Catalyst availability (details)
  101. [mlir][tosa] Add quantized lowering for matmul and fully_connected (details)
  102. [CLANG][PATCH][FPEnv] Add support for option -ffp-eval-method and extend #pragma float_control similarly (details)
  103. [LTO] Add SelectionKind to IRSymtab and use it in ld.lld/LLVMgold (details)
  104. [clang] NFC, move DarwinSDKInfo to lib/Basic (details)
  105. [AArch64] Use the CMP_SWAP_128 variants added in 843c6140. (details)
  106. [AArch64][GlobalISel] Select llvm.aarch64.neon.st2 intrinsics (details)
  107. Consolidate string types into ptr and length representations. (details)
  108. Revert "[CLANG][PATCH][FPEnv] Add support for option -ffp-eval-method and extend #pragma float_control similarly" (details)
  109. Recommit "[lld-macho] Use DO_BIND_ADD_ADDR_IMM_SCALED for bind opcodes" (details)
  110. [PowerPC] Store, load, move from and to registers related builtins (details)
  111. [gn build] Port 05a6d74c4845 (details)
  112. [LLD] [COFF] Add a couple "MinGW only" comments re linking against DLLs. NFC. (details)
  113. Revert "ThinLTO: Fix inline assembly references to static functions with CFI" (details)
  114. [AArch64] Add tests for 128-bit atomic loads with casp available. (details)
  115. [NFC][VectorCombine] Add tests for widening of partial vector load (details)
  116. [clang][darwin] Add support for macOS -> Mac Catalyst (details)
  117. [clang] fix oops: enable implicit moves in MSVC compatibility mode (details)
  118. [clang] Fix the capitalization of the DarwinSDKInfoTest unittest filename to avoid case-sensitive FS build errors (details)
  119. [gn build] Port 808bbc2c4702 (details)
  120. [Bazel] Fix Exegesis target reference and remove stray visibility (details)
  121. [mlir][tosa] Added tosa to linalg lowering to unstrided transposed conv (details)
  122. [flang] Run-time derived type initialization and destruction (details)
  123. [flang] Don't require newline at EOF in unformatted sequential runtime input (details)
  124. [ConstantFolding] avoid crashing on a fake math library call (details)
  125. [ELF][test] Add -DAG (details)
  126. [AArch64][GlobalISel] Legalize ctpop for v2s64, v2s32, v4s32, v4s16, v8s16 (details)
  127. [tests] Move new tests into the PowerPC folder (details)
  128. [NFC][AssemblyWriter] Allow AssemblyWriter::printBasicBlock() to print blocks that don't have parents. (details)
  129. [PowerPC] Implemented mtmsr, mfspr, mtspr Builtins (details)
  130. [JITLink] Add support for moving blocks and symbols between sections. (details)
  131. [JITLink][MachO] Detect MachO::S_THREAD_LOCAL_ZEROFILL sections as zero-fill. (details)
  132. [ORC][ORC-RT] Add initial native-TLV support to MachOPlatform. (details)
  133. Revert "[ORC][ORC-RT] Add initial native-TLV support to MachOPlatform." (details)
  134. [intel pt] Add TSC timestamps (details)
  135. [Bazel] Remove explicit relative_to_caller_repository (details)
  136. [mlir][Linalg] Update signatures of the callback functions. (details)
  137. [GlobalISel] Mark memcpy/memmove/memset as thisreturn (details)
  138. [GlobalISel] Tail call memcpy/memmove/memset even in the presence of copies (details)
  139. [DWP] Refactoring llvm-dwp in to a library. (details)
  140. [gn build] Port 403e67d34d03 (details)
  141. [flang] Remove now-unused private data member, silence warning (details)
  142. [Bazel] Remove copypasta from linalggen.bzl (details)
  143. [MachineVerifier] Diagnose invalid INSERT_SUBREGs (details)
  144. [compiler-rt] Fix %device_rundir test substitution (details)
  145. [lsan] Remove %pull_from_device from tests (details)
  146. [lsan] Remove undefined ENV variables (details)
  147. Remove libMLIRPublicAPI DSO. (details)
  148. [mlir] Use OpTraitList to define InferTensorType. NFC (details)
  149. [DWP] Fix for Refactoring llvm-dwp in to a library (details)
  150. [Clang][RISCV] Add half-precision FP for vle16/vse16. (details)
  151. [NFC][hwasan] Simplify expression (details)
  152. [NFC][hwasan] Remove "pragma GCC poison" (details)
  153. [RISCV][test] Add tests for mul optimization in the zba extension with SH*ADD (details)
  154. [flang] Two tweaks to mollify buildbots (details)
  155. [X86] Update MachineLoopInfo in CMOV conversion. (details)
  156. [mlir-tblgen] Support binding multi-results of NativeCodeCall (details)
  157. [libc] Add a new test matcher for tests raising floating point exceptions. (details)
  158. Re-apply "[ORC][ORC-RT] Add initial native-TLV support to MachOPlatform." (details)
  159. [ORC-RT] Rename macho_tlv.x86-64.s to macho_tlv.x86-64.S (uppercase suffix) (details)
Commit 5eba7846a5cb3777bf1178da5bbd86f117157d98 by johannes
[Attributor] Use checkForAllUses instead of custom use tracking

AAMemoryBehaviorFloating used a custom use tracking mechanism even
though checkForAllUses exists and is already more powerful. Further,
AAMemoryBehaviorFloating uses AANoCapture to guarantee that there are no
aliases and following the uses is sufficient. This is an OK assumption
if checkForAllUses is used but custom tracking is easily out of sync
with AANoCapture and problems follow.
The file was modifiedllvm/lib/Transforms/IPO/AttributorAttributes.cpp
The file was modifiedllvm/test/Transforms/Attributor/heap_to_stack.ll
The file was modifiedllvm/test/Transforms/Attributor/depgraph.ll
Commit 5957cf9f11bf28591196730cb639e29a11e76abb by johannes
[Attributor] Simplify to values in the genericValueTraversal

We already simplified to a constant, given the new interface we can also
simplify to a generic value.
The file was modifiedllvm/test/Transforms/Attributor/IPConstantProp/return-argument.ll
The file was modifiedllvm/lib/Transforms/IPO/AttributorAttributes.cpp
The file was modifiedllvm/test/Transforms/Attributor/memory_locations.ll
The file was modifiedllvm/test/Transforms/Attributor/readattrs.ll
Commit c66cbee140ce69fa17ffb6b8b03616beca30dca1 by johannes
[Attributor] Use set vector instead of vector to prevent duplicates
The file was modifiedllvm/lib/Transforms/IPO/AttributorAttributes.cpp
Commit 56a6686e0c45798dfda2f1b91ff921536c7c5e33 by Amara Emerson
[AArch64][GlobalISel] Don't form truncstores in postlegalizer-lowering for s128.

We don't support truncating s128 stores, so don't form them.
The file was modifiedllvm/test/CodeGen/AArch64/GlobalISel/postlegalizer-lowering-truncstore.mir
The file was modifiedllvm/lib/Target/AArch64/GISel/AArch64PostLegalizerLowering.cpp
Commit b2e25572d2a7b65a018580097b50910b3049ab65 by Jason Molenda
Remove the DarwinLog functionality from debguserver

Remove the DarwinLog and qStructuredDataPlugins support
from debugserver.  The DarwinLog plugin was never debugged
fully and made reliable, and the underlying private APIs
it uses have migrated since 2016 so none of them exist
any longer.

Differential Revision: https://reviews.llvm.org/D106324
rdar://75073283
The file was modifiedlldb/packages/Python/lldbsuite/test/test_categories.py
The file was removedlldb/test/API/functionalities/darwin_log/filter/exact_match/category/TestDarwinLogFilterMatchCategory.py
The file was modifiedlldb/tools/debugserver/source/DNB.h
The file was removedlldb/test/API/functionalities/darwin_log/filter/exact_match/subsystem/main.c
The file was modifiedlldb/tools/debugserver/source/MacOSX/CMakeLists.txt
The file was removedlldb/tools/debugserver/source/MacOSX/DarwinLog/DarwinLogCollector.cpp
The file was modifiedlldb/tools/debugserver/source/debugserver.cpp
The file was removedlldb/test/API/functionalities/darwin_log/filter/regex/activity/Makefile
The file was removedlldb/tools/debugserver/source/MacOSX/DarwinLog/ActivityStore.h
The file was removedlldb/tools/debugserver/source/MacOSX/DarwinLog/LogFilterExactMatch.h
The file was removedlldb/test/API/functionalities/darwin_log/basic/TestDarwinLogBasic.py
The file was removedlldb/test/API/functionalities/darwin_log/filter/regex/subsystem/Makefile
The file was modifiedlldb/tools/debugserver/source/CMakeLists.txt
The file was removedlldb/test/API/functionalities/darwin_log/filter/exact_match/category/Makefile
The file was removedlldb/test/API/functionalities/darwin_log/filter/regex/message/Makefile
The file was removedlldb/tools/debugserver/source/MacOSX/DarwinLog/LogFilterRegex.cpp
The file was removedlldb/tools/debugserver/source/MacOSX/DarwinLog/LogMessage.cpp
The file was modifiedlldb/tools/debugserver/source/RNBRemote.h
The file was removedlldb/test/API/functionalities/darwin_log/filter/regex/activity-chain/TestDarwinLogFilterRegexActivityChain.py
The file was removedlldb/test/API/functionalities/darwin_log/filter/regex/category/main.c
The file was removedlldb/tools/debugserver/source/MacOSX/DarwinLog/LogFilterChain.h
The file was removedlldb/test/API/functionalities/darwin_log/filter/regex/category/Makefile
The file was removedlldb/tools/debugserver/source/MacOSX/DarwinLog/LogFilterChain.cpp
The file was removedlldb/tools/debugserver/source/MacOSX/DarwinLog/LogFilterRegex.h
The file was removedlldb/test/API/functionalities/darwin_log/source/info/Makefile
The file was removedlldb/tools/debugserver/source/MacOSX/DarwinLog/LogFilter.cpp
The file was removedlldb/tools/debugserver/source/MacOSX/DarwinLog/LogFilterExactMatch.cpp
The file was removedlldb/test/API/functionalities/darwin_log/filter/regex/activity-chain/main.c
The file was removedlldb/test/API/functionalities/darwin_log/filter/exact_match/activity-chain/TestDarwinLogFilterMatchActivityChain.py
The file was removedlldb/test/API/functionalities/darwin_log/filter/regex/activity-chain/Makefile
The file was removedlldb/tools/debugserver/source/MacOSX/DarwinLog/CMakeLists.txt
The file was modifiedlldb/packages/Python/lldbsuite/test/configuration.py
The file was removedlldb/test/API/functionalities/darwin_log/filter/regex/activity/main.c
The file was modifiedlldb/tools/debugserver/debugserver.xcodeproj/project.pbxproj
The file was removedlldb/test/API/functionalities/darwin_log/format/Makefile
The file was removedlldb/tools/debugserver/source/MacOSX/DarwinLog/DarwinLogInterfaces.h
The file was removedlldb/test/API/functionalities/darwin_log/filter/exact_match/message/main.c
The file was removedlldb/tools/debugserver/source/MacOSX/DarwinLog/LogMessageOsLog.h
The file was removedlldb/docs/design/structureddataplugins.md
The file was removedlldb/tools/debugserver/source/MacOSX/DarwinLog/LogMessage.h
The file was removedlldb/test/API/functionalities/darwin_log/filter/regex/message/main.c
The file was removedlldb/test/API/functionalities/darwin_log/filter/exact_match/message/TestDarwinLogFilterMatchMessage.py
The file was removedlldb/test/API/functionalities/darwin_log/filter/exact_match/subsystem/Makefile
The file was removedlldb/test/API/functionalities/darwin_log/format/TestDarwinLogMessageFormat.py
The file was removedlldb/tools/debugserver/source/MacOSX/DarwinLog/DarwinLogEvent.h
The file was modifiedlldb/tools/debugserver/source/RNBContext.h
The file was removedlldb/tools/debugserver/source/MacOSX/DarwinLog/LogMessageOsLog.cpp
The file was modifiedlldb/tools/debugserver/source/DNB.cpp
The file was removedlldb/test/API/functionalities/darwin_log/filter/regex/category/TestDarwinLogFilterRegexCategory.py
The file was removedlldb/test/API/functionalities/darwin_log/format/main.c
The file was removedlldb/tools/debugserver/source/MacOSX/DarwinLog/LogFilter.h
The file was removedlldb/test/API/functionalities/darwin_log/source/debug/Makefile
The file was modifiedlldb/tools/debugserver/source/RNBContext.cpp
The file was removedlldb/test/API/functionalities/darwin_log/source/debug/TestDarwinLogSourceDebug.py
The file was removedlldb/test/API/functionalities/darwin_log/source/debug/main.c
The file was removedlldb/tools/debugserver/source/MacOSX/DarwinLog/ActivityStore.cpp
The file was removedlldb/test/API/functionalities/darwin_log/filter/regex/activity/TestDarwinLogFilterRegexActivity.py
The file was removedlldb/test/API/functionalities/darwin_log/filter/exact_match/activity-chain/Makefile
The file was removedlldb/packages/Python/lldbsuite/test/darwin_log.py
The file was removedlldb/test/API/functionalities/darwin_log/filter/exact_match/activity/TestDarwinLogFilterMatchActivity.py
The file was removedlldb/test/API/functionalities/darwin_log/basic/main.c
The file was removedlldb/test/API/functionalities/darwin_log/categories
The file was removedlldb/test/API/functionalities/darwin_log/source/info/TestDarwinLogSourceInfo.py
The file was removedlldb/test/API/functionalities/darwin_log/filter/exact_match/activity-chain/main.c
The file was removedlldb/test/API/functionalities/darwin_log/common/darwin_log_common.h
The file was removedlldb/tools/debugserver/source/MacOSX/DarwinLog/ActivityStreamSPI.h
The file was removedlldb/test/API/functionalities/darwin_log/basic/Makefile
The file was removedlldb/test/API/functionalities/darwin_log/filter/exact_match/activity/Makefile
The file was removedlldb/test/API/functionalities/darwin_log/filter/regex/subsystem/main.c
The file was removedlldb/test/API/functionalities/darwin_log/source/info/main.c
The file was removedlldb/test/API/functionalities/darwin_log/filter/exact_match/message/Makefile
The file was removedlldb/tools/debugserver/source/MacOSX/DarwinLog/DarwinLogTypes.h
The file was removedlldb/tools/debugserver/source/MacOSX/DarwinLog/DarwinLogCollector.h
The file was removedlldb/test/API/functionalities/darwin_log/filter/exact_match/subsystem/TestDarwinLogFilterMatchSubsystem.py
The file was removedlldb/test/API/functionalities/darwin_log/filter/regex/message/TestDarwinLogFilterRegexMessage.py
The file was removedlldb/test/API/functionalities/darwin_log/filter/exact_match/activity/main.c
The file was removedlldb/test/API/functionalities/darwin_log/filter/exact_match/category/main.c
The file was removedlldb/test/API/functionalities/darwin_log/filter/regex/subsystem/TestDarwinLogFilterRegexSubsystem.py
The file was modifiedlldb/tools/debugserver/source/RNBRemote.cpp
Commit b4001ae8851f47406f8187b72b0253b21bf1da4c by chiahungduan
[mlir-tblgen] Fix failed matching when binds same operand of an op in different depth

For example, we will generate incorrect code for the pattern,

def : Pat<((FooOp (FooOp, $a, $b), $b)), (...)>;

We didn't allow $b to be bond twice with same operand of same op.

Reviewed By: jpienaar

Differential Revision: https://reviews.llvm.org/D105677
The file was modifiedmlir/lib/TableGen/Pattern.cpp
The file was modifiedmlir/test/mlir-tblgen/pattern.mlir
The file was modifiedmlir/test/lib/Dialect/Test/TestOps.td
The file was modifiedmlir/include/mlir/TableGen/Pattern.h
The file was modifiedmlir/tools/mlir-tblgen/RewriterGen.cpp
Commit 15af3aaa2e8a23745295d363977bf6abeb0cda23 by cullen.rhodes
[AArch64][SME] Add system registers and related instructions

This patch adds the new system registers introduced in SME:

  - ID_AA64SMFR0_EL1 (ro) SME feature identifier.
  - SMCR_ELx (r/w) streaming mode control register for configuring
    effective SVE Streaming SVE Vector length when the PE is in
    Streaming SVE mode.
  - SVCR (r/w) streaming vector control register, visible at all
    exception levels. Provides access to PSTATE.SM and PSTATE.ZA
    using MSR and MRS instructions.
  - SMPRI_EL1 (r/w) streaming mode execution priority register.
  - SMPRIMAP_EL2 (r/w) streaming mode priority mapping register.
  - SMIDR_EL1 (ro) streaming mode identification register.
  - TPIDR2_EL0 (r/w) for use by SME software to manage per-thread
    SME context.
  - MPAMSM_EL1 (r/w) MPAM (v8.4) streaming mode register, for
    labelling memory accesses performed in streaming mode.

Also added in this patch are the SME mode change instructions.
Three MSR immediate instructions are implemented to set or clear
PSTATE.SM, PSTATE.ZA, or both respectively:

  - MSR SVCRSM, #<imm1>
  - MSR SVCRZA, #<imm1>
  - MSR SVCRSMZA, #<imm1>

The following smstart/smstop aliases are also implemented for
convenience:

  smstart    -> MSR SVCRSMZA, #1
  smstart sm -> MSR SVCRSM,   #1
  smstart za -> MSR SVCRZA,   #1

  smstop     -> MSR SVCRSMZA, #0
  smstop sm  -> MSR SVCRSM,   #0
  smstop za  -> MSR SVCRZA,   #0

The reference can be found here:
https://developer.arm.com/documentation/ddi0602/2021-06

Reviewed By: david-arm

Differential Revision: https://reviews.llvm.org/D105576
The file was modifiedllvm/lib/Target/AArch64/MCTargetDesc/AArch64InstPrinter.h
The file was modifiedllvm/lib/Target/AArch64/Utils/AArch64BaseInfo.cpp
The file was modifiedllvm/lib/Target/AArch64/Disassembler/AArch64Disassembler.cpp
The file was modifiedllvm/lib/Target/AArch64/AArch64RegisterInfo.td
The file was modifiedllvm/lib/Target/AArch64/Utils/AArch64BaseInfo.h
The file was addedllvm/test/MC/AArch64/SME/smstart-diagnostics.s
The file was addedllvm/test/MC/AArch64/SME/smstart.s
The file was addedllvm/test/MC/AArch64/SME/system-regs-diagnostics.s
The file was modifiedllvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
The file was addedllvm/test/MC/AArch64/SME/smstop.s
The file was modifiedllvm/lib/Target/AArch64/AArch64SystemOperands.td
The file was addedllvm/test/MC/AArch64/SME/system-regs-mpam.s
The file was modifiedllvm/lib/Target/AArch64/MCTargetDesc/AArch64InstPrinter.cpp
The file was addedllvm/test/MC/AArch64/SME/system-regs.s
The file was modifiedllvm/lib/Target/AArch64/AArch64SMEInstrInfo.td
The file was addedllvm/test/MC/AArch64/SME/smstop-diagnostics.s
Commit aa09d1f9c91555b715481defc84cc96d80e52516 by benny.kra
[lldb] Remove unused variable. NFCI
The file was modifiedlldb/source/Target/Target.cpp
Commit eb1a5120b8d52ac3c33f404cf4c428c2de5f8a13 by sander.desmalen
[AArch64][SVE][InstCombine] last{a,b} of a splat vector

Replace last{a,b}(splat(X)) with X, irrespective of the predicate.

Patch by/Committing on behalf of: Usman Nadeem (mnadeem)

Reviewed By: sdesmalen

Differential Revision: https://reviews.llvm.org/D105520
The file was modifiedllvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
The file was modifiedllvm/test/Transforms/InstCombine/AArch64/sve-intrinsic-opts-lasta-lastb.ll
Commit e9c63ed10b3bdf6eb3fa76d1a3eb403d6fc6a118 by fmayer
[hwasan] Use stack safety analysis.

This avoids unnecessary instrumentation.

Reviewed By: eugenis, vitalybuka

Differential Revision: https://reviews.llvm.org/D105703
The file was modifiedclang/lib/CodeGen/BackendUtil.cpp
The file was addedclang/test/CodeGen/hwasan-stack-safety-analysis.c
The file was modifiedllvm/include/llvm/Transforms/Instrumentation/HWAddressSanitizer.h
The file was addedllvm/test/Instrumentation/HWAddressSanitizer/stack-safety-analysis.ll
The file was modifiedllvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
Commit f3f287f0f605f3e47bbf90aeb7077f42e31a6bc8 by fmayer
[hwasan] [NFC] copy and disable ASAN tests to hwasan.

Reviewed By: vitalybuka

Differential Revision: https://reviews.llvm.org/D106159
The file was addedcompiler-rt/test/hwasan/TestCases/use-after-scope-goto.cpp
The file was addedcompiler-rt/test/hwasan/TestCases/use-after-scope-loop-bug.cpp
The file was addedcompiler-rt/test/hwasan/TestCases/use-after-scope-loop.cpp
The file was addedcompiler-rt/test/hwasan/TestCases/use-after-scope-temp2.cpp
The file was addedcompiler-rt/test/hwasan/TestCases/use-after-scope-loop-removed.cpp
The file was addedcompiler-rt/test/hwasan/TestCases/use-after-scope-temp.cpp
The file was addedcompiler-rt/test/hwasan/TestCases/use-after-scope-inlined.cpp
The file was addedcompiler-rt/test/hwasan/TestCases/use-after-scope-dtor-order.cpp
The file was addedcompiler-rt/test/hwasan/TestCases/use-after-scope-capture.cpp
The file was addedcompiler-rt/test/hwasan/TestCases/use-after-scope-if.cpp
The file was addedcompiler-rt/test/hwasan/TestCases/use-after-scope-types.cpp
The file was addedcompiler-rt/test/hwasan/TestCases/use-after-scope.cpp
The file was addedcompiler-rt/test/hwasan/TestCases/use-after-scope-nobug.cpp
Commit 1453f048cf9275ac329b5beb243c3c0986144143 by lkail
[PowerPC] Add lit.local.cfg in AtomicExpand tests

Fixed build errors on other platforms.
The file was addedllvm/test/Transforms/AtomicExpand/PowerPC/lit.local.cfg
Commit 98687aa0d61b11b102acbfd7d2dab0ad1c54d91e by fmayer
[NFC] run clang-format on hwasan use-after-scope tests.

Reviewed By: vitalybuka

Differential Revision: https://reviews.llvm.org/D106259
The file was modifiedcompiler-rt/test/hwasan/TestCases/use-after-scope-loop-bug.cpp
The file was modifiedcompiler-rt/test/hwasan/TestCases/use-after-scope-capture.cpp
The file was modifiedcompiler-rt/test/hwasan/TestCases/use-after-scope-dtor-order.cpp
The file was modifiedcompiler-rt/test/hwasan/TestCases/use-after-scope-goto.cpp
The file was modifiedcompiler-rt/test/hwasan/TestCases/use-after-scope-temp.cpp
The file was modifiedcompiler-rt/test/hwasan/TestCases/use-after-scope-temp2.cpp
The file was modifiedcompiler-rt/test/hwasan/TestCases/use-after-scope-if.cpp
The file was modifiedcompiler-rt/test/hwasan/TestCases/use-after-scope-types.cpp
The file was modifiedcompiler-rt/test/hwasan/TestCases/use-after-scope-inlined.cpp
The file was modifiedcompiler-rt/test/hwasan/TestCases/use-after-scope-loop.cpp
The file was modifiedcompiler-rt/test/hwasan/TestCases/use-after-scope-loop-removed.cpp
The file was modifiedcompiler-rt/test/hwasan/TestCases/use-after-scope.cpp
Commit 63fd109d3aa6db48e38e1c78f6084ad257f2c37d by Jan Svoboda
[clang][deps] Normalize ignored filenames in minimizing file system

This patch normalizes filenames in `DependencyScanningWorkerFilesystem` so that lookup of ignored files works correctly on Windows (where `/` and `\` are equivalent).

Reviewed By: dexonsmith

Differential Revision: https://reviews.llvm.org/D106064
The file was modifiedclang/include/clang/Tooling/DependencyScanning/DependencyScanningFilesystem.h
The file was modifiedclang/lib/Tooling/DependencyScanning/DependencyScanningWorker.cpp
The file was modifiedclang/lib/Tooling/DependencyScanning/DependencyScanningFilesystem.cpp
Commit 5f08219322456b867605e4a19003f58ee418758f by fmayer
Revert "[hwasan] Use stack safety analysis."

This reverts commit e9c63ed10b3bdf6eb3fa76d1a3eb403d6fc6a118.
The file was modifiedllvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
The file was removedllvm/test/Instrumentation/HWAddressSanitizer/stack-safety-analysis.ll
The file was modifiedclang/lib/CodeGen/BackendUtil.cpp
The file was modifiedllvm/include/llvm/Transforms/Instrumentation/HWAddressSanitizer.h
The file was removedclang/test/CodeGen/hwasan-stack-safety-analysis.c
Commit 43234b1595125ba2b5c23e7b28f5a67041c77673 by dawid_jurek
[DSE] Transform memset + malloc --> calloc (PR25892)

After this change DSE can eliminate malloc + memset and emit calloc.
It's https://reviews.llvm.org/D101440 follow-up.

Differential Revision: https://reviews.llvm.org/D103009
The file was modifiedllvm/lib/Transforms/Scalar/DeadStoreElimination.cpp
The file was modifiedllvm/test/Transforms/DeadStoreElimination/noop-stores.ll
Commit 9dc26366230447179ce28ba503b66767373124ec by Stanislav.Mekhanoshin
[AMDGPU] Disable LDS lowering for GFX shaders

Apparently these need external LDS symbols to remain.

Fixes: SC1-3279

Differential Revision: https://reviews.llvm.org/D106288
The file was modifiedllvm/lib/Target/AMDGPU/AMDGPULowerModuleLDSPass.cpp
The file was modifiedllvm/test/CodeGen/AMDGPU/lower-kernel-lds.ll
Commit bc1a2979fc70d954ae97122205c71c8404a1b17e by Jan Svoboda
[clang][deps] Separate filesystem caches for minimized and original files

This patch separates the local and global caches of `DependencyScanningFilesystem` into two buckets: minimized files and original files. This is necessary to deal with precompiled modules/headers.

Consider a single worker with its instance of filesystem:
1. Build system uses the worker to scan dependencies of module A => filesystem cache gets populated with minimized input files.
2. Build system uses the results to explicitly build module A => explicitly built module captures the state of the real filesystem (containing non-minimized input files).
3. Build system uses the prebuilt module A as an explicit precompiled dependency for another compile job B.
4. Build system uses the same worker to scan dependencies for job B => worker uses implicit modular build to discover dependencies, which validates the filesystem state embedded in the prebuilt module (non-minimized files) to the current view of the filesystem (minimized files), resulting in validation failures.

This problem can be avoided in step 4 by collecting input files from the precompiled module and marking them as "ignored" in the minimizing filesystem. This way, the validation should succeed, since we should be always dealing with the original (non-minized) input files. However, the filesystem already minimized the input files in step 1 and put it in the cache, which gets used in step 4 as well even though it's marked ignored (do not minimize). This patch essentially fixes this oversight by making the `"file is minimized"` part of the cache key (from high level).

Depends on D106064.

Reviewed By: dexonsmith

Differential Revision: https://reviews.llvm.org/D106146
The file was modifiedclang/unittests/Tooling/CMakeLists.txt
The file was modifiedclang/include/clang/Tooling/DependencyScanning/DependencyScanningFilesystem.h
The file was modifiedclang/unittests/Tooling/DependencyScannerTest.cpp
The file was modifiedclang/lib/Tooling/DependencyScanning/DependencyScanningFilesystem.cpp
Commit e564fd93ab85d1810e0d83e961ccc8b99025ff34 by Jan Svoboda
[clang][deps] Avoid minimizing PCH input files

This patch avoid minimizing input files that contributed to a PCH or its modules. This prevents the implicit modular build to fail on unexpected file size. Depends on D106146.

Reviewed By: dexonsmith

Differential Revision: https://reviews.llvm.org/D104536
The file was modifiedclang/test/ClangScanDeps/modules-pch.c
The file was modifiedclang/lib/Tooling/DependencyScanning/DependencyScanningWorker.cpp
Commit fe8b26199b1a662db4dc71bd42979cb90a2c93ad by czhengsz
[PowerPC][NFC] add more cases for lfiwzx/lfiwax
The file was modifiedllvm/test/CodeGen/PowerPC/load-and-splat.ll
Commit 9ced84de0916ca521c6bbf888db9db9b26e487d0 by thakis
[gn build] (manually) port bc1a2979fc70
The file was modifiedllvm/utils/gn/secondary/clang/unittests/Tooling/BUILD.gn
Commit 241f3e386cd2ce176ac32a957732664ad69b6144 by jeremy.morse
[DebugInfo][InstrRef] Fix a broken substitution method, add test coverage

This patch fixes a clearly-broken function that I absent-mindedly bodged
many months ago.

Over in D85749 I landed the substituteDebugValuesForInst, that creates
substitution records for all the def operands from one debug-labelled
instruction to the new one. Unfortunately it would crash if the two
instructions had different numbers of operands; I tried to fix this in
537f0fbe82 by adding a "max operand" parameter to the method, but then
didn't actually change the loop bound to take account of this. It passed
all the tests because.... well there wasn't any real test coverage of this
method.

This patch fixes up the loop to be bounded by the MaxOperand bound; and
adds test coverage for the x86-fixup-LEAs calls to this method, so that
it's actually tested.

Differential Revision: https://reviews.llvm.org/D105820
The file was addedllvm/test/DebugInfo/MIR/InstrRef/x86-lea-fixup-2.mir
The file was addedllvm/test/DebugInfo/MIR/InstrRef/x86-lea-fixup.mir
The file was modifiedllvm/lib/CodeGen/MachineFunction.cpp
Commit 0821c8824bc11162b0f62c6cf5b48ae972803ab4 by jay.foad
[AMDGPU] Pre-commit test case for D106284

This test case shows the scheduler wrongly reordering two buffer
accesses that might alias.
The file was modifiedllvm/test/CodeGen/AMDGPU/buffer-schedule.ll
Commit c94a345a5c693b6c12a41e8f50e3fe96d1311991 by Jan Svoboda
[clang][deps] Fix test by checking ignored files correctly

After a rebase, bc1a2979fc70d954ae97122205c71c8404a1b17e accidentally changed `shouldIgnoreFile(Filename)` to incorrect `IgnoredFiles.count(Filename)`. This avoided using native filenames, which the patch intended to solve in the first place.

Failing Windows builds:
* https://lab.llvm.org/buildbot#builders/123/builds/5147
* https://lab.llvm.org/buildbot#builders/86/builds/17177
The file was modifiedclang/lib/Tooling/DependencyScanning/DependencyScanningFilesystem.cpp
Commit 669275f8a0fc85d9b352d91bbf4f4ee1886f96b1 by tbaeder
[llvm][tools] Hide more unrelated tool options

Differential Revision: https://reviews.llvm.org/D106271
The file was addedllvm/test/tools/llvm-dis/help.test
The file was modifiedllvm/tools/llvm-dis/llvm-dis.cpp
The file was modifiedllvm/tools/llvm-dwp/llvm-dwp.cpp
The file was addedllvm/test/tools/llvm-cxxmap/help.test
The file was modifiedllvm/tools/llvm-cxxmap/llvm-cxxmap.cpp
The file was modifiedllvm/tools/llvm-ifs/llvm-ifs.cpp
The file was modifiedllvm/tools/llvm-cxxdump/llvm-cxxdump.cpp
The file was addedllvm/test/tools/llvm-dwp/help.test
The file was addedllvm/test/tools/llvm-diff/help.test
The file was modifiedllvm/tools/llvm-diff/llvm-diff.cpp
The file was addedllvm/test/tools/llvm-cxxdump/help.test
The file was addedllvm/test/tools/llvm-ifs/help.test
Commit e04c05e8230e383493774cb3636587d3c0b5f288 by ulrich.weigand
[SystemZ] Fix invalid assumption in getCPUNameFromS390Model

Code in getCPUNameFromS390Model currently assumes that the
numerical value of the model number always increases with
future hardware.  While this has happened to be the case
with the last few machines, it is not guaranteed -- that
assumption was violated with (much) older machines, and
it can be violated again with future machines.

Fix by explicitly listing model numbers for all supported
machine models.
The file was modifiedllvm/lib/Support/Host.cpp
The file was modifiedllvm/unittests/Support/Host.cpp
Commit 2b08f6af62afbf32e89a6a392dbafa92c62f7bdf by sebastian.neubauer
[AMDGPU] Improve register computation for indirect calls

First, collect the register usage in each function, then apply the
maximum register usage of all functions to functions with indirect
calls.

This is more accurate than guessing the maximum register usage without
looking at the actual usage.

As before, assume that indirect calls will hit a function in the
current module.

Differential Revision: https://reviews.llvm.org/D105839
The file was modifiedllvm/test/CodeGen/AMDGPU/llc-pipeline.ll
The file was modifiedllvm/test/CodeGen/AMDGPU/agpr-register-count.ll
The file was modifiedllvm/test/CodeGen/AMDGPU/amdpal-callable.ll
The file was modifiedllvm/lib/Target/AMDGPU/CMakeLists.txt
The file was modifiedllvm/test/CodeGen/AMDGPU/call-graph-register-usage.ll
The file was modifiedllvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.h
The file was addedllvm/lib/Target/AMDGPU/AMDGPUResourceUsageAnalysis.h
The file was modifiedllvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
The file was addedllvm/lib/Target/AMDGPU/AMDGPUResourceUsageAnalysis.cpp
The file was modifiedllvm/lib/Target/AMDGPU/AMDGPU.h
The file was modifiedllvm/test/CodeGen/AMDGPU/indirect-call.ll
The file was modifiedllvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
Commit 978c5d8d2a785f085efac49c59fe9c129beb9363 by llvmgnsyncbot
[gn build] Port 2b08f6af62af
The file was modifiedllvm/utils/gn/secondary/llvm/lib/Target/AMDGPU/BUILD.gn
Commit 419001724542d4b0d3423a71f0d42857af6a6227 by sam.mccall
[clangd] Add tests covering existing header-guard behavior. NFC

A few different mechanisms here that will need some work to untangle:
- self-include in a preamble being an error even if the file is ifdef-guarded
- the is-include-guarded flag not being propagated from preamble to main ast
- preambles containing the first half on an include guard discard that info

For now just record current behavior.

Relevant to:
- https://github.com/clangd/clangd/issues/811
- https://github.com/clangd/clangd/issues/377
- https://github.com/clangd/clangd/issues/262

Differential Revision: https://reviews.llvm.org/D106201
The file was modifiedclang-tools-extra/clangd/unittests/ParsedASTTests.cpp
Commit 69c04ef95a3529614b694d7e2fd57ee817076e86 by sam.mccall
[clangd] Propagate header-guarded flag from preamble to main AST

Fixes https://github.com/clangd/clangd/issues/377

Differential Revision: https://reviews.llvm.org/D106203
The file was modifiedclang-tools-extra/clangd/Preamble.h
The file was modifiedclang-tools-extra/clangd/Preamble.cpp
The file was modifiedclang-tools-extra/clangd/unittests/ParsedASTTests.cpp
The file was modifiedclang-tools-extra/clangd/ParsedAST.cpp
Commit eb03fa1d2c05bad5a5f75a89d47b4b31d84bb90b by hokein.wu
[clang-tidy] Don't suggest "inline" fix for main function in
definitions-in-headers check.
The file was modifiedclang-tools-extra/test/clang-tidy/checkers/misc-definitions-in-headers.hpp
The file was modifiedclang-tools-extra/clang-tidy/misc/DefinitionsInHeadersCheck.cpp
Commit fd2278505482bd9db21423b0620be6afe04feb60 by sam.mccall
[Lex] Consider a PCH header-guarded even with #endif truncated

This seems to be a more useful behavior for tools that use preambles.
I believe it doesn't affect real compiles: the PCH is only included once
when used, and recursive inclusion of the main-file *within* the PCH
isn't supported in any case.

Differential Revision: https://reviews.llvm.org/D106204
The file was modifiedclang-tools-extra/clangd/unittests/ParsedASTTests.cpp
The file was modifiedclang/lib/Lex/Lexer.cpp
Commit e7accb75bee33d1d1e216e91580a3ca318019bed by llvm-dev
[MIPS][MSA] Regenerate basic operations test checks

Cleanup the check prefixes to make refresh a lot easier
The file was modifiedllvm/test/CodeGen/Mips/msa/basic_operations.ll
Commit c188f0b8766f70289f0480bc03abee33357c80f7 by llvm-dev
[X86] X86InstCombineIntrinsic.cpp - silence clang-tidy warnings about incorrect uses of auto. NFCI.

We were using auto instead of auto* in a number of places which failed the llvm-qualified-auto check.

Additionally we were using auto in some places where the type wasn't immediately obvious - the style guide rule of thumb is only to use auto from casts etc. where the type is already explicitly stated.
The file was modifiedllvm/lib/Target/X86/X86InstCombineIntrinsic.cpp
Commit 3396377743939f35856b2ee4ac47d64270e822f1 by gysit
[linalg] Add TensorDimOp to list of ops known by bufferization.

Bufferization handles all unknown ops conservative. The patch ensures accessing the dimension of an output tensor does not prevent in place bufferization.

Reviewed By: nicolasvasilache

Differential Revision: https://reviews.llvm.org/D106356
The file was modifiedmlir/test/Dialect/Linalg/comprehensive-module-bufferize.mlir
The file was modifiedmlir/lib/Dialect/Linalg/Transforms/ComprehensiveBufferize.cpp
Commit ec2bdf86f088543dc3348368b6b944981eb83df4 by Louis Dionne
[libc++][NFC] Add missing commits to the ABI changelog
The file was modifiedlibcxx/lib/abi/CHANGELOG.TXT
Commit ee072e20f594f1884b16516166d64d17f577f19a by david.green
[AArch64] Regenerate some tests checks. NFC
The file was modifiedllvm/test/CodeGen/AArch64/bf16-vector-shuffle.ll
The file was modifiedllvm/test/CodeGen/AArch64/fp16-vector-bitcast.ll
The file was modifiedllvm/test/CodeGen/AArch64/bf16-vector-bitcast.ll
Commit 3d25fa21d0c77894e5d297073e61a8e6a20be6e5 by stellaraccident
Exclude pybind11 2.7.0 from MLIR python requirements.

Appears to have a broken CMake installation. Reported bug: https://github.com/pybind/pybind11/issues/3136
The file was modifiedmlir/python/requirements.txt
Commit 02cd937945f8f044aa52b7967531be2b77b27431 by stefanp
[PowerPC][Builtins] Added a number of builtins for compatibility with XL.

Added a number of different builtins that exist in the XL compiler. Most of
these builtins already exist in clang under a different name.

Reviewed By: nemanjai, #powerpc

Differential Revision: https://reviews.llvm.org/D104386
The file was addedclang/test/CodeGen/builtins-ppc-xlcompat-cmplx.c
The file was addedclang/test/CodeGen/builtins-ppc-xlcompat-macros.c
The file was modifiedclang/test/CodeGen/builtins-ppc-xlcompat-rotate.c
The file was modifiedclang/lib/Basic/Targets/PPC.cpp
The file was addedclang/test/CodeGen/builtins-ppc-xlcompat-darn.c
The file was addedclang/test/CodeGen/builtins-ppc-xlcompat-expect.c
The file was modifiedclang/lib/Sema/SemaChecking.cpp
The file was modifiedclang/test/CodeGen/builtins-ppc-xlcompat-popcnt.c
The file was modifiedclang/test/CodeGen/builtins-ppc-xlcompat-error.c
The file was modifiedclang/lib/CodeGen/CGBuiltin.cpp
The file was modifiedclang/include/clang/Basic/BuiltinsPPC.def
The file was addedclang/test/CodeGen/builtins-ppc-xlcompat-cipher.c
Commit 9cb00b9ecbe74d19389a5818d61ddee328afe031 by schmeise
Reland Produce warning for performing pointer arithmetic on a null pointer.

Summary:
Test and produce warning for subtracting a pointer from null or subtracting
null from a pointer.

This reland adds the functionality that the warning is no longer reusing an
existing warning, it has different wording for C vs C++ to refect the fact
that nullptr-nullptr has defined behaviour in C++,  it is suppressed
when the warning is triggered by a system header and adds
-Wnull-pointer-subtraction to allow the warning to be controlled.  -Wextra
implies -Wnull-pointer-subtraction.

Author: Jamie Schmeiser <schmeise@ca.ibm.com>
Reviewed By: efriedma (Eli Friedman), nickdesaulniers (Nick Desaulniers)
Differential Revision: https://reviews.llvm.org/D98798
The file was modifiedclang/include/clang/Basic/DiagnosticGroups.td
The file was addedclang/test/Sema/pointer-subtraction.cpp
The file was addedclang/test/Sema/Inputs/pointer-subtraction.h
The file was addedclang/test/Sema/pointer-subtraction.c
The file was modifiedclang/docs/ReleaseNotes.rst
The file was modifiedclang/lib/Sema/SemaExpr.cpp
The file was modifiedclang/include/clang/Basic/DiagnosticSemaKinds.td
Commit ce5abfafb529d3af815a6b9ad7da91083fcd2dcb by thakis
[gn build] remove stray character in a comment
The file was modifiedllvm/utils/gn/build/BUILD.gn
Commit d2a73fb44ea0b8c981e4b923f811f18793fc4770 by flo
[VPlan] Add recipe for first-order rec phis, make splicing explicit.

This patch adds a VPFirstOrderRecurrencePHIRecipe, to further untangle
VPWidenPHIRecipe into distinct recipes for distinct use cases/lowering.
See D104989 for a new recipe for reduction phis.

This patch also introduces a new `FirstOrderRecurrenceSplice`
VPInstruction opcode, which is used to make the forming of the vector
recurrence value explicit in VPlan. This more accurately models def-uses
in VPlan and also simplifies code-generation. Now, the vector recurrence
values are created at the right place during VPlan-codegeneration,
rather than during post-VPlan fixups.

Reviewed By: Ayal

Differential Revision: https://reviews.llvm.org/D105008
The file was modifiedllvm/lib/Transforms/Vectorize/VPlan.h
The file was modifiedllvm/lib/Transforms/Vectorize/VPlanValue.h
The file was modifiedllvm/test/Transforms/LoopVectorize/first-order-recurrence-complex.ll
The file was modifiedllvm/test/Transforms/LoopVectorize/first-order-recurrence-sink-replicate-region.ll
The file was modifiedllvm/lib/Transforms/Vectorize/VPlan.cpp
The file was modifiedllvm/test/Transforms/LoopVectorize/scalable-first-order-recurrence.ll
The file was modifiedllvm/test/Transforms/LoopVectorize/induction.ll
The file was modifiedllvm/test/Transforms/LoopVectorize/vplan-sink-scalars-and-merge.ll
The file was modifiedllvm/lib/Transforms/Vectorize/LoopVectorize.cpp
The file was modifiedllvm/test/Transforms/LoopVectorize/first-order-recurrence.ll
The file was modifiedllvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
The file was modifiedllvm/test/Transforms/LoopVectorize/interleaved-accesses.ll
Commit 82834a673246f27a541ffcc57e0eb65b008102ef by flo
[VPlan] Fix formatting glitch from d2a73fb44ea0b8.
The file was modifiedllvm/lib/Transforms/Vectorize/VPlan.h
Commit 191f9fa5d2af2b01aa23a591e780a1c36a014a89 by bradley.smith
[AArch64][SVE] Move instcombine like transforms out of SVEIntrinsicOpts

Instead move them to the instcombine that happens in AArch64TargetTransformInfo.

Differential Revision: https://reviews.llvm.org/D106144
The file was removedllvm/test/CodeGen/AArch64/sve-mul-idempotency.ll
The file was addedllvm/test/Transforms/InstCombine/AArch64/sve-intrinsic-fmul-idempotency.ll
The file was addedllvm/test/Transforms/InstCombine/AArch64/sve-intrinsic-tbl-dupx.ll
The file was addedllvm/test/Transforms/InstCombine/AArch64/sve-intrinsics-ptest.ll
The file was removedllvm/test/CodeGen/AArch64/sve-fmul-idempotency.ll
The file was modifiedllvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
The file was addedllvm/test/Transforms/InstCombine/AArch64/sve-intrinsic-mul-idempotency.ll
The file was removedllvm/test/CodeGen/AArch64/sve-tbl-dupx.ll
The file was removedllvm/test/CodeGen/AArch64/sve-intrinsic-opts-ptest.ll
The file was modifiedllvm/lib/Target/AArch64/SVEIntrinsicOpts.cpp
Commit d62bbbebbf709b1eaebaace62c58e759cbd32005 by johannes
[Attributor] Initialize effectively unused value to appease UBSAN
The file was modifiedllvm/lib/Transforms/IPO/AttributorAttributes.cpp
Commit 4ffc3c3726e9fd2fd1be80983d7f0fbbf5a7572c by llvm-dev
[CostModel] Templatize EntryCost::Cost to allow custom cost metrics

We currently use an unsigned value for our CostTblEntry and TypeConversionCostTblEntry cost tables which is limiting depending on how the target wishes to handle various CostKinds etc.

For instance, targets might wish to store separate instruction count, latency or throughput values etc. On D46276 we have been investigating storing a code snippet to improve latency/throughput cost calculations.

There is a slight problem in that template argument deduction was struggling to match the now templatized Costs[] tables in a ArrayRef constructor - I've added helper wrappers for CostTableLookup/ConvertCostTableLookup which avoids us having to update all existing calls with a template hint.

Differential Revision: https://reviews.llvm.org/D106351
The file was modifiedllvm/include/llvm/CodeGen/CostTable.h
Commit fd855c24c72ce01573d726317acaaefc9809d9dc by kamau.bridgeman
[PowerPC] Restore FastMathFlags of Builder for Vector FDiv Builtins

This patch fixes `__builtin_ppc_recipdivf`, `__builtin_ppc_recipdivd`,
`__builtin_ppc_rsqrtf`, and `__builtin_ppc_rsqrtd`. FastMathFlags are
set to fast immediately before emitting these builtins. Now the flags
are restored to their previous values after the builtins are emitted.

Reviewed By: nemanjai, #powerpc

Differential Revision: https://reviews.llvm.org/D105984
The file was modifiedclang/lib/CodeGen/CGBuiltin.cpp
The file was addedclang/test/CodeGen/builtins-ppc-fastmath.c
Commit 0977f31cecf8aa4ad1be72748179f4d6a902daf4 by anirudh_prasad
[SystemZ][z/OS] Add GOFF support to file magic identification

- This patch adds in the GOFF format to the file magic identification logic in LLVM
- Currently, for the object file support, GOFF is marked as having as an error
- However, this is only temporary until https://reviews.llvm.org/D98437 is merged in

Reviewed By: abhina.sreeskantharajan

Differential Revision: https://reviews.llvm.org/D105993
The file was modifiedllvm/unittests/BinaryFormat/TestFileMagic.cpp
The file was modifiedllvm/lib/Object/Binary.cpp
The file was modifiedllvm/lib/Object/SymbolicFile.cpp
The file was modifiedllvm/lib/Object/ObjectFile.cpp
The file was modifiedllvm/include/llvm/BinaryFormat/Magic.h
The file was modifiedllvm/lib/BinaryFormat/Magic.cpp
Commit cf78995c4a1a608875a5ecf666067a9afb3e1274 by caroline.concatto
[NFC][LoopVectorizer] Remove VF.isScalable() assertion from collectInstsToScalarize and getInstructionCost

This patch removes the assertion when VF is scalable and replaces
getKnownMinValue() by getFixedValue(),  so it still guards the code against
scalable vector types.
The assertions were used to guarantee that getknownMinValue were not used for
scalable vectors.

Differential Revision: https://reviews.llvm.org/D106359
The file was modifiedllvm/lib/Transforms/Vectorize/LoopVectorize.cpp
Commit ea864c9933021030e33411da79b5155a78b33325 by melanie.blower
[clang][patch][NFC] Refactor calculation of FunctionDecl to avoid duplicate code
The file was modifiedclang/lib/CodeGen/CodeGenFunction.cpp
Commit 53e5a60fd53df755f6342c23791c8bb6cd6ec47e by jurahul
[NFC] Fix some comments and only look at terminators when looking for ReturnLike ops

Differential Revision: https://reviews.llvm.org/D106326
The file was modifiedmlir/include/mlir/Analysis/BufferViewFlowAnalysis.h
The file was modifiedmlir/lib/Analysis/BufferViewFlowAnalysis.cpp
Commit 4a30a5c8d9f0fa8a4b6ebd7c82d5335ae7a77521 by kazu
[SampleProfile] Remove ProfileIsValid (NFC)

The last use was removed on Jan 22, 2021 in commit
c9cd9a006632419ce7346e50564e6347a93181cc.
The file was modifiedllvm/lib/Transforms/IPO/SampleProfile.cpp
Commit 1a29403d2f8a0d74effcee6ab3d29d361fe97276 by zoecarver
[libcxx][ranges] Add common_iterator.

Differential Revision: https://reviews.llvm.org/D103335
The file was addedlibcxx/include/__iterator/common_iterator.h
The file was addedlibcxx/test/std/iterators/predef.iterators/iterators.common/assign.pass.cpp
The file was addedlibcxx/test/std/iterators/predef.iterators/iterators.common/types.h
The file was modifiedlibcxx/include/CMakeLists.txt
The file was addedlibcxx/test/std/iterators/predef.iterators/iterators.common/arrow.pass.cpp
The file was addedlibcxx/test/std/iterators/predef.iterators/iterators.common/iter_move.pass.cpp
The file was modifiedlibcxx/include/iterator
The file was addedlibcxx/test/std/iterators/predef.iterators/iterators.common/ctor.pass.cpp
The file was addedlibcxx/test/std/iterators/predef.iterators/iterators.common/plus_plus.pass.cpp
The file was modifiedlibcxx/docs/Status/RangesPaper.csv
The file was addedlibcxx/test/std/iterators/predef.iterators/iterators.common/eq.pass.cpp
The file was modifiedlibcxx/test/support/test_iterators.h
The file was modifiedlibcxx/include/module.modulemap
The file was modifiedlibcxx/include/variant
The file was addedlibcxx/test/std/iterators/predef.iterators/iterators.common/deref.pass.cpp
The file was addedlibcxx/test/std/iterators/predef.iterators/iterators.common/iterator_traits.compile.pass.cpp
The file was addedlibcxx/test/std/iterators/predef.iterators/iterators.common/iter_swap.pass.cpp
The file was addedlibcxx/test/std/iterators/predef.iterators/iterators.common/minus.pass.cpp
Commit 7cefcd9230ef70a96bb85e0c29eb573de14e2e14 by llvmgnsyncbot
[gn build] Port 1a29403d2f8a
The file was modifiedllvm/utils/gn/secondary/libcxx/include/BUILD.gn
Commit 2f5b2ea6cd854edfa2722ae0b5acf604a333e785 by jdenny.ornl
[UpdateCCTestChecks] Implement --global-value-regex

`--check-globals` activates checks for all global values, and
`--global-value-regex` filters them.  For example, I'd like to use it
in OpenMP offload codegen tests to check only global variables like
`.offload_maptypes*`.

Reviewed By: jdoerfert

Differential Revision: https://reviews.llvm.org/D104742
The file was addedclang/test/utils/update_cc_test_checks/Inputs/global-value-regex.c.expected
The file was addedclang/test/utils/update_cc_test_checks/global-value-regex.test
The file was addedclang/test/utils/update_cc_test_checks/Inputs/global-value-regex.c
The file was modifiedllvm/utils/UpdateTestChecks/common.py
Commit 5b0a948a81e695f044e88659be18a28256b1e309 by jdenny.ornl
[UpdateCCTestChecks] Implement --global-hex-value-regex

For example, in OpenMP offload codegen tests, global variables like
`.offload_maptypes*` are much easier to read in hex.

Reviewed By: jdoerfert

Differential Revision: https://reviews.llvm.org/D104743
The file was addedclang/test/utils/update_cc_test_checks/global-hex-value-regex.test
The file was addedclang/test/utils/update_cc_test_checks/Inputs/global-hex-value-regex.c
The file was addedclang/test/utils/update_cc_test_checks/Inputs/global-hex-value-regex.c.expected
The file was modifiedllvm/utils/UpdateTestChecks/common.py
Commit 57de4ac12139f437570105288948bc2707d00401 by gcmn
[Bazel] Update for bc1a2979fc

Update Bazel build configuration for
https://github.com/llvm/llvm-project/commit/bc1a2979fc70
by adding missing dep to clang tooling unit tests.
The file was modifiedutils/bazel/llvm-project-overlay/clang/unittests/BUILD.bazel
The file was modifiedutils/bazel/llvm-project-overlay/clang/BUILD.bazel
Commit 4272e64acd6cc1abfae45ab3458915f52bd3c4e9 by david.green
[LV] Change interface of getReductionPatternCost to return Optional

Currently the Instruction cost of getReductionPatternCost returns an
Invalid cost to specify "did not find the pattern". This changes that to
return an Optional with None specifying not found, allowing Invalid to
mean an infinite cost as is used elsewhere.

Differential Revision: https://reviews.llvm.org/D106140
The file was modifiedllvm/lib/Transforms/Vectorize/LoopVectorize.cpp
Commit 84877a098ab065ca2e3775ea4c69b22cae0403b1 by craig.topper
[RISCV] Use unordered indexed loads for MGATHER.

I don't think the semantics of the llvm masked gather intrinsic care
about the order the elements are loaded. For example, type legalization
by splitting will chain them in parallel. This is different than
scatter which we do chain in order.

Reviewed By: frasercrmck

Differential Revision: https://reviews.llvm.org/D106025
The file was modifiedllvm/test/CodeGen/RISCV/rvv/mgather-sdnode.ll
The file was modifiedllvm/lib/Target/RISCV/RISCVISelLowering.cpp
The file was modifiedllvm/test/CodeGen/RISCV/rvv/fixed-vectors-masked-gather.ll
Commit bbbc4f110e35ac709b943efaa1c4c99ec073da30 by saugustine
Avoid keeping internal string_views in Twine.

This is a follow-up to https://reviews.llvm.org/D103935

A Twine's internal layout should not depend on which version of the
C++ standard is in use. Dynamically linking binaries compiled with two
different layouts (eg, --std=c++14 vs --std=c++17) ends up
problematic.

This change avoids that issue by immediately converting a
string_view to a pointer-and-length at the cost of an extra eight-bytes
in Twine.

Differential Revision: https://reviews.llvm.org/D106186
The file was modifiedllvm/include/llvm/ADT/Twine.h
The file was modifiedllvm/lib/Support/Twine.cpp
The file was modifiedllvm/unittests/ADT/TwineTest.cpp
Commit 1a6dc92be7d68611077f0fb0b723b361817c950c by stefanp
[PowerPC] Inefficient register allocation of ACC registers results in many copies.

ACC registers are a combination of four consecutive vector registers.
If the vector registers are assigned first this often forces a number
of copies to appear just before the ACC register is created. If the ACC
register is assigned first then fewer copies are generated when the vector
registers are assigned.

This patch tries to force the register allocator to assign the ACC registers first
and then the UACC registers and then the vector pair registers. It does this
by changing the priority of the register classes.

This patch also adds hints to help the register allocator assign UACC registers from
known ACC registers and vector pair registers from known UACC registers.

Reviewed By: nemanjai

Differential Revision: https://reviews.llvm.org/D105854
The file was modifiedllvm/lib/Target/PowerPC/PPCRegisterInfo.h
The file was modifiedllvm/lib/Target/PowerPC/PPCRegisterInfo.td
The file was modifiedllvm/test/CodeGen/PowerPC/ppc64-acc-regalloc.ll
The file was modifiedllvm/lib/CodeGen/RegAllocGreedy.cpp
The file was modifiedllvm/include/llvm/CodeGen/TargetRegisterInfo.h
The file was modifiedllvm/test/CodeGen/PowerPC/more-dq-form-prepare.ll
The file was modifiedllvm/test/CodeGen/PowerPC/mma-outer-product.ll
The file was modifiedllvm/lib/Target/PowerPC/PPCRegisterInfo.cpp
Commit 98d4adc2d1c12d034616557f3ab55ce88ecf569b by craig.topper
[RISCV] Add custom isel to select (and (srl X, C1), C2) and (and (shl X, C1), C2)

Replace some existing isel patterns that are covered by the new
code. SLLIUWPat has been removed in favor of folding its root case
into the new code. The other uses in isel patterns for shXadd.uw
have been switched to using hardcoded AND masks.

This is based on the original version of D49585 from ARM. The final
version of that was made a DAG combine, but I've chosen to keep it
as custom isel. I'm not convinced DAG combine is as good with
shift pairs as it is with and+shift. I saw some issues optimizing
the shifts created by vscale lowering if an and isn't created for
from a shift pair.

Reviewed By: luismarques

Differential Revision: https://reviews.llvm.org/D106230
The file was modifiedllvm/test/CodeGen/RISCV/rem.ll
The file was modifiedllvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
The file was modifiedllvm/test/CodeGen/RISCV/rv64zbp.ll
The file was modifiedllvm/test/CodeGen/RISCV/srem-lkk.ll
The file was modifiedllvm/test/CodeGen/RISCV/rv64i-exhaustive-w-insts.ll
The file was modifiedllvm/lib/Target/RISCV/RISCVInstrInfoB.td
The file was modifiedllvm/lib/Target/RISCV/RISCVInstrInfo.td
The file was modifiedllvm/test/CodeGen/RISCV/rv32zbp.ll
The file was modifiedllvm/lib/Target/RISCV/RISCVISelDAGToDAG.h
The file was modifiedllvm/test/CodeGen/RISCV/div.ll
Commit 59d2ba2a3de976798a82cfd9d66e426907480ecf by kamau.bridgeman
[PowerPC] Semachecking for XL compat builtin icbt

This patch is in a series of patches to provide builtins for compatibility with the XL compiler.
This patch adds semachecking for an already implemented builtin, `__icbt`. `__icbt` is only
valid for Power8 and up.

Reviewed By: #powerpc, nemanjai

Differential Revision: https://reviews.llvm.org/D105834
The file was modifiedllvm/test/CodeGen/PowerPC/builtins-ppc-xlcompat-sync-32.ll
The file was modifiedclang/lib/Sema/SemaChecking.cpp
The file was modifiedllvm/test/CodeGen/PowerPC/builtins-ppc-xlcompat-sync-64.ll
The file was modifiedllvm/include/llvm/IR/IntrinsicsPowerPC.td
The file was modifiedclang/test/CodeGen/builtins-ppc-xlcompat-sync.c
The file was addedclang/test/CodeGen/builtins-ppc-xlcompat-pwr8.c
Commit 5b899c22f3d28331598b2b5ad244723c9d094064 by i
[Driver] Detect libstdc++ include paths for native gcc on 32-bit non-Debian Linux

Fixes https://bugs.llvm.org/show_bug.cgi?id=50303

Differential Revision: https://reviews.llvm.org/D106119
The file was addedclang/test/Driver/Inputs/archlinux_i686_tree/usr/lib/gcc/i686-pc-linux-gnu/11.1.0/crtend.o
The file was modifiedclang/test/Driver/linux-cross.cpp
The file was addedclang/test/Driver/Inputs/archlinux_i686_tree/lib/.keep
The file was addedclang/test/Driver/Inputs/archlinux_i686_tree/usr/lib/gcc/i686-pc-linux-gnu/11.1.0/crtbegin.o
The file was addedclang/test/Driver/Inputs/archlinux_i686_tree/usr/lib/crti.o
The file was addedclang/test/Driver/Inputs/archlinux_i686_tree/usr/lib/crtn.o
The file was addedclang/test/Driver/Inputs/archlinux_i686_tree/usr/include/c++/11.1.0/i686-pc-linux-gnu/.keep
The file was addedclang/test/Driver/Inputs/archlinux_i686_tree/usr/lib/crt1.o
The file was modifiedclang/lib/Driver/ToolChains/Gnu.cpp
The file was addedclang/test/Driver/Inputs/archlinux_i686_tree/usr/include/c++/11.1.0/backward/.keep
Commit 2ad2c5d457bb625d93d9b9bf9c6d8bc7396334da by craig.topper
[RISCV] Add -mattr=+c command lines to add-before-shl.ll to prepare for D105417. NFC
The file was modifiedllvm/test/CodeGen/RISCV/add-before-shl.ll
Commit 81efb825703c16ae659f3e17834ab011d06926e3 by craig.topper
[RISCV] Teach RISCVMatInt about cases where it can use LUI+SLLI to replace LUI+ADDI+SLLI for large constants.

If we need to shift left anyway we might be able to take advantage
of LUI implicitly shifting its immediate left by 12 to cover part
of the shift. This allows us to use more bits of the LUI immediate
to avoid an ADDI.

isDesirableToCommuteWithShift now considers compressed instruction
opportunities when deciding if commuting should be allowed.

I believe this is the same or similar to one of the optimizations
from D79492.

Reviewed By: luismarques, arcbbb

Differential Revision: https://reviews.llvm.org/D105417
The file was modifiedllvm/lib/Target/RISCV/RISCVISelLowering.cpp
The file was modifiedllvm/test/MC/RISCV/rv64i-aliases-valid.s
The file was modifiedllvm/test/CodeGen/RISCV/add-before-shl.ll
The file was modifiedllvm/test/CodeGen/RISCV/double-mem.ll
The file was modifiedllvm/test/CodeGen/RISCV/urem-lkk.ll
The file was modifiedllvm/test/CodeGen/RISCV/imm.ll
The file was modifiedllvm/test/CodeGen/RISCV/rv64zbp.ll
The file was modifiedllvm/test/CodeGen/RISCV/float-mem.ll
The file was modifiedllvm/test/CodeGen/RISCV/half-mem.ll
The file was modifiedllvm/lib/Target/RISCV/MCTargetDesc/RISCVMatInt.cpp
The file was modifiedllvm/lib/Target/RISCV/MCTargetDesc/RISCVMatInt.h
The file was modifiedllvm/test/CodeGen/RISCV/rvv/constant-folding.ll
The file was modifiedllvm/test/CodeGen/RISCV/rv64-large-stack.ll
Commit 0b043bb39bf0e24827a1a4042a661cfb9899e0b0 by scui
 This patch extends the OptimizeGlobalAddressOfMalloc to handle the null check of global pointer variables. It is disabled with https://reviews.llvm.org/rGb7cd291c1542aee12c9e9fde6c411314a163a8ea. This PR is to reenable it while fixing the original problem reported. The fix is to set the store value correctly when creating store for the new created global init bool symbol.

Reviewed By: efriedma

Differential Revision:  https://reviews.llvm.org/D102711
The file was modifiedllvm/lib/Transforms/IPO/GlobalOpt.cpp
The file was addedllvm/test/Transforms/GlobalOpt/malloc-promote-4.ll
The file was addedllvm/test/Transforms/GlobalOpt/null-check-not-use-pr35760.ll
The file was modifiedllvm/test/Transforms/GlobalOpt/null-check-is-use-pr35760.ll
Commit 2f75fda5dc2549e900916a04dbd27134a31d574c by i
[test] Avoid llvm-symbolizer/llvm-addr2line one-dash long options
The file was modifiedllvm/test/DebugInfo/X86/symbolize_function_start.s
The file was modifiedllvm/test/tools/llvm-symbolizer/flag-grouping.test
The file was modifiedllvm/test/tools/llvm-symbolizer/ppc64.test
The file was modifiedllvm/test/tools/llvm-symbolizer/coff-dwarf.test
The file was modifiedllvm/test/tools/llvm-symbolizer/coff-exports.test
The file was modifiedllvm/test/tools/llvm-symbolizer/sym.test
The file was modifiedllvm/test/tools/llvm-symbolizer/print_context.c
The file was modifiedllvm/test/tools/llvm-symbolizer/dsym.test
The file was modifiedllvm/test/tools/llvm-symbolizer/fat.test
The file was modifiedllvm/test/tools/llvm-symbolizer/padding-x86_64.ll
The file was modifiedllvm/test/tools/llvm-symbolizer/split-debug.test
The file was modifiedllvm/test/tools/llvm-symbolizer/sym-verbose.test
Commit 6242f9b966978f6d4d5a15a7475bb3169fa2d3fd by jhuber6
[OpenMP][Documentation] Fix hyperlink location

Fixes the documentation hyperlinks not showing the header.

Reviewed By: jdoerfert

Differential Revision: https://reviews.llvm.org/D106374
The file was modifiedopenmp/docs/remarks/OMP130.rst
The file was modifiedopenmp/docs/remarks/OMP170.rst
The file was modifiedopenmp/docs/remarks/OMP121.rst
The file was modifiedopenmp/docs/remarks/OMP110.rst
The file was modifiedopenmp/docs/remarks/OMP160.rst
The file was modifiedopenmp/docs/remarks/OMP140.rst
The file was modifiedopenmp/docs/remarks/OMP101.rst
The file was modifiedopenmp/docs/remarks/OMP102.rst
The file was modifiedopenmp/docs/remarks/OMP100.rst
The file was modifiedopenmp/docs/remarks/OMP113.rst
The file was modifiedopenmp/docs/remarks/OMP150.rst
The file was modifiedopenmp/docs/remarks/OMP111.rst
The file was modifiedopenmp/docs/remarks/OMP120.rst
The file was modifiedopenmp/docs/remarks/OMP112.rst
Commit 0cc2346cbfaaaafdf15d5bb1909d51a04ca32b86 by jurahul
[MLIR][NFC] Minor cleanup for BufferDeallocation pass.

- Change walkReturnOperations() to be a non-template and look at block terminator
  for ReturnLike trait.
- Clarify description of validateSupportedControlFlow
- Eliminate unused argument in Backedges::recurse.
- Eliminate repeated calls to getFunction()
- Fix wording for non-SCF loop failure

Differential Revision: https://reviews.llvm.org/D106373
The file was modifiedmlir/test/Transforms/buffer-deallocation.mlir
The file was modifiedmlir/lib/Transforms/BufferDeallocation.cpp
Commit b917a1d713380ac83b13063e697ff6c65936ac15 by huberjn
[OpenMP] Change AMDGCN to AMDGPU in the Cmake Module

Summary:
Change the name for targeting AMD offloading.
The file was modifiedopenmp/tools/Modules/README.rst
The file was modifiedopenmp/tools/Modules/FindOpenMPTarget.cmake
The file was modifiedopenmp/docs/SupportAndFAQ.rst
Commit e8439ec893b823967ef83adfe1e1cd60d6a305ee by georgakoudis1
[OpenMP] Set RequiresFullRuntime false in SPMDization

SPMDization in D102307 does not change the RequiresFullRuntime argument of kmpc_target_init/deinit calls. However, the constraints of SPMDization detection for converting a target region to SPMD mode should guarantee that the region does not require full runtime support. Hence, this patch sets RequiresFullRuntime to false for improved execution performance.

Reviewed By: jdoerfert

Differential Revision: https://reviews.llvm.org/D105556
The file was modifiedllvm/test/Transforms/OpenMP/spmdization.ll
The file was modifiedllvm/lib/Transforms/IPO/OpenMPOpt.cpp
The file was modifiedllvm/test/Transforms/OpenMP/custom_state_machines.ll
Commit f3cb8d6e252092520e1f4f84e32a2a36d0cd06f6 by muiez
[SystemZ][z/OS][libcxx]: fix libcxx test cases related to codecvt class UTF16/32

This PR is to fix a few UTF16 and UTF32 related test cases that are testing member functions for https://en.cppreference.com/w/cpp/locale/codecvt class , functions are converting from UTF16, UTF32 to UTF8 or vise visa. Test cases need to explicitly specify it is UNICODE character for UTF16/32 type in order to be valid tests to match type in documentation. it assumes it will be ASCII or UTF8 type for 1 byte character ( value range from 1 to 127 ), which is not true on z/OS in EBCDIC mode. For information related to UTF16/32 , please see https://naveenr.net/unicode-character-set-and-utf-8-utf-16-utf-32-encoding/ , and EBCDIC/ASCII character value can be found in http://www.simotime.com/asc2ebc1.htm

Differential Revision: https://reviews.llvm.org/D106151
The file was modifiedlibcxx/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char16_t_char8_t_out.pass.cpp
The file was modifiedlibcxx/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char32_t_out.pass.cpp
The file was modifiedlibcxx/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char16_t_out.pass.cpp
The file was modifiedlibcxx/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char32_t_char8_t_out.pass.cpp
Commit 7704fedfff6ef5676adb6415f3be0ac927d1a746 by muiez
[SystemZ][z/OS][libcxx]: fix libcxx test cases related to codecvt class UTF8

This PR to fix a few test cases related to class https://en.cppreference.com/w/cpp/locale/codecvt , as mentioned in document, class is converting UTF16 and UTF8 or UTF32 and UTF8, character type is deprecated in c++20 and it needs explicitly specify it is UTF8 string literal. Current test cases assume 1 byte character is ASCII or Unicode character which is not true on z/OS platform. UTF8/16/32 information can be found in https://naveenr.net/unicode-character-set-and-utf-8-utf-16-utf-32-encoding/ and EBCDIC and ASCII character value can be found in http://www.simotime.com/asc2ebc1.htm

Differential Revision: https://reviews.llvm.org/D106153
The file was modifiedlibcxx/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char16_t_in.pass.cpp
The file was modifiedlibcxx/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char32_t_in.pass.cpp
The file was modifiedlibcxx/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char16_t_length.pass.cpp
The file was modifiedlibcxx/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char32_t_length.pass.cpp
Commit 6144fc2da1b87dc64ff887d73b60f7708f5cb0a4 by aeubanks
[NewPM] Print pre-transformation IR name in --print-after-all

Sometimes a transformation can change the name of some IR (e.g. an SCC
with functions added/removed). This can be confusing when debug logging
doesn't match the post-transformation name. The specific example I came
across was that --print-after-all said the inliner was working on an SCC
that only contained one function, but calls in multiple functions were
getting inlined. After all inlining, the current SCC only contained one
function.

Piggyback off of the existing logic to handle invalidated IR +
--print-module-scope. Simply always store the IR description and use
that.

Reviewed By: jamieschmeiser

Differential Revision: https://reviews.llvm.org/D106290
The file was modifiedllvm/test/Other/loop-deletion-printer.ll
The file was modifiedllvm/include/llvm/Passes/StandardInstrumentations.h
The file was modifiedllvm/lib/Passes/StandardInstrumentations.cpp
The file was modifiedllvm/test/Other/scc-deleted-printer.ll
Commit 700d07f8ce6f2879610fd6b6968b05c6f17bb915 by samitolvanen
ThinLTO: Fix inline assembly references to static functions with CFI

Create an internal alias with the original name for static functions
that are renamed in promoteInternals to avoid breaking inline
assembly references to them. This version uses module inline assembly
to avoid issues with LowerTypeTestsModule.

Relands commmit 8e3b5cb39eef462943ed7556469604ce25c07a1d with arch
specific tests fixed.

Link: https://github.com/ClangBuiltLinux/linux/issues/1354

Reviewed By: nickdesaulniers, pcc

Differential Revision: https://reviews.llvm.org/D104058
The file was modifiedllvm/test/Transforms/ThinLTOBitcodeWriter/split-internal2.ll
The file was addedllvm/test/Transforms/ThinLTOBitcodeWriter/cfi-icall-static-inline-asm.ll
The file was modifiedllvm/test/ThinLTO/X86/devirt2.ll
The file was modifiedllvm/test/Transforms/ThinLTOBitcodeWriter/split-vfunc-internal.ll
The file was modifiedllvm/lib/Transforms/IPO/ThinLTOBitcodeWriter.cpp
Commit 4b897de5fa0298398cb7e993963cc3507c961985 by jpienaar
[mlir][ods] Add nested OpTrait

Allows for grouping OpTraits with list of OpTrait to make it easier to group OpTraits together without needing to use list concats (e.g., enable using `[Traits, ..., UsefulGroupOfTraits, Others, ...]` instead of `[Traits, ...] # UsefulGroupOfTraits # [Others, ...]`). Flatten in construction of Operation. This recurses here as the expectation is that these aren't expected to be deeply nested (most likely only 1 level of nesting).

Differential Revision: https://reviews.llvm.org/D106223
The file was modifiedmlir/lib/TableGen/Operator.cpp
The file was modifiedmlir/include/mlir/IR/OpBase.td
The file was modifiedmlir/test/mlir-tblgen/op-decl-and-defs.td
Commit a08554bcdd2d1a9ec1cc9ff399407d877a0ba3ce by koraq
[libc++][doc] Fixes a broken link.
The file was modifiedlibcxx/docs/Status/Cxx20Papers.csv
Commit e8bc871ca2780788ad580bb23ef2621b09e6394b by i
[PowerPC][test] Don't write to srcdir
The file was modifiedclang/test/CodeGen/builtins-ppc-xlcompat-pwr8.c
Commit ea014c5bbfa7bff4ebf4631204ca2d6d129a94d7 by nikita.ppv
[Inline] Fix noalias addition on simplified instructions (PR50589)

When adding noalias/alias.scope metadata, we analyze the instructions
of the original callee, and then place metadata on the corresponding
inlined instructions in the caller as provided by VMap. However, this
assumes that this actually a clone of the instruction, rather than
the result of simplification. If simplification occurred, the
instruction that VMap points to may not have any relationship as far
as ModRef behavior is concerned.

Fix this by tracking simplified instructions during cloning and then
only processing instructions that have not been simplified. This is
done with an additional map form original to cloned instruction,
into which we only insert if no simplification is performed. The
mapping in VMap can then be compared to this map. If they're the
same, the instruction hasn't been simplified. (I originally wanted
to only track a set of simplified instructions, but that wouldn't
work if the instruction only gets simplified afterwards, e.g. based
on rewritten phis.)

Fixes https://bugs.llvm.org/show_bug.cgi?id=50589.

Differential Revision: https://reviews.llvm.org/D106242
The file was modifiedllvm/lib/Transforms/Utils/InlineFunction.cpp
The file was modifiedllvm/include/llvm/Transforms/Utils/Cloning.h
The file was modifiedllvm/lib/Transforms/Utils/CloneFunction.cpp
The file was modifiedllvm/test/Transforms/Inline/pr50589.ll
Commit 8773822c578ab76e78a9524ef0ddedfaa4904cd3 by zequanwu
[Utils] Add -compilation-dir flag to prepare-code-coverage-artifact.py

Differential Revision: https://reviews.llvm.org/D106314
The file was modifiedllvm/utils/prepare-code-coverage-artifact.py
Commit 1f3e90e12894b1f91c5e857dcd358eb689e2d262 by jacobhegna
Fix Threshold overwrite bug in the Oz inlining model features.

Differential Revision: https://reviews.llvm.org/D106336
The file was modifiedllvm/lib/Analysis/InlineCost.cpp
Commit 1a762f93f81640768dc9e9d933780fff32cfa639 by wei.huang
[PowerPC] Add PowerPC cmpb builtin and emit target indepedent code for XL compatibility

This patch is in a series of patches to provide builtins for compatibility
with the XL compiler. This patch add the builtin and emit target independent
code for __cmpb.

Reviewed By: nemanjai, #powerpc

Differential revision: https://reviews.llvm.org/D105194
The file was modifiedllvm/include/llvm/IR/IntrinsicsPowerPC.td
The file was addedclang/test/CodeGen/builtins-ppc-xlcompat-compare.c
The file was modifiedllvm/lib/Target/PowerPC/PPCInstr64Bit.td
The file was modifiedclang/include/clang/Basic/BuiltinsPPC.def
The file was modifiedclang/lib/CodeGen/CGBuiltin.cpp
The file was modifiedclang/lib/Basic/Targets/PPC.cpp
The file was addedllvm/test/CodeGen/PowerPC/builtins-ppc-xlcompat-cmpb-64.ll
The file was addedllvm/test/CodeGen/PowerPC/builtins-ppc-xlcompat-cmpb-32.ll
The file was modifiedllvm/lib/Target/PowerPC/PPCInstrInfo.td
Commit c68f247275eed94a4f4b97ad53b4d599acfd181a by Alex Lorenz
[clang-scan-deps] ignore top-level module dependencies that aren't actually imported

Whenever -fmodule-name=top_level_module name is parsed, and clang actually tries to
import top_level_module, the headers are imported textually and the module isn't actually
built. However, the dependency scanner could still record it as a potential dependency
if the module was reimported and thus recorded by the preprocessor callbacks.
This change avoids collecting this kind of module as a dependency by verifying that we don't
collect top level modules without actual PCM files.

Differential Revision: https://reviews.llvm.org/D106100
The file was modifiedclang/test/ClangScanDeps/Inputs/module.modulemap
The file was addedclang/test/ClangScanDeps/Inputs/header3.h
The file was addedclang/test/ClangScanDeps/Inputs/module_fmodule_name_cdb.json
The file was modifiedclang/lib/Tooling/DependencyScanning/ModuleDepCollector.cpp
The file was addedclang/test/ClangScanDeps/modules-fmodule-name-no-module-built.m
Commit 1f8d3fd42b7c183f8fef438255e10e4e0f71d7d4 by nikita.ppv
[Verifier] Check byval/etc type when comparing ABI attributes

For musttail calls, ABI attributes between the function and the
musttail call must match. The current check discards the type of
type attributes like byval, which means that it will consider
byval(i32) and byval(i64) (or similar) as compatible.

I assume this is a leftover from before these attributes had a
type argument. Ran into this while trying to tighten an assertion
in AttrBuilder.

Differential Revision: https://reviews.llvm.org/D105841
The file was modifiedllvm/test/Verifier/musttail-invalid.ll
The file was modifiedllvm/lib/IR/Verifier.cpp
Commit 0c794abff12db9d3d307b744029a9eb67308fa2c by nikita.ppv
[ThinTLOBitcodeWriter] Fix unused variable warning (NFC)
The file was modifiedllvm/lib/Transforms/IPO/ThinLTOBitcodeWriter.cpp
Commit a4ac34bfb0a72b156266c335611d0a9de63c679a by grahamy
[NFC] Update code owners file

- Replace Pete with Mark as owner of ARC backend
- Re-order Philip to be sorted by first name
The file was modifiedllvm/CODE_OWNERS.TXT
Commit 4e92962127a30ee8958858b9a354490ba36924b2 by pklausler
[flang] Fix legitimate warning from latest GCC

A rank-0 static descriptor needs to be a vector; it's for
"v-list" values in defined derived type formatted I/O.

(Pushed without pre-review due to high confidence and an
unwell buildbot.)
The file was modifiedflang/runtime/descriptor-io.cpp
Commit a7f183afe7cc792c50d64b3b9ea22269c87ec35f by nikita.ppv
[Orc] Fix sret/byval attributes in test (NFC)

This was placing sret/byval attributes without type argument on
non-pointer arguments. Make this valid IR by using pointer
arguments and passing the corresponding attribute type argument.
The file was modifiedllvm/unittests/ExecutionEngine/Orc/IndirectionUtilsTest.cpp
Commit 6312a75dbaaf2d4c968cfa3322fc9df60621d4ee by nikita.ppv
[BitcodeReader] Handle type attributes more explicitly (NFCI)

For attributes in legacy bitcode that are now typed, explicitly
create a type attribute with nullptr type, the same as we do
for the attribute group representation. This is so we can assert
use of the correct constructor in the future.
The file was modifiedllvm/lib/Bitcode/Reader/BitcodeReader.cpp
Commit f428693de0aafbd397706e11722a84bc9c20a346 by sbc
Reland "[lld][WebAssembly] Cleanup duplicate fields in Symbols.h. NFC"

This avoids duplication and simplifies the code in several places
without increasing the size of the symbol union (at least not
above the assert'd limit of 120 bytes).

Originally commit: 9b965b37c75d626c01951184088314590e38d299
Reverted in: 16aac493e59519377071e900d119ba2e7e5b525d.

Differential Revision: https://reviews.llvm.org/D106026
The file was modifiedlld/wasm/SyntheticSections.cpp
The file was modifiedlld/wasm/Symbols.h
The file was modifiedlld/wasm/Writer.cpp
Commit 2a7711f33a048d15bed6efe84873a7f73f5c3508 by albionapc
[PowerPC] Extra test case for LDARX

An extra test case added for the builtin __LDARX.

Differential revision: https://reviews.llvm.org/D105926
The file was addedllvm/test/CodeGen/PowerPC/builtins-ppc-xlcompat-check-ldarx-opt.ll
Commit a465f07cf99b3cc210f4c2a7691dd5027857f117 by nikita.ppv
[AttrBuilder] Assert correct attribute kind

Make sure that addAttribute() is only used with simple enum
attributes. Integer and type attributes need to provide an
additional value/type.
The file was modifiedllvm/include/llvm/IR/Attributes.h
Commit d51f74acdf3950628b90320dae9a169762ad225c by sbc
[lld][WebAssembly] Error on import of TLS symbols in shared libraries

In https://reviews.llvm.org/D102044 we made exporting a TLS symbol
into an error, but we also want to error on import.

See https://github.com/emscripten-core/emscripten/issues/14461

Differential Revision: https://reviews.llvm.org/D106385
The file was modifiedlld/wasm/Relocations.cpp
The file was addedlld/test/wasm/tls-import.s
Commit 843c61405881acdac1727c3a1ca4f36156611753 by efriedma
[AArch64] Fix i128 cmpxchg using ldxp/stxp.

Basically two parts to this fix:

1. Stop using AtomicExpand to expand cmpxchg i128
2. Fix AArch64ExpandPseudoInsts to use a correct expansion.

From ARM architecture reference:

To atomically load two 64-bit quantities, perform a Load-Exclusive
pair/Store-Exclusive pair sequence of reading and writing the same value
for which the Store-Exclusive pair succeeds, and use the read values
from the Load-Exclusive pair.

Fixes https://bugs.llvm.org/show_bug.cgi?id=51102

Differential Revision: https://reviews.llvm.org/D106039
The file was modifiedllvm/test/CodeGen/AArch64/atomicrmw-O0.ll
The file was modifiedllvm/lib/Target/AArch64/AArch64ExpandPseudoInsts.cpp
The file was modifiedllvm/lib/Target/AArch64/AArch64InstrAtomics.td
The file was modifiedllvm/test/CodeGen/AArch64/GlobalISel/arm64-atomic-128.ll
The file was modifiedllvm/lib/Target/AArch64/GISel/AArch64LegalizerInfo.cpp
The file was modifiedllvm/test/CodeGen/AArch64/GlobalISel/legalize-cmpxchg-128.mir
The file was modifiedllvm/lib/Target/AArch64/AArch64ISelLowering.cpp
The file was modifiedllvm/test/CodeGen/AArch64/arm64-atomic-128.ll
Commit 02dff789831351ce209684beba544c04e38f19f2 by tianshilei1992
[NFC][OpenMP] Fix an issue that no CHECK in test cases

This fixes the complaint from FileCheck.

Reviewed By: abhinavgaba, jdoerfert

Differential Revision: https://reviews.llvm.org/D106387
The file was modifiedopenmp/libomptarget/test/offloading/taskloop_offload_nowait.cpp
Commit 55c65884a41c4dec2c3efd056657cc7c590c1bcb by tianshilei1992
[OpenMP][deviceRTLs] Update return type of function __kmpc_parallel_level

In `deviceRTLs`, the parallel level is stored in a shared variable of type `uint8_t`.
`__kmpc_parallel_level` currently returns a 16-bit interger. This patch first
changes the return type of the function to `uint8_t`, same as the shared variable,
and then corrects function type which was updated in D105955.

Reviewed By: jdoerfert

Differential Revision: https://reviews.llvm.org/D106384
The file was modifiedllvm/include/llvm/Frontend/OpenMP/OMPKinds.def
The file was modifiedopenmp/libomptarget/deviceRTLs/common/src/parallel.cu
The file was modifiedopenmp/libomptarget/deviceRTLs/interface.h
Commit 392487793248f53726d2f9591966dbe42a89a17a by i
[IR] Rename `comdat noduplicates` to `comdat nodeduplicate`

In the textual format, `noduplicates` means no COMDAT/section group
deduplication is performed. Therefore, if both sets of sections are retained, and
they happen to define strong external symbols with the same names,
there will be a duplicate definition linker error.

In PE/COFF, the selection kind lowers to `IMAGE_COMDAT_SELECT_NODUPLICATES`.
The name describes the corollary instead of the immediate semantics.  The name
can cause confusion to other binary formats (ELF, wasm) which have implemented/
want to implement the "no deduplication" selection kind. Rename it to be clearer.

Reviewed By: rnk

Differential Revision: https://reviews.llvm.org/D106319
The file was modifiedllvm/test/Linker/comdat4.ll
The file was modifiedllvm/lib/Transforms/Instrumentation/InstrProfiling.cpp
The file was modifiedllvm/test/Bitcode/compatibility-5.0.ll
The file was modifiedllvm/docs/BitCodeFormat.rst
The file was modifiedllvm/test/Bitcode/compatibility.ll
The file was modifiedllvm/test/Instrumentation/SanitizerCoverage/coff-comdat.ll
The file was modifiedllvm/docs/LangRef.rst
The file was modifiedllvm/test/Bitcode/compatibility-3.8.ll
The file was modifiedllvm/test/Instrumentation/SanitizerCoverage/interposable-symbol.ll
The file was modifiedllvm/lib/AsmParser/LLParser.cpp
The file was modifiedllvm/lib/IR/Comdat.cpp
The file was modifiedllvm/test/Bitcode/compatibility-3.9.ll
The file was modifiedllvm/test/CodeGen/X86/gcc_except_table-multi.ll
The file was modifiedllvm/test/Instrumentation/InstrProfiling/linkage.ll
The file was modifiedllvm/include/llvm-c/Comdat.h
The file was modifiedllvm/include/llvm/AsmParser/LLToken.h
The file was modifiedllvm/include/llvm/IR/Comdat.h
The file was modifiedllvm/test/Instrumentation/SanitizerCoverage/trace-pc-guard.ll
The file was modifiedllvm/test/Bitcode/compatibility-3.6.ll
The file was modifiedllvm/test/Bitcode/compatibility-6.0.ll
The file was modifiedllvm/test/Transforms/Internalize/comdat.ll
The file was modifiedllvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
The file was modifiedllvm/test/CodeGen/X86/coff-comdat.ll
The file was modifiedllvm/bindings/go/llvm/ir.go
The file was modifiedllvm/lib/Transforms/Instrumentation/Instrumentation.cpp
The file was modifiedllvm/test/Instrumentation/SanitizerCoverage/inline-bool-flag.ll
The file was modifiedllvm/lib/AsmParser/LLLexer.cpp
The file was modifiedllvm/lib/Linker/LinkModules.cpp
The file was modifiedllvm/lib/Bitcode/Reader/BitcodeReader.cpp
The file was modifiedllvm/test/Bitcode/compatibility-3.7.ll
The file was modifiedllvm/test/Bitcode/compatibility-4.0.ll
The file was modifiedllvm/test/SymbolRewriter/rewrite.ll
The file was modifiedllvm/lib/Bitcode/Writer/BitcodeWriter.cpp
The file was modifiedllvm/lib/IR/AsmWriter.cpp
The file was modifiedllvm/test/Instrumentation/AddressSanitizer/global_metadata_windows.ll
The file was modifiedllvm/test/CodeGen/X86/elf-group.ll
The file was modifiedllvm/test/Linker/Inputs/comdat3.ll
The file was modifiedllvm/lib/Transforms/IPO/Internalize.cpp
The file was modifiedllvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
Commit 0c0549fbb3e910ea28a27d901a40410d048f26ac by i
[AArch64] Delete unused Opcode after D106039
The file was modifiedllvm/lib/Target/AArch64/AArch64ISelLowering.cpp
Commit a8262a383bc627cef3de78e60bbbedb788157a50 by Alex Lorenz
[clang][darwin] add support for Mac Catalyst availability

This commit adds support for Mac Catalyst availability attribute, as
supported by the Apple clang compiler. A follow-up commit will provide
additional support for inferring Mac Catalyst availability from macOS
availability using the mapping in the SDKSettings.json.

Differential Revision: https://reviews.llvm.org/D105052
The file was modifiedclang/include/clang/Basic/Attr.td
The file was addedclang/test/CodeGenObjC/availability-check-maccatalyst.m
The file was modifiedclang/lib/Basic/Targets/OSTargets.cpp
The file was modifiedclang/lib/Sema/SemaExpr.cpp
The file was modifiedclang/lib/Sema/SemaDeclAttr.cpp
The file was addedclang/test/FixIt/fixit-availability-maccatalyst.m
The file was addedclang/test/Sema/attr-availability-maccatalyst.c
The file was addedclang/test/SemaObjC/unguarded-availability-maccatalyst.m
Commit 6bf0f6a4f7d976a54ff59de4ef1c543ad2df9ff0 by rob.suderman
[mlir][tosa] Add quantized lowering for matmul and fully_connected

Added the named op variants for quantized matmul and quantized batch matmul
with the necessary lowerings/tests from tosa's matmul/fully connected ops.
Current version does not use the contraction op interface as its verifiers
are not compatible with scalar operations.

Differential Revision: https://reviews.llvm.org/D105063
The file was modifiedmlir/include/mlir/Dialect/Linalg/IR/LinalgNamedStructuredOps.yaml
The file was modifiedmlir/test/Conversion/TosaToLinalg/tosa-to-linalg.mlir
The file was modifiedmlir/lib/Conversion/TosaToLinalg/TosaToLinalg.cpp
The file was modifiedmlir/python/mlir/dialects/linalg/opdsl/ops/core_named_ops.py
Commit ce8024e8ff76e7be8b9ffa1a39d1dc9310bf74c7 by melanie.blower
[CLANG][PATCH][FPEnv] Add support for option -ffp-eval-method and extend #pragma float_control similarly

The Intel compiler ICC supports the option "-fp-model=(source|double|extended)"
which causes the compiler to use a wider type for intermediate floating point
calculations. Also supported is a way to embed this effect in the source
program with #pragma float_control(source|double|extended).
This patch extends pragma float_control syntax, and also adds support
for a new floating point option "-ffp-eval-method=(source|double|extended)".
source: intermediate results use source precision
double: intermediate results use double precision
extended: intermediate results use extended precision

Reviewed By: Aaron Ballman

Differential Revision: https://reviews.llvm.org/D93769
The file was modifiedclang/test/CodeGen/fp-floatcontrol-pragma.cpp
The file was modifiedclang/include/clang/Basic/LangOptions.def
The file was modifiedclang/include/clang/Driver/Options.td
The file was modifiedclang/test/Preprocessor/init-aarch64.c
The file was modifiedclang/docs/LanguageExtensions.rst
The file was modifiedclang/include/clang/Basic/PragmaKinds.h
The file was modifiedclang/include/clang/Sema/Sema.h
The file was addedclang/test/Preprocessor/predefined-flteval-macro.c
The file was modifiedclang/test/Preprocessor/init-arm.c
The file was modifiedclang/docs/UsersManual.rst
The file was modifiedclang/lib/Lex/PPMacroExpansion.cpp
The file was modifiedclang/test/Preprocessor/init-v7k-compat.c
The file was modifiedclang/test/Preprocessor/init-x86.c
The file was modifiedclang/lib/Sema/SemaAttr.cpp
The file was modifiedclang/lib/Basic/Targets/OSTargets.h
The file was modifiedclang/lib/Frontend/CompilerInvocation.cpp
The file was modifiedclang/test/Preprocessor/init-mips.c
The file was modifiedclang/test/Preprocessor/init-ppc.c
The file was modifiedclang/include/clang/Lex/PreprocessorOptions.h
The file was modifiedclang/lib/Sema/SemaExpr.cpp
The file was modifiedclang/include/clang/Lex/Preprocessor.h
The file was modifiedclang/lib/Driver/ToolChains/Clang.cpp
The file was modifiedclang/lib/Frontend/InitPreprocessor.cpp
The file was modifiedclang/lib/Parse/ParsePragma.cpp
The file was modifiedclang/test/Preprocessor/init-ppc64.c
The file was modifiedclang/lib/Sema/Sema.cpp
The file was modifiedclang/include/clang/Basic/FPOptions.def
The file was modifiedclang/include/clang/Basic/TargetInfo.h
The file was modifiedclang/test/Preprocessor/init-s390x.c
The file was modifiedclang/include/clang/Basic/LangOptions.h
The file was modifiedclang/lib/Basic/Targets/X86.h
The file was modifiedclang/test/Preprocessor/init.c
Commit db5e0786900e53843f87c4169c404f8c7831eb8c by i
[LTO] Add SelectionKind to IRSymtab and use it in ld.lld/LLVMgold

In PGO, a C++ external linkage function `foo` has a private counter
`__profc_foo` and a private `__profd_foo` in a `comdat nodeduplicate`.

A `__attribute__((weak))` function `foo` has a weak hidden counter `__profc_foo`
and a private `__profd_foo` in a `comdat nodeduplicate`.

In `ld.lld a.o b.o`, say a.o defines an external linkage `foo` and b.o
defines a weak `foo`. Currently we treat `comdat nodeduplicate` as `comdat any`,
ld.lld will incorrectly consider `b.o:__profc_foo` non-prevailing.  In the worst
case when `b.o:__profd_foo` is retained and `b.o:__profc_foo` isn't, there will
be dangling reference causing an `undefined hidden symbol` error.

Add SelectionKind to `Comdat` in IRSymtab and let linkers ignore nodeduplicate comdat.

Differential Revision: https://reviews.llvm.org/D106228
The file was modifiedlld/wasm/InputFiles.cpp
The file was modifiedllvm/tools/llvm-lto2/llvm-lto2.cpp
The file was modifiedllvm/include/llvm/LTO/LTO.h
The file was modifiedlld/COFF/InputFiles.cpp
The file was modifiedlld/ELF/InputFiles.cpp
The file was modifiedllvm/include/llvm/Object/IRSymtab.h
The file was modifiedllvm/test/LTO/Resolution/X86/symtab.ll
The file was modifiedllvm/lib/Object/IRSymtab.cpp
The file was modifiedllvm/test/Object/X86/irsymtab.ll
The file was addedlld/test/ELF/lto/comdat-nodeduplicate.ll
The file was modifiedllvm/tools/gold/gold-plugin.cpp
The file was addedllvm/test/tools/gold/X86/comdat-nodeduplicate.ll
Commit 05a6d74c4845221907e25971937242b72489ef55 by Alex Lorenz
[clang] NFC, move DarwinSDKInfo to lib/Basic

This is a preparation commit for https://reviews.llvm.org/D105958
The file was removedclang/lib/Driver/DarwinSDKInfo.cpp
The file was modifiedclang/lib/Driver/CMakeLists.txt
The file was addedclang/include/clang/Basic/DarwinSDKInfo.h
The file was addedclang/lib/Basic/DarwinSDKInfo.cpp
The file was removedclang/include/clang/Driver/DarwinSDKInfo.h
The file was modifiedclang/lib/Driver/ToolChains/Darwin.cpp
The file was modifiedclang/lib/Driver/ToolChains/Darwin.h
The file was modifiedclang/lib/Basic/CMakeLists.txt
Commit 664a1fd9f04de65f0a37d612845dc9e095abe067 by efriedma
[AArch64] Use the CMP_SWAP_128 variants added in 843c6140.

Accidentally forgot to flip the opcode... and I didn't notice because it
was working fine for the GlobalISel.
The file was modifiedllvm/lib/Target/AArch64/AArch64ISelLowering.cpp
The file was modifiedllvm/test/CodeGen/AArch64/arm64-atomic-128.ll
Commit 8f54ebd51d054807bdb75a1300667b64484a2504 by Jessica Paquette
[AArch64][GlobalISel] Select llvm.aarch64.neon.st2 intrinsics

Add manual selection code similar to the code in AArch64ISelDAGToDAG, and add
`createTuple` helpers similar to the code there as well.

This accounted for around 111 fallbacks while building clang for AArch64 with
GlobalISel.

This also should make it easy to add selection code for other store
intrinsics.

As a minor cleanup, this uses `createQTuple` in the other place where we use
REG_SEQUENCE.

Differential Revision: https://reviews.llvm.org/D106332
The file was modifiedllvm/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp
The file was addedllvm/test/CodeGen/AArch64/GlobalISel/select-st2.mir
Commit edfdb5fcd10779905ef960c8d4aa61d46b57f451 by saugustine
Consolidate string types into ptr and length representations.

After rGbbbc4f110e35ac709b943efaa1c4c99ec073da30, we can move
any string type that has convenient pointer and length fields
into the PtrAndLengthKind, reducing the amount of code.

Differential Revision: https://reviews.llvm.org/D106381
The file was modifiedllvm/include/llvm/ADT/Twine.h
The file was modifiedllvm/lib/Support/Twine.cpp
The file was modifiedllvm/unittests/ADT/TwineTest.cpp
Commit d48ad358b1e84698f1070cec50c7586b78865265 by melanie.blower
Revert "[CLANG][PATCH][FPEnv] Add support for option -ffp-eval-method and extend #pragma float_control similarly"

This reverts commit ce8024e8ff76e7be8b9ffa1a39d1dc9310bf74c7.
There are a couple buildbot problems
The file was modifiedclang/lib/Frontend/InitPreprocessor.cpp
The file was modifiedclang/test/Preprocessor/init-s390x.c
The file was modifiedclang/include/clang/Sema/Sema.h
The file was modifiedclang/docs/LanguageExtensions.rst
The file was modifiedclang/include/clang/Basic/LangOptions.h
The file was modifiedclang/test/Preprocessor/init-arm.c
The file was modifiedclang/test/Preprocessor/init-v7k-compat.c
The file was modifiedclang/include/clang/Basic/TargetInfo.h
The file was modifiedclang/include/clang/Driver/Options.td
The file was modifiedclang/lib/Sema/SemaAttr.cpp
The file was modifiedclang/lib/Frontend/CompilerInvocation.cpp
The file was removedclang/test/Preprocessor/predefined-flteval-macro.c
The file was modifiedclang/include/clang/Basic/LangOptions.def
The file was modifiedclang/include/clang/Lex/Preprocessor.h
The file was modifiedclang/test/Preprocessor/init-ppc64.c
The file was modifiedclang/include/clang/Basic/PragmaKinds.h
The file was modifiedclang/lib/Basic/Targets/OSTargets.h
The file was modifiedclang/lib/Basic/Targets/X86.h
The file was modifiedclang/lib/Lex/PPMacroExpansion.cpp
The file was modifiedclang/lib/Parse/ParsePragma.cpp
The file was modifiedclang/lib/Sema/Sema.cpp
The file was modifiedclang/test/Preprocessor/init-ppc.c
The file was modifiedclang/docs/UsersManual.rst
The file was modifiedclang/test/Preprocessor/init-x86.c
The file was modifiedclang/test/CodeGen/fp-floatcontrol-pragma.cpp
The file was modifiedclang/test/Preprocessor/init-aarch64.c
The file was modifiedclang/test/Preprocessor/init-mips.c
The file was modifiedclang/test/Preprocessor/init.c
The file was modifiedclang/include/clang/Basic/FPOptions.def
The file was modifiedclang/lib/Driver/ToolChains/Clang.cpp
The file was modifiedclang/include/clang/Lex/PreprocessorOptions.h
The file was modifiedclang/lib/Sema/SemaExpr.cpp
Commit 33ab995617d02be3bca00514584c568560d2fbb3 by leevince
Recommit "[lld-macho] Use DO_BIND_ADD_ADDR_IMM_SCALED for bind opcodes"

Implement pass 3 of bind opcodes from ld64 (which supports both 32-bit and 64-bit).
Pass 3 implementation condenses BIND_OPCODE_DO_BIND_ADD_ADDR_ULEB opcode
to BIND_OPCODE_DO_BIND_ADD_ADDR_IMM_SCALED.  This change is already behind an
O2 flag so it shouldn't impact current performance. I verified ld64's output with x86_64 LLD
and they were both emitting the same optimized bind opcodes (although in a slightly different
order). Tested with arm64_32 LLD and compared that with x86 LLD that the order of the bind
opcodes are the same (offset values are different which should be expected).

Reviewed By: int3, #lld-macho, MaskRay

Differential Revision: https://reviews.llvm.org/D106128
The file was modifiedlld/MachO/SyntheticSections.cpp
The file was modifiedlld/test/MachO/bind-opcodes.s
Commit 3434ac9e39026ae19870a3356d744649dc85777e by albionapc
[PowerPC] Store, load, move from and to registers related builtins

This patch implements store, load, move from and to registers related
builtins, as well as the builtin for stfiw. The patch aims to provide
feature parady with xlC on AIX.

Differential revision: https://reviews.llvm.org/D105946
The file was modifiedllvm/test/CodeGen/PowerPC/builtins-ppc-xlcompat-LoadReserve-StoreCond.ll
The file was modifiedllvm/include/llvm/IR/IntrinsicsPowerPC.td
The file was modifiedllvm/lib/Target/PowerPC/PPCInstrInfo.td
The file was addedclang/test/CodeGen/builtins-ppc-xlcompat-prefetch.c
The file was addedclang/test/CodeGen/builtins-ppc-xlcompat-stfiw.c
The file was modifiedclang/include/clang/Basic/BuiltinsPPC.def
The file was addedclang/test/CodeGen/builtins-ppc-xlcompat-move-tofrom-regs.c
The file was modifiedclang/lib/CodeGen/CGBuiltin.cpp
The file was modifiedclang/test/CodeGen/builtins-ppc-xlcompat-LoadReseve-StoreCond.c
The file was addedllvm/test/CodeGen/builtins-ppc-xlcompat-move-tofrom-regs.ll
The file was addedllvm/test/CodeGen/builtins-ppc-xlcompat-prefetch.ll
The file was modifiedllvm/lib/Target/PowerPC/PPC.td
The file was modifiedclang/lib/Basic/Targets/PPC.cpp
The file was modifiedllvm/lib/Target/PowerPC/PPCInstrVSX.td
The file was addedllvm/test/CodeGen/PowerPC/builtins-ppc-xlcompat-stfiw.ll
The file was modifiedclang/lib/Sema/SemaChecking.cpp
Commit d1438c1bd2ad9269b26275e31b097d24763919f4 by llvmgnsyncbot
[gn build] Port 05a6d74c4845
The file was modifiedllvm/utils/gn/secondary/clang/lib/Basic/BUILD.gn
The file was modifiedllvm/utils/gn/secondary/clang/lib/Driver/BUILD.gn
Commit e0e09481eef2602f14523e30a612e7c9fc941936 by martin
[LLD] [COFF] Add a couple "MinGW only" comments re linking against DLLs. NFC.

This was requested in the post-commit review of D104530.
The file was modifiedlld/COFF/Symbols.h
The file was modifiedlld/COFF/InputFiles.h
Commit e901e581ef45a4bcab7e6c35ba399203ad70f512 by samitolvanen
Revert "ThinLTO: Fix inline assembly references to static functions with CFI"

This reverts commit 700d07f8ce6f2879610fd6b6968b05c6f17bb915.

Reverting due to a ThinLTO+CFI breakage on -msvc targets.
The file was modifiedllvm/lib/Transforms/IPO/ThinLTOBitcodeWriter.cpp
The file was modifiedllvm/test/Transforms/ThinLTOBitcodeWriter/split-vfunc-internal.ll
The file was modifiedllvm/test/Transforms/ThinLTOBitcodeWriter/split-internal2.ll
The file was modifiedllvm/test/ThinLTO/X86/devirt2.ll
The file was removedllvm/test/Transforms/ThinLTOBitcodeWriter/cfi-icall-static-inline-asm.ll
Commit c4e1acf19b754f47350fd73b0d5b9614ee64a584 by efriedma
[AArch64] Add tests for 128-bit atomic loads with casp available.

We currently don't use casp; maybe we should?
The file was modifiedllvm/test/CodeGen/AArch64/GlobalISel/arm64-atomic-128.ll
The file was modifiedllvm/test/CodeGen/AArch64/atomic-ops-lse.ll
Commit a0217bda3836138a793afff76c65ef1041689fd9 by lebedev.ri
[NFC][VectorCombine] Add tests for widening of partial vector load
The file was addedllvm/test/Transforms/VectorCombine/X86/load-widening.ll
Commit 808bbc2c47028ff5c2cc0bf7a1d5140adec9202a by Alex Lorenz
[clang][darwin] Add support for macOS -> Mac Catalyst
version remapping to the Darwin SDK Info

Differential Revision: https://reviews.llvm.org/D105958
The file was modifiedclang/include/clang/Basic/DarwinSDKInfo.h
The file was modifiedclang/lib/Basic/DarwinSDKInfo.cpp
The file was modifiedclang/unittests/Basic/CMakeLists.txt
The file was modifiedllvm/include/llvm/Support/VersionTuple.h
The file was addedclang/unittests/Basic/DarwinSDKinfoTest.cpp
The file was modifiedclang/lib/Driver/ToolChains/Darwin.cpp
Commit 1d68ecafd6ad9ba8857c78e567abbc58810329c1 by mizvekov
[clang] fix oops: enable implicit moves in MSVC compatibility mode

When disabling simpler implicit moves in MSVC compatibility mode as
a workaround in D105518, we forgot to make the opposite change and
enable regular (P1825) implicit moves in the same mode.

As a result, we were not doing any implicit moves at all. OOPS!

This fixes it and adds test for this.

This is a fix to a temporary workaround, there is ongoing
work to replace this, applying the workaround only to
system headers and the ::stl namespace.

Signed-off-by: Matheus Izvekov <mizvekov@gmail.com>

Reviewed By: aaron.ballman

Differential Revision: https://reviews.llvm.org/D106303
The file was modifiedclang/lib/Sema/SemaStmt.cpp
The file was modifiedclang/test/SemaCXX/cxx2b-p2266-disable-with-msvc-compat.cpp
Commit 5f557616c6b13adbe244b3583459a926628c3466 by Alex Lorenz
[clang] Fix the capitalization of the DarwinSDKInfoTest unittest filename to avoid case-sensitive FS build errors
The file was removedclang/unittests/Basic/DarwinSDKinfoTest.cpp
The file was addedclang/unittests/Basic/DarwinSDKInfoTest.cpp
Commit c781eb153bfbd1b52b03efe34f56bbeccbb8aba6 by llvmgnsyncbot
[gn build] Port 808bbc2c4702
The file was modifiedllvm/utils/gn/secondary/clang/unittests/Basic/BUILD.gn
Commit 3b2e40c08e310c5c13432bc2788f5a73285f2767 by gcmn
[Bazel] Fix Exegesis target reference and remove stray visibility
The file was modifiedutils/bazel/llvm-project-overlay/llvm/unittests/BUILD.bazel
Commit 40a02fae87ca7de676f6b9d96532c760130ccc68 by rob.suderman
[mlir][tosa] Added tosa to linalg lowering to unstrided transposed conv

The unstrided transposed conv can be represented as a regular convolution.
Lower to this variant to handle the basic case. This includes transitioning from
the TC defined convolution operation and a yaml defined one.

Reviewed By: NatashaKnk

Differential Revision: https://reviews.llvm.org/D106389
The file was modifiedmlir/test/Conversion/TosaToLinalg/tosa-to-linalg.mlir
The file was modifiedmlir/include/mlir/Dialect/Linalg/IR/LinalgNamedStructuredOps.yaml
The file was modifiedmlir/lib/Conversion/TosaToLinalg/TosaToLinalg.cpp
The file was modifiedmlir/python/mlir/dialects/linalg/opdsl/ops/core_named_ops.py
Commit a48e41683ae1a9b9a5bde750d3b418a205c28cc8 by pklausler
[flang] Run-time derived type initialization and destruction

Use derived type information tables to drive default component
initialization (when needed), component destruction, and calls to
final subroutines.  Perform these operations automatically for
ALLOCATE()/DEALLOCATE() APIs for allocatables, automatics, and
pointers.  Add APIs for use in lowering to perform these operations
for non-allocatable/automatic non-pointer variables.
Data pointer component initialization supports arbitrary constant
designators, a F'2008 feature, which may be a first for Fortran
implementations.

Differential Revision: https://reviews.llvm.org/D106297
The file was modifiedflang/lib/Semantics/check-declarations.cpp
The file was addedflang/runtime/derived-api.cpp
The file was modifiedflang/lib/Evaluate/shape.cpp
The file was modifiedflang/lib/Semantics/compute-offsets.cpp
The file was addedflang/runtime/derived-api.h
The file was modifiedflang/runtime/type-info.h
The file was modifiedflang/test/Semantics/typeinfo01.f90
The file was modifiedflang/docs/Extensions.md
The file was modifiedflang/runtime/allocatable.h
The file was modifiedflang/module/__fortran_type_info.f90
The file was modifiedflang/runtime/allocatable.cpp
The file was modifiedflang/runtime/pointer.cpp
The file was modifiedflang/runtime/descriptor-io.h
The file was modifiedflang/runtime/derived.cpp
The file was modifiedflang/lib/Semantics/runtime-type-info.cpp
The file was modifiedflang/lib/Semantics/tools.cpp
The file was modifiedflang/include/flang/Semantics/type.h
The file was modifiedflang/lib/Semantics/resolve-names.cpp
The file was modifiedflang/test/Semantics/offsets01.f90
The file was modifiedflang/runtime/CMakeLists.txt
The file was modifiedflang/runtime/type-info.cpp
The file was modifiedflang/runtime/descriptor.cpp
The file was modifiedflang/runtime/namelist.cpp
The file was modifiedflang/lib/Evaluate/tools.cpp
The file was modifiedflang/include/flang/Semantics/tools.h
The file was modifiedflang/runtime/derived.h
The file was modifiedflang/test/Semantics/call10.f90
The file was modifiedflang/runtime/descriptor.h
The file was modifiedflang/lib/Semantics/type.cpp
Commit b43e083bb6b145905cac576b728f238a692a0048 by pklausler
[flang] Don't require newline at EOF in unformatted sequential runtime input

F18 was sigalling an end-of-file error condition when reading an
unformatted sequential input file without an ultimate newline
(or CR-LF). Other Fortran implementations can handle it, so change
the runtime to support it.

Differential Revision: https://reviews.llvm.org/D106321
The file was modifiedflang/runtime/file.cpp
The file was modifiedflang/runtime/unit.cpp
Commit 13302c06cdae6b03e56e7e68cd7dea604741352b by spatel
[ConstantFolding] avoid crashing on a fake math library call

https://llvm.org/PR50960
The file was addedllvm/test/Transforms/InstSimplify/ConstProp/libfunc.ll
The file was modifiedllvm/lib/Analysis/ConstantFolding.cpp
Commit c53a5eebb1f40a0f79eeb4a95fe707bc613a7d2f by i
[ELF][test] Add -DAG

The guid of a local linkage variable has the module path encoded, so the
order between a local linkage variable and a non-local linkage variable
isn't guaranteed.
The file was modifiedlld/test/ELF/lto/comdat-nodeduplicate.ll
Commit 75187aa352554255219125d614fbb1a1141c4c7d by jonathan_roelofs
[AArch64][GlobalISel] Legalize ctpop for v2s64, v2s32, v4s32, v4s16, v8s16

https://llvm.godbolt.org/z/nTTK6M5qe

Differential revision: https://reviews.llvm.org/D106388
The file was modifiedllvm/test/CodeGen/AArch64/GlobalISel/legalize-ctpop.mir
The file was modifiedllvm/lib/Target/AArch64/GISel/AArch64LegalizerInfo.cpp
The file was removedllvm/test/CodeGen/AArch64/GlobalISel/legalize-vector-ctpop.mir
Commit f6769b663a0d4432b5e00e0c03904a5dfba7b077 by jonathan_roelofs
[tests] Move new tests into the PowerPC folder

That way they get marked as UNSUPPORTED by LIT when the ppc backend has not
been built.
The file was removedllvm/test/CodeGen/builtins-ppc-xlcompat-move-tofrom-regs.ll
The file was removedllvm/test/CodeGen/builtins-ppc-xlcompat-prefetch.ll
The file was addedllvm/test/CodeGen/PowerPC/builtins-ppc-xlcompat-prefetch.ll
The file was addedllvm/test/CodeGen/PowerPC/builtins-ppc-xlcompat-move-tofrom-regs.ll
Commit fbd3bb4365e145a5033fdeea0ede978304d22d68 by aditya_nandakumar
[NFC][AssemblyWriter] Allow AssemblyWriter::printBasicBlock() to print blocks that don't have parents.

Remove the assert in AssemblyWriter::printBasicBlock() and
in BasicBlock::isEntryBlock() that require blocks to have parents.
Instead, have BasicBlock::isEntryBlock() return false for unattached
blocks. This allows us to call these functions for blocks that are
not yet added to a module which is a useful debugging capability.

Committing for xiaoqing_wu

https://reviews.llvm.org/D106127k
The file was modifiedllvm/lib/IR/AsmWriter.cpp
Commit 2fd1520247de6ba1679e7288e3678fb7f8ca2183 by albionapc
[PowerPC] Implemented mtmsr, mfspr, mtspr Builtins

Implemented builtins for mtmsr, mfspr, mtspr on PowerPC;
the patch is intended for XL Compatibility.

Differential revision: https://reviews.llvm.org/D106130
The file was modifiedllvm/lib/Target/PowerPC/PPCInstrInfo.td
The file was modifiedclang/lib/Basic/Targets/PPC.cpp
The file was modifiedllvm/include/llvm/IR/IntrinsicsPowerPC.td
The file was modifiedclang/test/CodeGen/builtins-ppc-xlcompat-move-tofrom-regs.c
The file was addedllvm/test/CodeGen/PowerPC/builtins-ppc-xlcompat-mfspr-mtspr-64bit-only.ll
The file was modifiedclang/include/clang/Basic/BuiltinsPPC.def
The file was modifiedllvm/test/CodeGen/PowerPC/builtins-ppc-xlcompat-move-tofrom-regs.ll
The file was addedllvm/test/CodeGen/PowerPC/builtins-ppc-xlcompat-mfspr-mtspr-aix32.ll
The file was modifiedclang/lib/CodeGen/CGBuiltin.cpp
The file was modifiedclang/test/CodeGen/builtins-ppc-xlcompat-error.c
The file was modifiedllvm/lib/Target/PowerPC/PPCInstr64Bit.td
Commit a876d09bc7fbb16ef38d50ce84059e50d6829f23 by Lang Hames
[JITLink] Add support for moving blocks and symbols between sections.

LinkGraph::transferBlock can be used to move a block and all associated symbols
from one section to another.

LinkGraph::mergeSections moves all blocks and sections from a source section to
a destination section.
The file was modifiedllvm/unittests/ExecutionEngine/JITLink/LinkGraphTests.cpp
The file was modifiedllvm/lib/ExecutionEngine/JITLink/JITLink.cpp
The file was modifiedllvm/include/llvm/ExecutionEngine/JITLink/JITLink.h
Commit ca4a9386170e656b22773b09f240d26f49a8877c by Lang Hames
[JITLink][MachO] Detect MachO::S_THREAD_LOCAL_ZEROFILL sections as zero-fill.

This will be used in upcoming MachO native TLV support patches to LLVM and
the ORC runtime.
The file was addedllvm/test/ExecutionEngine/JITLink/X86/MachO_thread_bss.s
The file was modifiedllvm/lib/ExecutionEngine/JITLink/MachOLinkGraphBuilder.cpp
The file was modifiedllvm/lib/ExecutionEngine/JITLink/MachOLinkGraphBuilder.h
Commit fe1fa43f16beac1506a2e73a9f7b3c81179744eb by Lang Hames
[ORC][ORC-RT] Add initial native-TLV support to MachOPlatform.

Adds code to LLVM (MachOPlatform) and the ORC runtime to support native MachO
thread local variables. Adding new TLVs to a JITDylib at runtime is supported.

On the LLVM side MachOPlatform is updated to:

1. Identify thread local variables in the LinkGraph and lower them to GOT
accesses to data in the __thread_data or __thread_bss sections.

2. Merge and report the address range of __thread_data and thread_bss sections
to the runtime.

On the ORC runtime a MachOTLVManager class introduced which records the address
range of thread data/bss sections, and creates thread-local instances from the
initial data on demand. An orc-runtime specific tlv_get_addr implementation is
included which saves all register state then calls the MachOTLVManager to get
the address of the requested variable for the current thread.
The file was modifiedllvm/lib/ExecutionEngine/Orc/MachOPlatform.cpp
The file was modifiedcompiler-rt/lib/orc/macho_platform.cpp
The file was modifiedcompiler-rt/lib/orc/macho_platform.h
The file was modifiedcompiler-rt/lib/orc/CMakeLists.txt
The file was modifiedllvm/include/llvm/ExecutionEngine/Orc/MachOPlatform.h
The file was modifiedllvm/lib/ExecutionEngine/JITLink/MachO_x86_64.cpp
The file was addedcompiler-rt/lib/orc/macho_tlv.x86-64.s
The file was addedcompiler-rt/test/orc/TestCases/Darwin/x86-64/trivial-tlv.S
Commit 6d8c63946cc259c0af02584b7cc690dde11dea35 by Lang Hames
Revert "[ORC][ORC-RT] Add initial native-TLV support to MachOPlatform."

Reverts commit fe1fa43f16beac1506a2e73a9f7b3c81179744eb while I investigate
failures on Linux.
The file was modifiedllvm/lib/ExecutionEngine/JITLink/MachO_x86_64.cpp
The file was modifiedcompiler-rt/lib/orc/macho_platform.cpp
The file was removedcompiler-rt/test/orc/TestCases/Darwin/x86-64/trivial-tlv.S
The file was modifiedcompiler-rt/lib/orc/macho_platform.h
The file was removedcompiler-rt/lib/orc/macho_tlv.x86-64.s
The file was modifiedllvm/include/llvm/ExecutionEngine/Orc/MachOPlatform.h
The file was modifiedcompiler-rt/lib/orc/CMakeLists.txt
The file was modifiedllvm/lib/ExecutionEngine/Orc/MachOPlatform.cpp
Commit 04195843ef91d012dbaa1611b348447f8136c271 by walter erquinigo
[intel pt] Add TSC timestamps

Differential Revision: https://reviews.llvm.org/D106328
The file was modifiedlldb/source/Plugins/Trace/intel-pt/TraceIntelPT.h
The file was modifiedlldb/source/Utility/TraceIntelPTGDBRemotePackets.cpp
The file was modifiedlldb/source/Plugins/Trace/intel-pt/TraceIntelPT.cpp
The file was modifiedlldb/source/Plugins/Trace/intel-pt/TraceCursorIntelPT.cpp
The file was modifiedlldb/source/Plugins/Process/Linux/IntelPTManager.cpp
The file was modifiedlldb/source/Plugins/Trace/intel-pt/TraceIntelPTConstants.h
The file was modifiedlldb/source/Commands/CommandObjectThread.cpp
The file was modifiedlldb/docs/lldb-gdb-remote.txt
The file was modifiedlldb/source/Target/TraceInstructionDumper.cpp
The file was modifiedlldb/source/Plugins/Trace/intel-pt/TraceIntelPTOptions.td
The file was modifiedlldb/source/Commands/Options.td
The file was modifiedlldb/source/Plugins/Trace/intel-pt/CommandObjectTraceStartIntelPT.h
The file was addedlldb/test/API/commands/trace/TestTraceTimestampCounters.py
The file was modifiedlldb/include/lldb/Target/TraceCursor.h
The file was modifiedlldb/source/Plugins/Trace/intel-pt/TraceCursorIntelPT.h
The file was modifiedlldb/include/lldb/Utility/TraceIntelPTGDBRemotePackets.h
The file was modifiedlldb/include/lldb/Target/TraceInstructionDumper.h
The file was modifiedlldb/packages/Python/lldbsuite/test/tools/intelpt/intelpt_testcase.py
The file was modifiedlldb/source/Plugins/Trace/intel-pt/IntelPTDecoder.cpp
The file was modifiedlldb/source/Plugins/Process/Linux/IntelPTManager.h
The file was modifiedlldb/source/Plugins/Trace/intel-pt/CommandObjectTraceStartIntelPT.cpp
The file was modifiedlldb/source/Plugins/Trace/intel-pt/DecodedThread.h
The file was modifiedlldb/source/Plugins/Trace/intel-pt/DecodedThread.cpp
Commit cb53febe3d2f9b8e648d12b50915086d5774bcec by gcmn
[Bazel] Remove explicit relative_to_caller_repository

This is the default and the argument is deprecated. The documentation
indicating it's the default is only since 4.0
(https://docs.bazel.build/versions/4.0.0/skylark/lib/Label.html#Label),
but looking at the code it has been the default since its introduction
in https://bazel.googlesource.com/bazel/+/6f15335dea with Bazel 0.2.1
(https://bazel.googlesource.com/bazel/+show/0.2.1/CHANGELOG.md)

Reviewed By: jpienaar

Differential Revision: https://reviews.llvm.org/D106411
The file was modifiedutils/bazel/llvm-project-overlay/mlir/tblgen.bzl
The file was modifiedutils/bazel/llvm-project-overlay/llvm/tblgen.bzl
Commit 3de06260f746e8a768330fdcc51ea031c39f8860 by hanchung
[mlir][Linalg] Update signatures of the callback functions.

This allows caller to use non-const functions, e.g., `getOperandNumber`, etc. It
is expected that OpOperand is not modified in a callback function.

Reviewed By: mravishankar

Differential Revision: https://reviews.llvm.org/D106322
The file was modifiedmlir/lib/Dialect/Linalg/Transforms/ElementwiseOpFusion.cpp
The file was modifiedmlir/include/mlir/Dialect/Linalg/Transforms/Transforms.h
Commit afaf92826e4a3b8c22dbdc0427a18093efe5508a by jonathan_roelofs
[GlobalISel] Mark memcpy/memmove/memset as thisreturn

https://clang.godbolt.org/z/9az64j8W6

rdar://77466123

Differential revision: https://reviews.llvm.org/D105370
The file was modifiedllvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
The file was modifiedllvm/test/CodeGen/AArch64/GlobalISel/legalize-memcpy-et-al.mir
The file was modifiedllvm/test/CodeGen/AArch64/GlobalISel/legalize-memlib-debug-loc.mir
Commit a14b4e34a4569bb000ccdd4501628e1b891bcb38 by jonathan_roelofs
[GlobalISel] Tail call memcpy/memmove/memset even in the presence of copies

Differentail revision: https://reviews.llvm.org/D105382
The file was modifiedllvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
The file was modifiedllvm/test/CodeGen/AArch64/GlobalISel/legalize-memcpy-et-al.mir
Commit 403e67d34d03196f27cb2958e80ff980d921aba8 by ayermolo
[DWP] Refactoring llvm-dwp in to a library.

This is a step1, mechanical refactor, of moving the bulk of llvm-dwp functionality in to a library. This should allow other tools, like BOLT, to re-use some of the llvm-dwp functionality.

Reviewed By: dblaikie

Differential Revision: https://reviews.llvm.org/D106198
The file was addedllvm/tools/llvm-dwp/DWP.cpp
The file was modifiedllvm/tools/llvm-dwp/CMakeLists.txt
The file was modifiedllvm/tools/llvm-dwp/DWPStringPool.h
The file was modifiedllvm/tools/llvm-dwp/DWPError.h
The file was addedllvm/tools/llvm-dwp/DWP.h
The file was modifiedllvm/tools/llvm-dwp/llvm-dwp.cpp
Commit d81a3cbe8b5da5d1960c08375cdfafbf8eccd1a9 by llvmgnsyncbot
[gn build] Port 403e67d34d03
The file was modifiedllvm/utils/gn/secondary/llvm/tools/llvm-dwp/BUILD.gn
Commit 0fab5369000b5aeff5d20b8baace2eaf7564ddf3 by pklausler
[flang] Remove now-unused private data member, silence warning

A field in DescriptorAddendum became unused during a recent
change but was not removed from the definition; it now elicits
a legitimate warning that's affecting some buildbots.  Remove it.
The file was modifiedflang/runtime/descriptor.h
Commit 65cead410be042d7f627c806b985c30082bed704 by gcmn
[Bazel] Remove copypasta from linalggen.bzl
The file was modifiedutils/bazel/llvm-project-overlay/mlir/linalggen.bzl
Commit be8738324c1aa9c9c56ae59cd113e29bba2c13e0 by jonathan_roelofs
[MachineVerifier] Diagnose invalid INSERT_SUBREGs

Differential revision: https://reviews.llvm.org/D105953
The file was modifiedllvm/lib/CodeGen/MachineVerifier.cpp
The file was addedllvm/test/MachineVerifier/test_insert_subreg.mir
The file was modifiedllvm/test/CodeGen/X86/domain-reassignment.mir
Commit 7f7fb2ef5da356cb7c8ff720b703d028c94fedd0 by Vitaly Buka
[compiler-rt] Fix %device_rundir test substitution

"/" needs to be removed to avoid making absolute path.
The file was modifiedcompiler-rt/test/lit.common.cfg.py
Commit ee6c5b448da664660e8fe961049f49bcb962be8f by Vitaly Buka
[lsan] Remove %pull_from_device from tests

Replaced with %adb_shell cat.
The file was modifiedcompiler-rt/test/lit.common.cfg.py
The file was modifiedcompiler-rt/test/lsan/TestCases/Linux/log-path_test.cpp
Commit 300dc054e695ee18beb6f4a23898e50938251e2b by Vitaly Buka
[lsan] Remove undefined ENV variables
The file was modifiedcompiler-rt/test/lsan/TestCases/use_after_return.cpp
The file was modifiedcompiler-rt/test/lsan/TestCases/ignore_object_errors.cpp
Commit 2607209b3fffc0a01e02df3623cf2a46b2be2bc0 by stellaraccident
Remove libMLIRPublicAPI DSO.

libMLIRPublicAPI.so came into existence early when the Python and C-API were being co-developed because the Python extensions need a single DSO which exports the C-API to link against. It really should never have been exported as a mondo library in the first place, which has caused no end of problems in different linking modes, etc (i.e. the CAPI tests depended on it).

This patch does a mechanical move that:

* Makes the C-API tests link directly to their respective libraries.
* Creates a libMLIRPythonCAPI as part of the Python bindings which assemble to exact DSO that they need.

This has the effect that the C-API is no longer monolithic and can be subset and used piecemeal in a modular fashion, which is necessary for downstreams to only pay for what they use. There are additional, more fundamental changes planned for how the Python API is assembled which should make it more out of tree friendly, but this minimal first step is necessary to break the fragile dependency between the C-API and Python API.

Downstream actions required:

* If using the C-API and linking against MLIRPublicAPI, you must instead link against its constituent components. As a reference, the Python API dependencies are in lib/Bindings/Python/CMakeLists.txt and approximate the full set of dependencies available.
* If you have a Python API project that was previously linking against MLIRPublicAPI (i.e. to add its own C-API DSO), you will want to `s/MLIRPublicAPI/MLIRPythonCAPI/` and all should be as it was. There are larger changes coming in this area but this part is incremental.

Reviewed By: mehdi_amini

Differential Revision: https://reviews.llvm.org/D106369
The file was modifiedmlir/lib/Bindings/Python/CMakeLists.txt
The file was modifiedmlir/test/CAPI/CMakeLists.txt
The file was modifiedmlir/lib/CAPI/CMakeLists.txt
The file was modifiedmlir/cmake/modules/AddMLIRPython.cmake
The file was modifiedmlir/include/mlir-c/Support.h
The file was modifiedmlir/python/mlir/_cext_loader.py
The file was modifiedmlir/cmake/modules/AddMLIR.cmake
The file was modifiedmlir/lib/Bindings/Python/Conversions/CMakeLists.txt
The file was modifiedmlir/lib/Bindings/Python/Transforms/CMakeLists.txt
Commit ec9767ef6479714a1cdba6fdd6b4375063a19082 by jpienaar
[mlir] Use OpTraitList to define InferTensorType. NFC
The file was modifiedmlir/include/mlir/Interfaces/InferTypeOpInterface.td
The file was modifiedmlir/test/lib/Dialect/Test/TestOps.td
Commit 51db2363243c7fccee9d9c4f74399e8dd9d85b82 by ayermolo
[DWP] Fix for Refactoring llvm-dwp in to a library

Fix build for https://reviews.llvm.org/D106198 when -DBUILD_SHARED_LIBS=ON. Test Plan:

Reviewed By: dblaikie

Differential Revision: https://reviews.llvm.org/D106414
The file was modifiedllvm/tools/llvm-dwp/CMakeLists.txt
Commit 89ce6449024d2b288b825e815ab5cc11faf04d22 by kai.wang
[Clang][RISCV] Add half-precision FP for vle16/vse16.

I missed to add half-precision FP types for vle16/vse16 in the previous
patches. Added them in this patch.

Differential Revision: https://reviews.llvm.org/D106340
The file was modifiedclang/test/CodeGen/RISCV/rvv-intrinsics/vse.c
The file was modifiedclang/include/clang/Basic/riscv_vector.td
The file was modifiedclang/test/CodeGen/RISCV/rvv-intrinsics/vle.c
Commit cd4d244757eaab164ea472056082e95947fe4b9e by Vitaly Buka
[NFC][hwasan] Simplify expression
The file was modifiedllvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
Commit a4904ebb88e84bd86e1eda9c8e62eeb99273eada by Vitaly Buka
[NFC][hwasan] Remove "pragma GCC poison"

With ifdefs they make code less readable.
The file was modifiedllvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
Commit d3738a09fb2587f584cec5faefda1f37743524a5 by powerman1st
[RISCV][test] Add tests for mul optimization in the zba extension with SH*ADD

These tests will show the following optimization by future patches.

(mul x, 11) -> (SH1ADD (SH2ADD x, x), x)
(mul x, 19) -> (SH1ADD (SH3ADD x, x), x)
(mul x, 13) -> (SH2ADD (SH1ADD x, x), x)
(mul x, 21) -> (SH2ADD (SH2ADD x, x), x)
(mul x, 37) -> (SH2ADD (SH3ADD x, x), x)
(mul x, 25) -> (SH3ADD (SH1ADD x, x), x)
(mul x, 41) -> (SH3ADD (SH2ADD x, x), x)
(mul x, 73) -> (SH3ADD (SH3ADD x, x), x)

Reviewed By: craig.topper

Differential Revision: https://reviews.llvm.org/D106031
The file was modifiedllvm/test/CodeGen/RISCV/rv64zba.ll
The file was modifiedllvm/test/CodeGen/RISCV/rv32zba.ll
Commit 13e08de91da64ce969b14a0caa46dc4712bcf388 by pklausler
[flang] Two tweaks to mollify buildbots

One test's expected output needs adjustment, and one new compiler
warning needs to be silenced.
The file was modifiedflang/test/Semantics/offsets01.f90
The file was modifiedflang/runtime/type-info.cpp
Commit bec4a8157d673285280b86143738b30489a5f2e7 by tianqing.wang
[X86] Update MachineLoopInfo in CMOV conversion.

If a CMOV is in a loop and is converted to branches, CMOV conversion wouldn't
add newly created basic blocks to loop info. Since the candidates is collected
based on loops, instructions in these basic blocks will be ignored.

Reviewed By: pengfei

Differential Revision: https://reviews.llvm.org/D104623
The file was modifiedllvm/test/CodeGen/X86/x86-cmov-converter.ll
The file was modifiedllvm/lib/Target/X86/X86CmovConversion.cpp
Commit d7314b3c094e96fbca7b195eab5fa521bda5fe22 by chiahungduan
[mlir-tblgen] Support binding multi-results of NativeCodeCall

We are able to bind NativeCodeCall result as binding operation. To make
table-gen have better understanding in the form of helper function,
we need to specify the number of return values in the NativeCodeCall
template. A VoidNativeCodeCall is added for void case.

Reviewed By: jpienaar

Differential Revision: https://reviews.llvm.org/D102160
The file was modifiedmlir/include/mlir/IR/OpBase.td
The file was modifiedmlir/test/lib/Dialect/Test/TestPatterns.cpp
The file was modifiedmlir/test/mlir-tblgen/pattern.mlir
The file was modifiedmlir/tools/mlir-tblgen/RewriterGen.cpp
The file was modifiedmlir/docs/DeclarativeRewrites.md
The file was modifiedmlir/include/mlir/TableGen/Pattern.h
The file was modifiedmlir/lib/TableGen/Pattern.cpp
The file was modifiedmlir/test/lib/Dialect/Test/TestOps.td
Commit ec14ab96242144ac18ab32963d66855a0a6750c8 by sivachandra
[libc] Add a new test matcher for tests raising floating point exceptions.

This new matcher does not use death tests to check if SIGFPE is raised.
Instead, that a SIGFPE was raised is checked using a SIGFPE signal handler.

Reviewed By: mcgrathr

Differential Revision: https://reviews.llvm.org/D106086
The file was modifiedlibc/test/src/CMakeLists.txt
The file was modifiedlibc/test/src/math/CMakeLists.txt
The file was modifiedlibc/test/src/fenv/enabled_exceptions_test.cpp
The file was modifiedlibc/test/src/fenv/CMakeLists.txt
The file was modifiedlibc/utils/FPUtil/TestHelpers.cpp
The file was modifiedlibc/test/src/fenv/feholdexcept_test.cpp
The file was modifiedlibc/utils/FPUtil/TestHelpers.h
Commit a7733e9556b5a6334c910f88bcd037e84e17e3fc by Lang Hames
Re-apply "[ORC][ORC-RT] Add initial native-TLV support to MachOPlatform."

Reapplies fe1fa43f16beac1506a2e73a9f7b3c81179744eb, which was reverted in
6d8c63946cc259c0af02584b7cc690dde11dea35, with fixes:

1. Remove .subsections_via_symbols directive from macho_tlv.x86-64.s (it's
not needed here anyway).

2. Return error from pthread_key_create to the MachOPlatform to silence unused
variable warning.
The file was modifiedcompiler-rt/lib/orc/CMakeLists.txt
The file was modifiedllvm/include/llvm/ExecutionEngine/Orc/MachOPlatform.h
The file was modifiedllvm/lib/ExecutionEngine/Orc/MachOPlatform.cpp
The file was addedcompiler-rt/lib/orc/macho_tlv.x86-64.s
The file was modifiedllvm/lib/ExecutionEngine/JITLink/MachO_x86_64.cpp
The file was addedcompiler-rt/test/orc/TestCases/Darwin/x86-64/trivial-tlv.S
The file was modifiedcompiler-rt/lib/orc/macho_platform.cpp
The file was modifiedcompiler-rt/lib/orc/macho_platform.h
Commit d4abdefc998a1ee19d5edc79ec233774cbf64f6a by Lang Hames
[ORC-RT] Rename macho_tlv.x86-64.s to macho_tlv.x86-64.S (uppercase suffix)

Uppercase .S suffixes for assembly seem to be the convention in compiler-rt.

I'm hoping this will fix the build failures on ccache builders (e.g.
https://lab.llvm.org/buildbot/#/builders/109/builds/18980)
The file was modifiedcompiler-rt/lib/orc/CMakeLists.txt
The file was removedcompiler-rt/lib/orc/macho_tlv.x86-64.s
The file was addedcompiler-rt/lib/orc/macho_tlv.x86-64.S

Summary

  1. [zorg] Add HIP builder script (details)
Commit 1a32648b32ec114a62bf4f206a01d6827a6315f1 by enye.shi
[zorg] Add HIP builder script

Simple script for HIP builder to build llvm-project incrementally,
then build and execute HIP tests from llvm-test-suite.

Reviewed By: tra

Differential Revision: https://reviews.llvm.org/D100060
The file was addedzorg/buildbot/builders/annotated/buildbot-helper.sh
The file was addedzorg/buildbot/builders/annotated/hip-build.sh