Changes

Summary

  1. Add openmp to dependents for openmp-runtime (details)
Commit 0c329ebff09d723d6f9d835289439c5922ba5e23 by ron.lieberman
Add openmp to dependents for openmp-runtime
The file was modifiedbuildbot/osuosl/master/config/builders.py (diff)

Summary

  1. [Docs] Remove subversion reference from MyFirstTypoFix.rst (details)
  2. [Docs][Phabricator] Mention how to create a draft revision (details)
  3. [LLDB][Docs] Convert some .txt files to .rst (details)
  4. [LLDB][Docs] Move best-practices.txt contain to resources/test.rst (details)
  5. Fix typo in comments (details)
  6. Fix typo s/beloinging/belonging (details)
  7. [AIX] Rename shared_libraries_to_archive -> objects_to_archive. NFC. (details)
  8. [clang] Fix Typo in AST Matcher Reference (details)
  9. Fix typo in two files in Clang, patch by FusionBolt (details)
  10. [Arm] Add assert in T2 Imm7s code emitter (details)
  11. [NFC] Correct typo in CodeGenMapTable.cpp, patch by Jordi (details)
  12. Use dSYM's file addr for Sections when it doesn't match binary (details)
  13. [OpenCL] Defines helper function for kernel language compatible OpenCL version (details)
  14. [mlir][gpu] folds memref.dim of gpu.alloc (details)
  15. [mlir] Prevent assertion failure in DropUnitDims (details)
  16. Fix test by adding REQUIRES: x86-registered-target to skip test in configurations that do not include x86. (details)
  17. [X86] Copy X86SchedSkylakeServer.td to X86SchedIceLake.td (details)
  18. [lldb] Add minidump save-core functionality to ELF object files (details)
  19. [MCA][X86] Add basic coverage for icelake arch (details)
  20. Revert "[lldb] Add minidump save-core functionality to ELF object files" (details)
  21. [lldb] [gdb-remote client] Remove breakpoints in forked processes (details)
  22. Revert "[SLP]No need to schedule/check parent for extract{element/value} instruction." (details)
  23. [InstCombine] fix typo; NFC (details)
  24. [InstCombine] add tests for FMF propagation for select-of-fneg; NFC (details)
  25. [SLPVectorizer][Test] Add test for extractelements with (non)const indices (NFC) (details)
  26. [libcxx] Remove the locale fallback for NuttX (details)
  27. [gn build] Port 3285c7a4364e (details)
  28. [InstCombine] fix propagation of FMF through select-of-fnegs (details)
  29. [GlobalDCE] Handle relative pointers in VFE (for Swift vtables) (details)
  30. Revert "[DebugInfo] Emit DW_TAG_namelist and DW_TAG_namelist_item" (details)
  31. [libc++][NFC] Add missing HIDE_FROM_ABI on implementation detail __launder (details)
  32. [VP] implementation of sdag support for VP memory intrinsics (details)
  33. [clang-repl] Install clang-repl (details)
  34. [OptTable] Improve error message output for grouped short options (details)
  35. Make a generic test generic again. (details)
  36. [SCEV] If max BTC is zero, then so is the exact BTC [1 of N] (details)
  37. [SystemZ][z/OS] Create html report file with text flag (details)
  38. [clang] Remove redundant calls to c_str() (NFC) (details)
  39. [llvm-lit] unbreak clang-only builds by not assuming llvm-lit in build dir (details)
  40. [InstCombine] fix typos in comments; NFC (details)
  41. [OpenMP] Fix task wait doesn't work as expected in serialized team (details)
  42. [AlignFromAssume] Bailout w/non-constant alignments (pr51680) (details)
  43. [runtime] Move prolog/epilog block to a post-simplify strategy (details)
  44. [libc++][NFC] split <charconv>. (details)
  45. [gn build] Port e983a659e51c (details)
  46. [lldb] Don't save empty expressions in the multiline editor history (details)
  47. [ARM] Test for VMINNM/VMAXNM in tail predicated loops. (details)
  48. [ARM] Add missing validForTailPredication for VMINNM/VMAXNM (details)
  49. [GlobalISel] Don't use G_FPTOSI in G_ISNAN legalization (details)
  50. [AMDGPU] Enable ds_min/ds_max on more subtargets (details)
  51. [profile] Specify "-V" to otool to get expected test output (details)
  52. [flang] Fold PACK() (details)
  53. Change dialect `printOperation()` hook to `getOperationPrinter()` (details)
  54. Change ASM Op printer to print the operation name in the framework instead of leaving it up to each individual operation (details)
  55. Add a new interface allowing to set a default dialect to be used for printing/parsing regions (details)
  56. [libcxx][docs] Mark LWG3153 as complete (details)
  57. [CMake] Remove unneeded -Wnon-virtual-dtor availability check (details)
  58. [SCEV] Add a testcase for zero max btc with non-constant exact btc (details)
  59. [PPCISelLowering] avoid emitting libcalls to __mulodi4() (details)
  60. [mlir][Linalg] Drop output tensor from `linalg.pad_tensor` op. (details)
  61. [CMake] Remove unneeded -Wdelete-non-virtual-dtor availability check (details)
  62. [SLPVectorizer] Add test for inaccessiblememonly call (NFC) (details)
  63. [RISCVISelLowering] avoid emitting libcalls to __mulodi4() and __multi3() (details)
  64. [flang] Downgrade inappropriate error message to a warning (details)
  65. [libc++] Add missing space in (__map_value_compare&__y) etc. NFCI. (details)
  66. Moved the test to X86 as it's x86 specific. (details)
  67. Fix MLIR python binding test after changes in ASM printer (details)
  68. [lldb] [test] Mark fork-follow-parent-softbp.test as darwin-unsupported (details)
  69. Fix some typos in the llvm docs (details)
  70. [libc++] Remove workaround for broken __is_trivially_copyable on old GCC (details)
  71. [libc++][NFC] Rename _LIBCPP_NODISCARD_ATTRIBUTE to _LIBCPP_NODISCARD (details)
  72. [ELF][test] Fix R_AARCH64_ADR_PREL_PG_HI21 typo (details)
  73. [LoadStoreVectorizer] Add test for inaccessiblememonly call (NFC) (details)
  74. [OpenMP][OpenACC] Implement `ompx_hold` map type modifier extension in Clang (1/2) (details)
  75. [OpenMP][OpenACC] Implement `ompx_hold` map type modifier extension in runtime (2/2) (details)
  76. [flang] Fold UNPACK and TRANSPOSE (details)
  77. [llvm-profgen] Support LBR only perf script (details)
  78. [SLPVectorizer] Make aliasing check more precise (details)
  79. [RegAlloc] Immediately delete dead instructions with live uses (details)
  80. [libc++][NFC] Remove redundant friend declaration for operator== (details)
  81. Revert "[OptTable] Improve error message output for grouped short options" (details)
  82. [llvm-ar][nfc] Reword help message to be less ambiguous on what p and t do. (details)
  83. [DFSan][NFC] Fix comment formatting. (details)
  84. [mlir][sparse] Rename the public SparseTensorStorage::asCOO to toCOO (details)
  85. [lldb] Tighten lock in Language::ForEach (details)
  86. [OpenMP] Add an option to always inline OpenMP device functions. (details)
  87. [LLD][COFF] Clean paths in PDB even when /pdbsourcepath is omitted (details)
  88. [InstCombine] add tests for min/max intrinsics with not ops; NFC (details)
  89. [Linker] Support weak symbols in nodeduplicate COMDAT group (details)
  90. [X86] Enable half type support in inline assembly constraints (details)
  91. [Polly] Mention correct flag in debug output. NFCI. (details)
  92. [Polly] Use subtyped isl::schedule_nodes for ScheduleTreeVisitor. NFC. (details)
  93. [OpenMP][AMDGPU] XFAIL test where kernels call printf (details)
  94. [DWARF] Support new TAG DW_TAG_LLVM_annotation (details)
  95. [TableGen] Allow target specific flags for RegisterClass (details)
  96. [AMDGPU] Split entry basic block after alloca instructions. (details)
  97. [clang-repl] Re-implement clang-interpreter as a test case. (details)
  98. [Linker] Handle comdat nodeduplicate (details)
Commit 387a8dea7234c94ddc7a1c14c04bb2d894947c53 by shivam98.tkg
[Docs] Remove subversion reference from MyFirstTypoFix.rst
The file was modifiedllvm/docs/MyFirstTypoFix.rst
Commit 8254f4afcbca7ea32dfe9739459016241f0a60c2 by shivam98.tkg
[Docs][Phabricator] Mention how to create a draft revision

https://llvm.org/docs/Phabricator.html have two links to Arcnist guide but
none of them mention how to create a draft revision. It would create some less noise if
developers create draft revisoin in this(--draft) way instead of [WIP] tag way.

Reviewed By: dblaikie

Differential Revision: https://reviews.llvm.org/D108970
The file was modifiedllvm/docs/Phabricator.rst
Commit 3af9847a9581fca3c81c7f8669f6f617e35ba9e5 by shivam98.tkg
[LLDB][Docs] Convert some .txt files to .rst

Upadate some .txt files to .rst for consistency as most
of the documentation is written in reStructuredText format.

Signed-off-by: Shivam Gupta <shivam98.tkg@gmail.com>

Differential Revision: https://reviews.llvm.org/D108807
The file was removedlldb/docs/use/links.md
The file was addedlldb/docs/use/links.rst
Commit 654e8d6c318a0c4eb9bfd74a9ace6d1a1bda5100 by shivam98.tkg
[LLDB][Docs] Move best-practices.txt contain to resources/test.rst

This file contain some old reference to files those are now either renamed or replaced.
Also this .txt file didn't generate to html during the sphnix documentation build so I send its contents to resources/test.rst file.

Signed-off-by: Shivam Gupta <shivam98.tkg@gmail.com>

Reviewed By: teemperor, mgorny, JDevlieghere

Differential Revision: https://reviews.llvm.org/D108812
The file was removedlldb/docs/testsuite/best-practices.txt
The file was modifiedlldb/docs/resources/test.rst
Commit eb946cc5b66c84e1f3419b1160a42f19d8976137 by shivam98.tkg
Fix typo in comments

Reviewed By: MaskRay, jsji

Differential Revision: https://reviews.llvm.org/D108857
The file was modifiedllvm/include/llvm/Target/TargetOptions.h
The file was modifiedllvm/include/llvm/DebugInfo/CodeView/CodeViewRegisters.def
The file was modifiedllvm/lib/Target/PowerPC/PPCInstrInfo.cpp
Commit ed6cff667ed5b2b67eb80abf8a671cfa79865e97 by shivam98.tkg
Fix typo s/beloinging/belonging

Differential Revision: https://reviews.llvm.org/D107099
The file was modifiedllvm/lib/Transforms/Utils/LCSSA.cpp
Commit a594362436de5d843404ee181b097cc34ca9428d by lkail
[AIX] Rename shared_libraries_to_archive -> objects_to_archive. NFC.
The file was modifiedcompiler-rt/cmake/Modules/CompilerRTAIXUtils.cmake
Commit 4a6d8a11f89b9eae984e1b9608c1c010dc6a037b by shivam98.tkg
[clang] Fix Typo in AST Matcher Reference

In [[ https://clang.llvm.org/docs/LibASTMatchersReference.html | AST Matcher Reference]], the example of matcher `hasDeclContext` contained a typo.

`cxxRcordDecl` was changed to `cxxRecordDecl`.

Differential Revision: https://reviews.llvm.org/D102836
The file was modifiedclang/docs/LibASTMatchersReference.html
Commit e01ac501af20cdbbc199f4f4ac31111e6d705442 by shivam98.tkg
Fix typo in two files in Clang, patch by FusionBolt

Reviewed By: xgupta

Differential Revision: https://reviews.llvm.org/D98254
The file was modifiedclang/lib/AST/Interp/Context.h
The file was modifiedclang/lib/AST/Interp/Interp.h
Commit f417b660eefd512b0058be4aab64180b9a5ee512 by simon.wallis2
[Arm] Add assert in T2 Imm7s code emitter

Add assert to provoke failure in object file output, not just in disassembly output.

Reviewed By: yroux

Differential Revision: https://reviews.llvm.org/D107259
The file was modifiedllvm/lib/Target/ARM/MCTargetDesc/ARMMCCodeEmitter.cpp
Commit 0d02aa6e43a2388fe0fdc14062631a4bc50ef033 by shivam98.tkg
[NFC] Correct typo in CodeGenMapTable.cpp, patch by Jordi

CodeGenMapTable.cpp refers to TableGen as TabelGen in the comments. This appears to be a typo. This patch fixes the typo.

Differential Revision: https://reviews.llvm.org/D76343
The file was modifiedllvm/utils/TableGen/CodeGenMapTable.cpp
Commit c1184ca6eb97e0ac5f7b6cdcc99e3905d27f9d95 by Jason Molenda
Use dSYM's file addr for Sections when it doesn't match binary

When adding a dSYM to a Module and it has different file addresses
from the already-present ObjectFile binary, change the Sections to
use the dSYM's file addresses so the symbol table and DWARF are
properly contained in the Sections.  Previously this was only done
for IsInMemory ObjectFiles, but it's more common than that.

Differential Revision: https://reviews.llvm.org/D108889
rdar://81504400
The file was modifiedlldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.h
The file was modifiedlldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
Commit f9bc1b3bee557de5735c745f9558c47ca568bd96 by Justas.Janickas
[OpenCL] Defines helper function for kernel language compatible OpenCL version

This change defines a helper function getOpenCLCompatibleVersion()
inside LangOptions class. The function contains mapping between
C++ for OpenCL versions and their corresponding compatible OpenCL
versions. This mapping function should be updated each time a new
C++ for OpenCL language version is introduced. The helper function
is expected to simplify conditions on OpenCL C and C++ for OpenCL
versions inside compiler code.

Code refactoring performed.

Differential Revision: https://reviews.llvm.org/D108693
The file was modifiedclang/lib/CodeGen/CodeGenModule.cpp
The file was modifiedclang/lib/Sema/DeclSpec.cpp
The file was modifiedclang/include/clang/Basic/OpenCLOptions.h
The file was modifiedclang/lib/Basic/Targets.cpp
The file was modifiedclang/lib/Sema/SemaDeclAttr.cpp
The file was modifiedclang/lib/Frontend/CompilerInvocation.cpp
The file was modifiedclang/lib/Parse/ParseDecl.cpp
The file was modifiedclang/lib/Sema/SemaExpr.cpp
The file was modifiedclang/lib/Basic/Builtins.cpp
The file was modifiedclang/include/clang/Basic/LangOptions.h
The file was modifiedclang/lib/Basic/LangOptions.cpp
The file was modifiedclang/lib/Sema/SemaType.cpp
The file was modifiedclang/lib/Sema/Sema.cpp
The file was modifiedclang/lib/Sema/SemaDecl.cpp
Commit 0080d2aa5542dc59c79c93b031ab58e1dd7306de by marina.kolpakova
[mlir][gpu] folds memref.dim of gpu.alloc

implements canonicalization which folds memref.dim(gpu.alloc(%size), %idx) -> %size

Differential Revision: https://reviews.llvm.org/D108892
The file was modifiedmlir/lib/Dialect/GPU/IR/GPUDialect.cpp
The file was modifiedmlir/test/Dialect/GPU/canonicalize.mlir
The file was modifiedmlir/include/mlir/Dialect/GPU/GPUOps.td
Commit 44485fcd97490db57df49796d0566a3ce5e23f4c by tpopp
[mlir] Prevent assertion failure in DropUnitDims

Don't assert fail on strided memrefs when dropping unit dims.
Instead just leave them unchanged.

Differential Revision: https://reviews.llvm.org/D108205
The file was modifiedmlir/lib/Dialect/Linalg/Transforms/DropUnitDims.cpp
The file was modifiedmlir/test/Dialect/Linalg/drop-unit-extent-dims.mlir
Commit 76a1a415302d06ceb4a3358493e897e98dd75f77 by douglas.yung
Fix test by adding REQUIRES: x86-registered-target to skip test in configurations that do not include x86.
The file was modifiedllvm/test/CodeGen/Generic/dbg-distringtype-uint.ll
Commit 9e2d14c2851269928df28a38c76d4d87536bcd49 by llvm-dev
[X86] Copy X86SchedSkylakeServer.td to X86SchedIceLake.td

Icelake, Rocketlake and Tigerlake targets currently use the SkylakeServer scheduler model, despite being a later microarchitecture, leading to both reported bugs (PR48110) and discrepancies when comparing llvm-mca reports to other profiling tools (OSACA, uops, uica, etc.). And tbh I'm getting sick of llvm-mca getting blamed for what are backend scheduler model issues :-(

This patch doesn't attempt to fix any of these discrepancies - there should be no changes in codegen - its a setup patch that copies the skx model, renames all the resources, adds the additional ports (but doesn't reference them yet) and updates the llvm-exegesis pfm counter mappings (based off https://sourceforge.net/p/perfmon2/libpfm4/ci/master/tree/lib/events/intel_icl_events.h).

This should make it trivial for anyone with hardware access to use llvm-exegesis reports to iteratively improve the model (my attempts to get hold of a cheap tiger lake box haven't been fruitful yet....).

I will copy the SkylakeServer llvm-mca resource tests as follow up commits - the diff should entirely be the resource renames.

Differential Revision: https://reviews.llvm.org/D108914
The file was modifiedllvm/lib/Target/X86/X86.td
The file was modifiedllvm/lib/Target/X86/X86PfmCounters.td
The file was addedllvm/lib/Target/X86/X86SchedIceLake.td
Commit aafa05e03d629cc6605718c54575256d9d683659 by werat
[lldb] Add minidump save-core functionality to ELF object files

This change adds save-core functionality into the ObjectFileELF that enables
saving minidump of a stopped process. This change is mainly targeting Linux
running on x86_64 machines. Minidump should contain basic information needed
to examine state of threads, local variables and stack traces. Full support
for other platforms is not so far implemented. API tests are using LLDB's
MinidumpParser.

Reviewed By: clayborg

Differential Revision: https://reviews.llvm.org/D108233
The file was modifiedlldb/include/lldb/Core/PluginManager.h
The file was modifiedlldb/source/Commands/Options.td
The file was addedlldb/source/Plugins/ObjectFile/Minidump/ObjectFileMinidump.h
The file was modifiedlldb/source/Core/PluginManager.cpp
The file was modifiedlldb/source/Plugins/ObjectFile/CMakeLists.txt
The file was addedlldb/source/Plugins/ObjectFile/Minidump/MinidumpFileBuilder.cpp
The file was addedlldb/source/Plugins/ObjectFile/Minidump/MinidumpFileBuilder.h
The file was modifiedlldb/source/Commands/CommandObjectProcess.cpp
The file was addedlldb/source/Plugins/ObjectFile/Minidump/CMakeLists.txt
The file was modifiedlldb/source/API/SBProcess.cpp
The file was addedlldb/test/API/functionalities/process_save_core_minidump/Makefile
The file was addedlldb/source/Plugins/ObjectFile/Minidump/ObjectFileMinidump.cpp
The file was addedlldb/test/API/functionalities/process_save_core_minidump/TestProcessSaveCoreMinidump.py
The file was addedlldb/test/API/functionalities/process_save_core_minidump/main.cpp
Commit 7ec7272b8056c70f38081aa55ccfb5e8aacf0c53 by llvm-dev
[MCA][X86] Add basic coverage for icelake arch

Copy the skylake-avx512 tests for icelake-server coverage.

Add icelake/rocketlake/tigerlake test coverage to the relevent generic tests as well.
The file was addedllvm/test/tools/llvm-mca/X86/IceLakeServer/resources-f16c.s
The file was modifiedllvm/test/tools/llvm-mca/X86/cpus.s
The file was modifiedllvm/test/tools/llvm-mca/X86/bextr-read-after-ld.s
The file was addedllvm/test/tools/llvm-mca/X86/IceLakeServer/resources-avx512vl.s
The file was addedllvm/test/tools/llvm-mca/X86/IceLakeServer/resources-fma.s
The file was addedllvm/test/tools/llvm-mca/X86/IceLakeServer/resources-x86_64.s
The file was addedllvm/test/tools/llvm-mca/X86/IceLakeServer/resources-rdseed.s
The file was addedllvm/test/tools/llvm-mca/X86/IceLakeServer/resources-sse1.s
The file was addedllvm/test/tools/llvm-mca/X86/IceLakeServer/resources-avx512bwvl.s
The file was addedllvm/test/tools/llvm-mca/X86/IceLakeServer/resources-avx512bw.s
The file was modifiedllvm/test/tools/llvm-mca/X86/bzhi-read-after-ld.s
The file was addedllvm/test/tools/llvm-mca/X86/IceLakeServer/independent-load-stores.s
The file was addedllvm/test/tools/llvm-mca/X86/IceLakeServer/resources-bmi2.s
The file was addedllvm/test/tools/llvm-mca/X86/IceLakeServer/zero-idioms.s
The file was modifiedllvm/test/tools/llvm-mca/X86/read-after-ld-2.s
The file was addedllvm/test/tools/llvm-mca/X86/IceLakeServer/resources-bmi1.s
The file was addedllvm/test/tools/llvm-mca/X86/IceLakeServer/resources-fsgsbase.s
The file was addedllvm/test/tools/llvm-mca/X86/IceLakeServer/resources-sse3.s
The file was addedllvm/test/tools/llvm-mca/X86/IceLakeServer/resources-pclmul.s
The file was modifiedllvm/test/tools/llvm-mca/X86/variable-blend-read-after-ld-1.s
The file was addedllvm/test/tools/llvm-mca/X86/IceLakeServer/resources-aes.s
The file was addedllvm/test/tools/llvm-mca/X86/IceLakeServer/resources-avx1.s
The file was addedllvm/test/tools/llvm-mca/X86/IceLakeServer/resources-clflushopt.s
The file was addedllvm/test/tools/llvm-mca/X86/IceLakeServer/resources-mmx.s
The file was addedllvm/test/tools/llvm-mca/X86/IceLakeServer/resources-avx512.s
The file was addedllvm/test/tools/llvm-mca/X86/IceLakeServer/resources-sse2.s
The file was addedllvm/test/tools/llvm-mca/X86/IceLakeServer/resources-cmpxchg.s
The file was addedllvm/test/tools/llvm-mca/X86/IceLakeServer/resources-avx512dqvl.s
The file was addedllvm/test/tools/llvm-mca/X86/IceLakeServer/resources-sse42.s
The file was addedllvm/test/tools/llvm-mca/X86/IceLakeServer/resources-movbe.s
The file was addedllvm/test/tools/llvm-mca/X86/IceLakeServer/resources-avx512dq.s
The file was modifiedllvm/test/tools/llvm-mca/X86/fma3-read-after-ld-1.s
The file was modifiedllvm/test/tools/llvm-mca/X86/register-file-statistics.s
The file was modifiedllvm/test/tools/llvm-mca/X86/sqrt-rsqrt-rcp-memop.s
The file was addedllvm/test/tools/llvm-mca/X86/IceLakeServer/resources-popcnt.s
The file was modifiedllvm/test/tools/llvm-mca/X86/read-after-ld-1.s
The file was addedllvm/test/tools/llvm-mca/X86/IceLakeServer/resources-rdrand.s
The file was addedllvm/test/tools/llvm-mca/X86/IceLakeServer/resources-lea.s
The file was addedllvm/test/tools/llvm-mca/X86/IceLakeServer/resources-adx.s
The file was modifiedllvm/test/tools/llvm-mca/X86/read-after-ld-3.s
The file was modifiedllvm/test/tools/llvm-mca/X86/fma3-read-after-ld-2.s
The file was addedllvm/test/tools/llvm-mca/X86/IceLakeServer/resources-prefetchw.s
The file was modifiedllvm/test/tools/llvm-mca/X86/variable-blend-read-after-ld-2.s
The file was addedllvm/test/tools/llvm-mca/X86/IceLakeServer/resources-x86_32.s
The file was addedllvm/test/tools/llvm-mca/X86/IceLakeServer/resources-cmov.s
The file was addedllvm/test/tools/llvm-mca/X86/IceLakeServer/resources-x87.s
The file was addedllvm/test/tools/llvm-mca/X86/IceLakeServer/resources-clwb.s
The file was addedllvm/test/tools/llvm-mca/X86/IceLakeServer/resources-sse41.s
The file was addedllvm/test/tools/llvm-mca/X86/IceLakeServer/resources-ssse3.s
The file was modifiedllvm/test/tools/llvm-mca/X86/scheduler-queue-usage.s
The file was addedllvm/test/tools/llvm-mca/X86/IceLakeServer/resources-avx2.s
The file was addedllvm/test/tools/llvm-mca/X86/IceLakeServer/resources-lzcnt.s
Commit 1f986f60573c6f4355c2d8a5c7ddcb2d32dfd43c by werat
Revert "[lldb] Add minidump save-core functionality to ELF object files"

This reverts commit aafa05e03d629cc6605718c54575256d9d683659.

Broke builder on aarch64 --
https://lab.llvm.org/buildbot/#/builders/96/builds/10926
The file was removedlldb/source/Plugins/ObjectFile/Minidump/ObjectFileMinidump.h
The file was modifiedlldb/include/lldb/Core/PluginManager.h
The file was removedlldb/source/Plugins/ObjectFile/Minidump/MinidumpFileBuilder.h
The file was removedlldb/source/Plugins/ObjectFile/Minidump/MinidumpFileBuilder.cpp
The file was modifiedlldb/source/Commands/Options.td
The file was modifiedlldb/source/Commands/CommandObjectProcess.cpp
The file was removedlldb/source/Plugins/ObjectFile/Minidump/CMakeLists.txt
The file was removedlldb/source/Plugins/ObjectFile/Minidump/ObjectFileMinidump.cpp
The file was modifiedlldb/source/Plugins/ObjectFile/CMakeLists.txt
The file was modifiedlldb/source/Core/PluginManager.cpp
The file was removedlldb/test/API/functionalities/process_save_core_minidump/main.cpp
The file was removedlldb/test/API/functionalities/process_save_core_minidump/TestProcessSaveCoreMinidump.py
The file was removedlldb/test/API/functionalities/process_save_core_minidump/Makefile
The file was modifiedlldb/source/API/SBProcess.cpp
Commit 8307869a224633d3516d98071b45fdec7314f8a3 by mgorny
[lldb] [gdb-remote client] Remove breakpoints in forked processes

Remove software breakpoints from forked processes in order to restore
the original program code before detaching it.

Differential Revision: https://reviews.llvm.org/D100263
The file was modifiedlldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.h
The file was addedlldb/test/Shell/Subprocess/fork-follow-parent-softbp.test
The file was modifiedlldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
The file was addedlldb/test/Shell/Subprocess/clone-follow-parent-softbp.test
The file was modifiedlldb/test/API/functionalities/gdb_remote_client/gdbclientutils.py
Commit 077d4cb3abea3f1a8801ef2f063e8ddfffac4e70 by anton.a.afanasyev
Revert "[SLP]No need to schedule/check parent for extract{element/value} instruction."

Revert since introduced issure reported here:
https://lists.llvm.org/pipermail/llvm-dev/2021-August/152411.html
Discussed starting from here: https://reviews.llvm.org/D108703#2974289

This reverts commit a36bc873a269dca0c5399d72bfdd42d3ddc72671.
The file was modifiedllvm/test/Transforms/SLPVectorizer/X86/remark_extract_broadcast.ll
The file was modifiedllvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
Commit d59ae12d585cf6fa001476fad29bd931587f94f7 by spatel
[InstCombine] fix typo; NFC
The file was modifiedllvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp
Commit 027de5c7d4729fb54b9b88474066afe222a0401a by spatel
[InstCombine] add tests for FMF propagation for select-of-fneg; NFC
The file was modifiedllvm/test/Transforms/InstCombine/fneg.ll
Commit aaae726afb0efdac9867972ec0c5d544a637407a by anton.a.afanasyev
[SLPVectorizer][Test] Add test for extractelements with (non)const indices (NFC)

Add test for an issue discussed here: https://reviews.llvm.org/D108703#2974289
The file was addedllvm/test/Transforms/SLPVectorizer/X86/extract_with_non_const_index.ll
Commit 3285c7a4364eb88fd6753f362d74ee008d5479de by Louis Dionne
[libcxx] Remove the locale fallback for NuttX

Since these functions can handled by NuttX's libc now

Reviewed By: #libc, ldionne

Differential Revision: https://reviews.llvm.org/D108895
The file was modifiedlibcxx/include/CMakeLists.txt
The file was removedlibcxx/include/__support/nuttx/xlocale.h
The file was modifiedlibcxx/include/__locale
Commit 22efb9d364b4b7be27a1a02100d9b35d719906be by llvmgnsyncbot
[gn build] Port 3285c7a4364e
The file was modifiedllvm/utils/gn/secondary/libcxx/include/BUILD.gn
Commit 5d7d689edf01e41d908ced188efcc6405627fd2b by spatel
[InstCombine] fix propagation of FMF through select-of-fnegs

The existing code was unquestionably wrong - it looked at one
fneg and ignored the other 2 instructions.

It was also untested, so it didn't make the list of bugs
flagged by Alive2.

This is an unusual propagation, but Alive2 agress that we
can intersect the fnegs and union that with the select,
then apply the results to both new instructions:
https://alive2.llvm.org/ce/z/SF8_dt
The file was modifiedllvm/test/Transforms/InstCombine/fneg.ll
The file was modifiedllvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
Commit 4c066bd08be3591cfbc81df478c8fc8618755ba1 by Kuba Mracek
[GlobalDCE] Handle relative pointers in VFE (for Swift vtables)

To support Virtual Function Elimination to Swift, this PR adds support for Swift
vtables which contain "relative pointers" instead of direct pointer references.
These are in the form of:

@symbol = ... {
  i32 trunc (i64 sub (i64 ptrtoint (<type> @target to i64), i64 ptrtoint (... @symbol to i64)) to i32)
}

The PR extends GlobalDCE's way of looking up a vtable offset into a dependency
to be able to see through this expression and find the target symbol.

Differential Revision: https://reviews.llvm.org/D107645
The file was modifiedllvm/include/llvm/Analysis/TypeMetadataUtils.h
The file was modifiedllvm/lib/Analysis/TypeMetadataUtils.cpp
The file was modifiedllvm/lib/Transforms/IPO/GlobalDCE.cpp
The file was addedllvm/test/Transforms/GlobalDCE/virtual-functions-relative-pointers-bad.ll
The file was addedllvm/test/Transforms/GlobalDCE/virtual-functions-relative-pointers.ll
Commit 84d4ed176114465ce0c35d99d4054327a64ac0d6 by nemanja.i.ibm
Revert "[DebugInfo] Emit DW_TAG_namelist and DW_TAG_namelist_item"

This reverts commit 0a6fad754ed8f0812dd57357ce8071b02e962259.
It caused failures on a number of PowerPC bots.
The file was modifiedllvm/lib/IR/Verifier.cpp
The file was modifiedllvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp
The file was removedllvm/test/DebugInfo/X86/namelist2.ll
The file was removedllvm/test/DebugInfo/X86/namelist1.ll
Commit e79474d337c62de7d3efe7fc2504ade46eda10e8 by Louis Dionne
[libc++][NFC] Add missing HIDE_FROM_ABI on implementation detail __launder
The file was modifiedlibcxx/include/new
Commit 524ded7d01a75323f216c49a4ec45c05146e540a by simon.moll
[VP] implementation of sdag support for VP memory intrinsics

Followup to D99355: SDAG support for vector-predicated load/store/gather/scatter.

Reviewed By: frasercrmck

Differential Revision: https://reviews.llvm.org/D105871
The file was modifiedllvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
The file was modifiedllvm/include/llvm/CodeGen/SelectionDAG.h
The file was modifiedllvm/include/llvm/CodeGen/SelectionDAGNodes.h
The file was modifiedllvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
The file was modifiedllvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h
The file was modifiedllvm/include/llvm/IR/VPIntrinsics.def
Commit c9948e9254fbb6ea00f66c7b4542311d21e060be by v.g.vassilev
[clang-repl] Install clang-repl

This is essentially what D106813 was supposed to do but did not.

Differential revision: https://reviews.llvm.org/D108919
The file was modifiedclang/tools/clang-repl/CMakeLists.txt
Commit 71d7fed3bc2ad6c22729d446526a59fcfd99bd03 by gbreynoo
[OptTable] Improve error message output for grouped short options

As seen in https://bugs.llvm.org/show_bug.cgi?id=48880 the current
implementation for parsing grouped short options can return unclear
error messages. This change fixes the example given in the ticket in
which a flag is incorrectly given an argument. Also when parsing a
group we now keep reading past the first incorrect option and output
errors for all incorrect options in the group.

Differential Revision: https://reviews.llvm.org/D108770
The file was modifiedllvm/lib/Option/OptTable.cpp
The file was modifiedllvm/unittests/Option/OptionParsingTest.cpp
The file was modifiedllvm/test/tools/llvm-objcopy/tool-help-message.test
Commit 71fbfd4e73b14a7734413b25b3965ff9f73d14ab by paul.robinson
Make a generic test generic again.

Tests in CodeGen/Generic should not depend on any specific target.
The file was modifiedllvm/test/CodeGen/Generic/dbg-distringtype-uint.ll
Commit 6600e1759be1626965a26cf1da8d8f8fc73344ca by listmail
[SCEV] If max BTC is zero, then so is the exact BTC [1 of N]

This patch is specifically the howManyLessThan case.  There will be a couple of followon patches for other codepaths.

The subtle bit is explaining why the two codepaths have a difference while both are correct. The test case with modifications is a good example, so let's discuss in terms of it.
* The previous exact bounds for this example of (-126 + (126 smax %n))<nsw> can evaluate to either 0 or 1. Both are "correct" results, but only one of them results in a well defined loop. If %n were 127 (the only possible value producing a trip count of 1), then the loop must execute undefined behavior. As a result, we can ignore the TC computed when %n is 127. All other values produce 0.
* The max taken count computation uses the limit (i.e. the maximum value END can be without resulting in UB) to restrict the bound computation. As a result, it returns 0 which is also correct.

WARNING: The logic above only holds for a single exit loop. The current logic for max trip count would be incorrect for multiple exit loops, except that we never call computeMaxBECountForLT except when we can prove either a) no overflow occurs in this IV before exit, or b) this is the sole exit.

An alternate approach here would be to add the limit logic to the symbolic path. I haven't played with this extensively, but I'm hesitant because a) the term is optional and b) I'm not sure it'll reliably simplify away. As such, the resulting code quality from expansion might actually get worse.

This was noticed while trying to figure out why D108848 wasn't NFC, but is otherwise standalone.

Differential Revision: https://reviews.llvm.org/D108921
The file was modifiedllvm/lib/Analysis/ScalarEvolution.cpp
The file was modifiedllvm/test/Analysis/ScalarEvolution/max-trip-count.ll
Commit ae206db2d653cfeb1021e4e8f5783de797e521a5 by fanbo.meng
[SystemZ][z/OS] Create html report file with text flag

Change OF_None to OF_Text flag in file creation, same reasoning as https://reviews.llvm.org/D97785

Reviewed By: abhina.sreeskantharajan

Differential Revision: https://reviews.llvm.org/D108998
The file was modifiedclang/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp
Commit b8debabb775b6d9eec5aa16f1b0c3428cc076bcb by kazu
[clang] Remove redundant calls to c_str() (NFC)

Identified with readability-redundant-string-cstr.
The file was modifiedclang/lib/Frontend/CompilerInstance.cpp
The file was modifiedclang/lib/Driver/Driver.cpp
The file was modifiedclang/lib/Driver/ToolChains/CommonArgs.cpp
The file was modifiedclang/lib/Driver/ToolChains/AMDGPU.cpp
The file was modifiedclang/lib/Driver/ToolChains/NetBSD.cpp
The file was modifiedclang/lib/CodeGen/CGOpenMPRuntime.cpp
The file was modifiedclang/lib/Driver/Compilation.cpp
Commit 10d78a06baa217b8a4b853eff962e9ae719a8a45 by yaron.keren
[llvm-lit] unbreak clang-only builds by not assuming llvm-lit in build dir

Reviewed By: tstellar

Differential Revision: https://reviews.llvm.org/D109000
The file was modifiedclang/test/utils/update_cc_test_checks/lit.local.cfg
Commit 6c0181c00f4ea0bcb7e4d05055412083b8270cc8 by spatel
[InstCombine] fix typos in comments; NFC
The file was modifiedllvm/lib/Transforms/InstCombine/InstCombineShifts.cpp
Commit 8442967fe32453ada32913d1e0fdd97b19520df2 by tianshilei1992
[OpenMP] Fix task wait doesn't work as expected in serialized team

As discussed in D107121, task wait doesn't work when a regular task T depends on
a detached task or a hidden helper task T' in a serialized team. The root cause is,
since the team is serialized, the last task will not be tracked by
`td_incomplete_child_tasks`. When T' is finished, it first releases its
dependences, and then decrements its parent counter. So far so good. For the thread
that is running task wait, if at the moment it is still spinning and trying to
execute tasks, it is fine because it can detect the new task and execute it.
However, if it happends to finish the function `flag.execute_tasks(...)`, it will
be broken because `td_incomplete_child_tasks` is 0 now.

In this patch, we update the rule to track children tasks a little bit. If the
task team encounters a proxy task or a hidden helper task, all following tasks
will be tracked.

Reviewed By: AndreyChurbanov

Differential Revision: https://reviews.llvm.org/D107496
The file was modifiedopenmp/runtime/test/tasking/hidden_helper_task/gtid.cpp
The file was modifiedopenmp/runtime/test/tasking/hidden_helper_task/depend.cpp
The file was modifiedopenmp/runtime/src/kmp_tasking.cpp
Commit 9b45fd909ffa754acbb4e927bc2d55c7ab0d4e3f by listmail
[AlignFromAssume] Bailout w/non-constant alignments (pr51680)

This is a bailout for pr51680.  This pass appears to assume that the alignment operand to an align tag on an assume bundle is constant.  This doesn't appear to be required anywhere, and clang happily generates non-constant alignments for cases such as this case taken from the bug report:

// clang -cc1 -triple powerpc64-- -S -O1 opal_pci-min.c
extern int a[];
long *b;
long c;
void *d(long, int *, int, long, long, long) __attribute__((__alloc_align__(6)));
void e() {
  b = d(c, a, 0, 0, 5, c);
  b[0] = 0;
}

This was exposed by a SCEV change which allowed a non-constant alignment to reach further into the pass' code.  We could generalize the pass, but for now, let's fix the crash.
The file was modifiedllvm/lib/Transforms/Scalar/AlignmentFromAssumptions.cpp
The file was modifiedllvm/test/Transforms/AlignmentFromAssumptions/simple.ll
Commit b604fcb7bc9c4c3bf15479c8406eb69f582fb71b by listmail
[runtime] Move prolog/epilog block to a post-simplify strategy

The runtime unroller will try to produce a non-loop if the unroll count is 2 and thus the prolog/epilog loop would only run at most one iteration. The old implementation did this by avoiding loop construction entirely. This patches instead constructs the trivial loop and then explicitly breaks the backedge and simplifies. This does result in some additional code churn when triggered, but a) results in better quality code and b) removes a codepath which didn't work properly for multiple exit epilogs.

One oddity that I want to draw to reviewer attention is that this somehow changes revisit order. The new order looks equivalent to me, but I don't understand how creating and erasing an extra loop here creates this effect.

Differential Revision: https://reviews.llvm.org/D108521
The file was modifiedllvm/test/Transforms/LoopUnroll/runtime-loop-multiple-exits.ll
The file was modifiedllvm/test/Transforms/LoopUnroll/runtime-loop1.ll
The file was modifiedllvm/test/Transforms/LoopUnroll/runtime-unroll-assume-no-remainder.ll
The file was modifiedllvm/test/Transforms/LoopUnroll/PowerPC/p8-unrolling-legalize-vectors-inseltpoison.ll
The file was modifiedllvm/test/Transforms/LoopUnroll/PowerPC/p8-unrolling-legalize-vectors.ll
The file was modifiedllvm/test/Transforms/LoopUnroll/revisit.ll
The file was modifiedllvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp
Commit e983a659e51c0ed2a7e0da770be6b3b4f2efcd05 by koraq
[libc++][NFC] split <charconv>.

This move the helper types `chars_format`, `to_chars_result` and
`from_chars_result` to a separate header. The first two are needed for
D70631 the third for consistency.

The header `__charconv/ryu.h` uses these types and it can't depend on the
types in `<charconv>` in a modular build. Moving them to the ryu header
would be an odd place and doesn't work since the header is included in the
middle of `<charconv>`.

Reviewed By: #libc, ldionne, Quuxplusone

Differential Revision: https://reviews.llvm.org/D108927
The file was addedlibcxx/include/__charconv/chars_format.h
The file was addedlibcxx/test/libcxx/diagnostics/detail.headers/charconv/chars_format.module.verify.cpp
The file was addedlibcxx/include/__charconv/to_chars_result.h
The file was modifiedlibcxx/include/charconv
The file was addedlibcxx/test/libcxx/diagnostics/detail.headers/charconv/to_chars_result.module.verify.cpp
The file was modifiedlibcxx/include/module.modulemap
The file was addedlibcxx/test/libcxx/diagnostics/detail.headers/charconv/from_chars_result.module.verify.cpp
The file was addedlibcxx/include/__charconv/from_chars_result.h
The file was modifiedlibcxx/include/CMakeLists.txt
Commit 9c37eda6e4c5bda3ae5f6edcadf7c0f52c3aec03 by llvmgnsyncbot
[gn build] Port e983a659e51c
The file was modifiedllvm/utils/gn/secondary/libcxx/include/BUILD.gn
Commit 4f7fb13f87e10bd2cd89ccf2be70b026032237a7 by Raphael Isemann
[lldb] Don't save empty expressions in the multiline editor history

Right now running `expr` to start the multiline expression editor and then
pressing enter causes an empty history empty to be created for the multiline
editor. That doesn't seem very useful for users as pressing the 'up' key will
now also bring up these empty expressions.

I don't think there is ever a use case for recalling a completely empty
expression from the history, so instead don't save those entries to the history
file and make sure we never recall them when navigating over the expression
history.

Note: This is actually a Swift downstream patch that got shipped with Apple's
LLDB for many years. However, this recently started conflicting with upstream
LLDB as D100048 added a test that made sure that empty expression entries don't
crash LLDB. Apple's LLDB was never affected by this crash as it never saved
empty expressions in the first place.

Reviewed By: augusto2112

Differential Revision: https://reviews.llvm.org/D108983
The file was modifiedlldb/source/Host/common/Editline.cpp
The file was modifiedlldb/test/API/commands/expression/multiline-navigation/TestMultilineNavigation.py
Commit 198259becbcf14fb8dd9abdf246c5e49a253a91e by david.green
[ARM] Test for VMINNM/VMAXNM in tail predicated loops.
The file was addedllvm/test/CodeGen/Thumb2/mve-vmaxnma-tailpred.ll
Commit 22c384129e95f286953c1019ce29704b475c5bec by david.green
[ARM] Add missing validForTailPredication for VMINNM/VMAXNM

Apparently this was missing, preventing the generation of tail
predication loops containing VMINNM, VMAXNM, VMINNMA and VMAXNMA.
The file was modifiedllvm/lib/Target/ARM/ARMInstrMVE.td
The file was modifiedllvm/unittests/Target/ARM/MachineInstrTest.cpp
The file was modifiedllvm/test/CodeGen/Thumb2/mve-vmaxnma-tailpred.ll
Commit 94d3ff09cfa8d7aecf480e54da9a5334e262e76b by Jessica Paquette
[GlobalISel] Don't use G_FPTOSI in G_ISNAN legalization

As noted in the comments in D108227, using G_FPTOSI produces wrong results for
G_ISNAN. Drop the G_FPTOSI and perform the operation on integer types.

Elsewhere in LLVM, a bitcast would be the appropriate choice (as it is in SDAG).
GlobalISel does not distinguish between integer and FP types, so a bitcast would
be meaningless here.
The file was modifiedllvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
The file was modifiedllvm/test/CodeGen/AArch64/GlobalISel/legalize-isnan.mir
Commit c96839265a5673d1383c9d82aab76e15f38c0010 by Joseph.Nash
[AMDGPU] Enable ds_min/ds_max on more subtargets

Adds patterns for f64 ds_min/ds_max. Shrinks HasLDSFPAtomics
scope to enable f32.

Reviewed By: rampitec

Differential Revision: https://reviews.llvm.org/D108994

Change-Id: Id890b677841ee588b20d42b1bb3f4cdbf6e9ba1a
The file was modifiedllvm/lib/Target/AMDGPU/AMDGPU.td
The file was modifiedllvm/lib/Target/AMDGPU/DSInstructions.td
The file was modifiedllvm/lib/Target/AMDGPU/GCNSubtarget.h
The file was modifiedllvm/lib/Target/AMDGPU/SIISelLowering.cpp
The file was removedllvm/test/CodeGen/AMDGPU/lds_atomic_f32.ll
The file was addedllvm/test/CodeGen/AMDGPU/lds-atomic-fmin-fmax.ll
The file was modifiedllvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
The file was addedllvm/test/CodeGen/AMDGPU/lds-atomic-fadd.ll
Commit 6c439a38172bbb3422b91517e69cd091ff34062c by Vedant Kumar
[profile] Specify "-V" to otool to get expected test output

Newer Xcode toolchains ship a new otool implementation that prints out
section contents in a slightly different way than otool-classic. Specify
"-V" to otool to get the expected test output.

Differential Revision: https://reviews.llvm.org/D108929
The file was modifiedcompiler-rt/test/profile/instrprof-darwin-dead-strip.c
Commit 6726a3d858ac40de32efb9da4af4cd8e44454981 by pklausler
[flang] Fold PACK()

Implement compile-time constant folding for the transformational
intrinsic function PACK.

Differential Revision: https://reviews.llvm.org/D108956
The file was modifiedflang/test/Evaluate/folding19.f90
The file was modifiedflang/lib/Evaluate/fold-implementation.h
The file was addedflang/test/Evaluate/folding24.f90
Commit fd87963eee23f6cf2aed97bf182a6b3f5e9450ed by joker.eph
Change dialect `printOperation()` hook to `getOperationPrinter()`

This makes the hook return a printer if available, instead of using LogicalResult  to
indicate if a printer was available (and invoked). This allows the caller to detect that
the dialect has a printer for a given operation without actually invoking the printer.
It'll be leveraged in a future revision to move printing the op name itself under control
of the ASMPrinter.

Differential Revision: https://reviews.llvm.org/D108803
The file was modifiedmlir/include/mlir/IR/Dialect.h
The file was modifiedmlir/test/lib/Dialect/Test/TestDialect.cpp
The file was modifiedmlir/lib/IR/AsmPrinter.cpp
The file was modifiedmlir/lib/IR/Dialect.cpp
The file was modifiedmlir/test/lib/Dialect/Test/TestOps.td
Commit c41b16c26bdb52fa8beb447e7c8eec8c8924874a by joker.eph
Change ASM Op printer to print the operation name in the framework instead of leaving it up to each individual operation

This aligns the printer with the parser contract: the operation isn't part of the user-controllable part of the syntax.

Differential Revision: https://reviews.llvm.org/D108804
The file was modifiedmlir/lib/Dialect/SCF/SCF.cpp
The file was modifiedmlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
The file was modifiedmlir/include/mlir/Dialect/Utils/ReshapeOpsUtils.h
The file was modifiedmlir/lib/Dialect/Shape/IR/Shape.cpp
The file was modifiedmlir/lib/Dialect/Affine/IR/AffineOps.cpp
The file was modifiedmlir/lib/Dialect/StandardOps/IR/Ops.cpp
The file was modifiedmlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp
The file was modifiedmlir/lib/Dialect/GPU/IR/GPUDialect.cpp
The file was modifiedmlir/lib/Dialect/EmitC/IR/EmitC.cpp
The file was modifiedmlir/include/mlir/Dialect/GPU/GPUOps.td
The file was modifiedmlir/lib/Dialect/SPIRV/IR/SPIRVOps.cpp
The file was modifiedmlir/examples/toy/Ch6/mlir/Dialect.cpp
The file was modifiedmlir/test/lib/Dialect/Test/TestDialect.cpp
The file was modifiedmlir/lib/Dialect/Async/IR/Async.cpp
The file was modifiedmlir/tools/mlir-tblgen/OpFormatGen.cpp
The file was modifiedmlir/examples/toy/Ch5/mlir/Dialect.cpp
The file was modifiedmlir/include/mlir/Dialect/LLVMIR/ROCDLOps.td
The file was modifiedmlir/test/Dialect/Standard/expand-ops.mlir
The file was modifiedmlir/lib/IR/Operation.cpp
The file was modifiedmlir/lib/Dialect/LLVMIR/IR/NVVMDialect.cpp
The file was modifiedmlir/examples/toy/Ch7/mlir/Dialect.cpp
The file was modifiedmlir/include/mlir/IR/OpImplementation.h
The file was modifiedmlir/lib/Dialect/OpenACC/IR/OpenACC.cpp
The file was modifiedmlir/examples/toy/Ch3/mlir/Dialect.cpp
The file was modifiedflang/lib/Optimizer/Dialect/FIROps.cpp
The file was modifiedflang/include/flang/Optimizer/Dialect/FIROps.td
The file was modifiedmlir/include/mlir/Dialect/LLVMIR/LLVMOps.td
The file was modifiedmlir/lib/IR/FunctionImplementation.cpp
The file was modifiedmlir/lib/Dialect/MemRef/IR/MemRefOps.cpp
The file was modifiedmlir/include/mlir/IR/OpDefinition.h
The file was modifiedmlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp
The file was modifiedmlir/examples/toy/Ch2/mlir/Dialect.cpp
The file was modifiedmlir/examples/toy/Ch4/mlir/Dialect.cpp
The file was modifiedmlir/lib/Dialect/Vector/VectorOps.cpp
The file was modifiedmlir/lib/IR/AsmPrinter.cpp
The file was modifiedmlir/test/IR/invalid-ops.mlir
Commit 387f95541bdc575f75bba95d323b51198d3b9e2b by joker.eph
Add a new interface allowing to set a default dialect to be used for printing/parsing regions

Currently the builtin dialect is the default namespace used for parsing
and printing. As such module and func don't need to be prefixed.
In the case of some dialects that defines new regions for their own
purpose (like SpirV modules for example), it can be beneficial to
change the default dialect in order to improve readability.

Differential Revision: https://reviews.llvm.org/D107236
The file was modifiedmlir/test/IR/invalid.mlir
The file was modifiedmlir/test/Dialect/Builtin/canonicalize.mlir
The file was modifiedmlir/test/IR/invalid-ops.mlir
The file was modifiedmlir/test/Dialect/SparseTensor/sparse_perm_lower.mlir
The file was modifiedmlir/test/Transforms/cse.mlir
The file was modifiedmlir/lib/IR/AsmPrinter.cpp
The file was modifiedmlir/include/mlir/Dialect/SPIRV/IR/SPIRVStructureOps.td
The file was modifiedmlir/include/mlir/IR/OpAsmInterface.td
The file was modifiedmlir/test/Transforms/canonicalize-dce.mlir
The file was modifiedmlir/test/Dialect/Linalg/drop-unit-extent-dims.mlir
The file was modifiedmlir/include/mlir/IR/BuiltinOps.td
The file was modifiedmlir/test/Transforms/constant-fold.mlir
The file was modifiedmlir/include/mlir/IR/OperationSupport.h
The file was modifiedmlir/include/mlir/Dialect/Shape/IR/ShapeOps.td
The file was modifiedmlir/include/mlir/IR/BuiltinOps.h
The file was modifiedmlir/test/Conversion/GPUToNVVM/gpu-to-nvvm.mlir
The file was modifiedmlir/test/Transforms/test-legalizer-full.mlir
The file was modifiedmlir/test/IR/invalid-module-op.mlir
The file was modifiedmlir/include/mlir/IR/OpDefinition.h
The file was modifiedmlir/lib/Parser/ParserState.h
The file was modifiedmlir/lib/IR/Operation.cpp
The file was modifiedmlir/test/IR/invalid-func-op.mlir
The file was modifiedmlir/test/IR/parser.mlir
The file was modifiedmlir/test/Dialect/Shape/invalid.mlir
The file was modifiedmlir/test/Conversion/GPUToROCDL/gpu-to-rocdl.mlir
The file was modifiedmlir/lib/Parser/Parser.cpp
The file was modifiedmlir/test/lib/Dialect/Test/TestOps.td
The file was modifiedmlir/test/IR/traits.mlir
The file was modifiedmlir/include/mlir/Dialect/StandardOps/IR/Ops.td
The file was modifiedmlir/test/Dialect/Linalg/reshape_control_fusion.mlir
The file was modifiedmlir/test/Analysis/test-shape-fn-report.mlir
The file was modifiedmlir/test/Transforms/canonicalize.mlir
The file was modifiedmlir/test/Dialect/SparseTensor/sparse_perm.mlir
The file was modifiedmlir/test/Conversion/GPUToNVVM/wmma-ops-to-nvvm.mlir
The file was modifiedmlir/test/Conversion/VectorToROCDL/vector-to-rocdl.mlir
Commit 167b2dbde4cd9da17980a5dce0dd1654cae3fff5 by joeloser93
[libcxx][docs] Mark LWG3153 as complete

Reviewed By: ldionne, #libc

Differential Revision: https://reviews.llvm.org/D108967
The file was modifiedlibcxx/docs/Status/Cxx20Issues.csv
Commit 4bb5f44c701402462cb93ef00d46d52382f39f11 by i
[CMake] Remove unneeded -Wnon-virtual-dtor availability check

For Clang, 3.5 is the minimum requirement which has fixed the bug.
GCC 5 is good as well.
The file was modifiedllvm/cmake/modules/HandleLLVMOptions.cmake
Commit c49503a76db5f91b2dbae28f4154df5b3891f7a1 by listmail
[SCEV] Add a testcase for zero max btc with non-constant exact btc

Reduced from the ArchiveCommandLine.ll case seen in D108848.
The file was modifiedllvm/test/Analysis/ScalarEvolution/max-trip-count.ll
Commit d8b6ae072d7734e2abadd54ecddfd6cb77b7e4c0 by ndesaulniers
[PPCISelLowering] avoid emitting libcalls to __mulodi4()

Similar to D108842, D108844, and D108926.

__has_builtin(builtin_mul_overflow) returns true for 32b PPC targets,
but Clang is deferring to compiler RT when encountering long long types.
This breaks ppc44x_defconfig + CONFIG_BLK_DEV_NBD=y builds of the Linux
kernel that are using builtin_mul_overflow with these types for these
targets.

If the semantics of __has_builtin mean "the compiler resolves these,
always" then we shouldn't conditionally emit a libcall.

This will still need to be worked around in the Linux kernel in order to
continue to support these builds of the Linux kernel for this
target with older releases of clang.

Link: https://bugs.llvm.org/show_bug.cgi?id=28629
Link: https://github.com/ClangBuiltLinux/linux/issues/1438

Reviewed By: nemanjai

Differential Revision: https://reviews.llvm.org/D108936
The file was modifiedllvm/lib/Target/PowerPC/PPCISelLowering.cpp
The file was addedllvm/test/CodeGen/PowerPC/overflow-intrinsic-optimizations.ll
Commit b686fdbf92ea5b495804afdf1c7c4d4aab30ef33 by ravishankarm
[mlir][Linalg] Drop output tensor from `linalg.pad_tensor` op.

The output tensor was added for tiling purposes. With use of
`TilingInterface` for tiling pad operations, there is no need for an
explicit operand for the shape of result of `linalg.pad_tensor`
op. The interface allows the tiling pattern to query the value that
can be used for the "init" needed for tiling dynamically.

Differential Revision: https://reviews.llvm.org/D108613
The file was modifiedmlir/lib/Dialect/Linalg/Transforms/Tiling.cpp
The file was modifiedmlir/test/Dialect/Linalg/canonicalize.mlir
The file was modifiedmlir/test/Dialect/Linalg/roundtrip.mlir
The file was modifiedmlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
The file was modifiedmlir/test/Dialect/Linalg/tile-pad-tensor-op.mlir
The file was modifiedmlir/include/mlir/Dialect/Linalg/IR/LinalgOps.td
The file was modifiedmlir/test/Dialect/Linalg/invalid.mlir
Commit a26b09cb982753d1ce3b086341ba9e9c585bb5e6 by i
[CMake] Remove unneeded -Wdelete-non-virtual-dtor availability check

Available and good in Clang 3.5/GCC 5.
The file was modifiedllvm/cmake/modules/HandleLLVMOptions.cmake
Commit bf8b69bb3ad3e62e936f4a02c7115538a0879bf6 by nikita.ppv
[SLPVectorizer] Add test for inaccessiblememonly call (NFC)
The file was modifiedllvm/test/Transforms/SLPVectorizer/int_sideeffect.ll
Commit e9b3f2573090a2fb9494975e4615f77b898e36a3 by ndesaulniers
[RISCVISelLowering] avoid emitting libcalls to __mulodi4() and __multi3()

Similar to D108842, D108844, D108926, D108928, and D108936.

__has_builtin(builtin_mul_overflow) returns true for 32b RISCV targets,
but Clang is deferring to compiler RT when encountering long long types.

If the semantics of __has_builtin mean "the compiler resolves these,
always" then we shouldn't conditionally emit a libcall.

Link: https://bugs.llvm.org/show_bug.cgi?id=28629

Reviewed By: craig.topper

Differential Revision: https://reviews.llvm.org/D108939
The file was modifiedllvm/lib/Target/RISCV/RISCVISelLowering.cpp
The file was modifiedllvm/test/CodeGen/RISCV/xaluo.ll
The file was addedllvm/test/CodeGen/RISCV/overflow-intrinsic-optimizations.ll
The file was modifiedllvm/test/CodeGen/RISCV/umulo-128-legalisation-lowering.ll
The file was modifiedllvm/test/CodeGen/RISCV/mul.ll
Commit b4c86525fdc33c9220a0234cb022d408749fe61c by pklausler
[flang] Downgrade inappropriate error message to a warning

It may not be great practice to pass a procedure (or procedure pointer)
with an implicit interface as an actual argument to correspond with
a dummy procedure (pointer), but it's not an error.  Change to a
warning, and modify tests accordingly.

Differential Revision: https://reviews.llvm.org/D108932
The file was modifiedflang/test/Semantics/call09.f90
The file was addedflang/test/Semantics/call21.f90
The file was modifiedflang/lib/Semantics/check-call.cpp
Commit c5e7981aec37dd0bc5c893158c1a703b1b1de6d1 by arthur.j.odwyer
[libc++] Add missing space in (__map_value_compare&__y) etc. NFCI.
The file was modifiedlibcxx/include/map
The file was modifiedlibcxx/include/__memory/pointer_traits.h
The file was modifiedlibcxx/include/unordered_map
Commit 1d36988394a5f37f6d79ad45a272700bb0556c05 by chih-ping.chen
Moved the test to X86 as it's x86 specific.
The file was removedllvm/test/CodeGen/Generic/dbg-distringtype-uint.ll
The file was addedllvm/test/CodeGen/X86/dbg-distringtype-uint.ll
Commit c7515a49b1ddf1eae3c3d2e52c56e3fa02305351 by joker.eph
Fix MLIR python binding test after changes in ASM printer
The file was modifiedmlir/test/python/ir/operation.py
Commit 84f99ef2b196565d4a8b340d4eb9c923a5781697 by mgorny
[lldb] [test] Mark fork-follow-parent-softbp.test as darwin-unsupported
The file was modifiedlldb/test/Shell/Subprocess/fork-follow-parent-softbp.test
Commit c28473fe4aded9649f4b552d8259c22a43f0d68e by sylvestre
Fix some typos in the llvm docs
The file was modifiedllvm/docs/CommandGuide/FileCheck.rst
The file was modifiedllvm/docs/DependenceGraphs/index.rst
The file was modifiedllvm/docs/GettingStartedVS.rst
The file was modifiedllvm/docs/UserGuides.rst
The file was modifiedllvm/docs/TableGen/ProgRef.rst
The file was modifiedllvm/docs/JITLink.rst
The file was modifiedllvm/docs/Passes.rst
Commit e781e03e40337fba4ed57fcfb257d1d4a5e00e2b by Louis Dionne
[libc++] Remove workaround for broken __is_trivially_copyable on old GCC

All supported versions of GCC now do the right thing.

Differential Revision: https://reviews.llvm.org/D108997
The file was modifiedlibcxx/include/type_traits
The file was modifiedlibcxx/test/std/utilities/meta/meta.unary/meta.unary.prop/is_trivially_copyable.pass.cpp
Commit 928cad59c783e96626d12bdd91bc6b744e7ee3b0 by Louis Dionne
[libc++][NFC] Rename _LIBCPP_NODISCARD_ATTRIBUTE to _LIBCPP_NODISCARD

Differential Revision: https://reviews.llvm.org/D108940
The file was modifiedlibcxx/include/type_traits
The file was modifiedlibcxx/include/__config
Commit f9277caffc0a1f311aaba784678c50c6c6b90d75 by i
[ELF][test] Fix R_AARCH64_ADR_PREL_PG_HI21 typo

Found by redfast00
The file was modifiedlld/test/ELF/aarch64-relocs.s
Commit dc37f5374cd350a732e8009ed2d319c810b24ab1 by nikita.ppv
[LoadStoreVectorizer] Add test for inaccessiblememonly call (NFC)
The file was modifiedllvm/test/Transforms/LoadStoreVectorizer/int_sideeffect.ll
Commit 83ddfa0d2247a9b6b512cfcedfa529b8bb573028 by jdenny.ornl
[OpenMP][OpenACC] Implement `ompx_hold` map type modifier extension in Clang (1/2)

This patch implements Clang support for an original OpenMP extension
we have developed to support OpenACC: the `ompx_hold` map type
modifier.  The next patch in this series, D106510, implements OpenMP
runtime support.

Consider the following example:

```
#pragma omp target data map(ompx_hold, tofrom: x) // holds onto mapping of x
{
   foo(); // might have map(delete: x)
   #pragma omp target map(present, alloc: x) // x is guaranteed to be present
   printf("%d\n", x);
}
```

The `ompx_hold` map type modifier above specifies that the `target
data` directive holds onto the mapping for `x` throughout the
associated region regardless of any `target exit data` directives
executed during the call to `foo`.  Thus, the presence assertion for
`x` at the enclosed `target` construct cannot fail.  (As usual, the
standard OpenMP reference count for `x` must also reach zero before
the data is unmapped.)

Justification for inclusion in Clang and LLVM's OpenMP runtime:

* The `ompx_hold` modifier supports OpenACC functionality (structured
  reference count) that cannot be achieved in standard OpenMP, as of
  5.1.
* The runtime implementation for `ompx_hold` (next patch) will thus be
  used by Flang's OpenACC support.
* The Clang implementation for `ompx_hold` (this patch) as well as the
  runtime implementation are required for the Clang OpenACC support
  being developed as part of the ECP Clacc project, which translates
  OpenACC to OpenMP at the directive AST level.  These patches are the
  first step in upstreaming OpenACC functionality from Clacc.
* The Clang implementation for `ompx_hold` is also used by the tests
  in the runtime implementation.  That syntactic support makes the
  tests more readable than low-level runtime calls can.  Moreover,
  upstream Flang and Clang do not yet support OpenACC syntax
  sufficiently for writing the tests.
* More generally, the Clang implementation enables a clean separation
  of concerns between OpenACC and OpenMP development in LLVM.  That
  is, LLVM's OpenMP developers can discuss, modify, and debug LLVM's
  extended OpenMP implementation and test suite without directly
  considering OpenACC's language and execution model, which can be
  handled by LLVM's OpenACC developers.
* OpenMP users might find the `ompx_hold` modifier useful, as in the
  above example.

See new documentation introduced by this patch in `openmp/docs` for
more detail on the functionality of this extension and its
relationship with OpenACC.  For example, it explains how the runtime
must support two reference counts, as specified by OpenACC.

Clang recognizes `ompx_hold` unless `-fno-openmp-extensions`, a new
command-line option introduced by this patch, is specified.

Reviewed By: ABataev, jdoerfert, protze.joachim, grokos

Differential Revision: https://reviews.llvm.org/D106509
The file was modifiedclang/test/OpenMP/target_simd_map_messages.cpp
The file was modifiedclang/include/clang/Basic/LangOptions.def
The file was modifiedclang/include/clang/Driver/Options.td
The file was modifiedclang/test/OpenMP/target_teams_distribute_map_messages.cpp
The file was modifiedclang/lib/Basic/OpenMPKinds.cpp
The file was modifiedopenmp/docs/index.rst
The file was addedopenmp/docs/openacc/Overview.rst
The file was modifiedclang/docs/ClangCommandLineReference.rst
The file was modifiedclang/lib/Sema/SemaOpenMP.cpp
The file was modifiedclang/test/OpenMP/target_exit_data_map_messages.c
The file was modifiedclang/test/OpenMP/target_teams_distribute_parallel_for_simd_map_messages.cpp
The file was addedclang/test/OpenMP/target_data_map_codegen_hold.cpp
The file was modifiedclang/test/OpenMP/target_teams_map_messages.cpp
The file was modifiedclang/test/OpenMP/target_parallel_for_simd_map_messages.cpp
The file was modifiedclang/lib/Parse/ParseOpenMP.cpp
The file was modifiedclang/test/OpenMP/target_teams_distribute_simd_map_messages.cpp
The file was modifiedclang/test/OpenMP/target_teams_distribute_parallel_for_map_messages.cpp
The file was addedopenmp/docs/openacc/OpenMPExtensions.rst
The file was modifiedclang/lib/CodeGen/CGOpenMPRuntime.cpp
The file was modifiedclang/test/OpenMP/target_ast_print.cpp
The file was modifiedclang/include/clang/Basic/DiagnosticSemaKinds.td
The file was modifiedclang/test/OpenMP/target_enter_data_map_messages.c
The file was modifiedclang/test/OpenMP/target_map_messages.cpp
The file was addedclang/test/OpenMP/target_map_codegen_hold.cpp
The file was modifiedclang/include/clang/Basic/OpenMPKinds.h
The file was modifiedclang/include/clang/Basic/DiagnosticParseKinds.td
The file was modifiedclang/test/OpenMP/target_data_ast_print.cpp
The file was modifiedclang/test/OpenMP/target_parallel_for_map_messages.cpp
The file was modifiedclang/lib/Driver/ToolChains/Clang.cpp
The file was modifiedclang/docs/OpenMPSupport.rst
The file was modifiedclang/include/clang/Basic/OpenMPKinds.def
The file was modifiedclang/include/clang/AST/OpenMPClause.h
The file was addedclang/test/OpenMP/driver-fopenmp-extensions.c
The file was modifiedclang/test/OpenMP/target_parallel_map_messages.cpp
Commit ec1ebcd30258329666dc89e6e745bb9de2e8fd13 by jdenny.ornl
[OpenMP][OpenACC] Implement `ompx_hold` map type modifier extension in runtime (2/2)

This patch implements OpenMP runtime support for an original OpenMP
extension we have developed to support OpenACC: the `ompx_hold` map
type modifier.  The previous patch in this series, D106509, implements
Clang support and documents the new functionality in detail.

Reviewed By: grokos

Differential Revision: https://reviews.llvm.org/D106510
The file was addedopenmp/libomptarget/test/mapping/ompx_hold/struct.c
The file was addedopenmp/libomptarget/test/mapping/ompx_hold/omp_target_disassociate_ptr.c
The file was modifiedopenmp/libomptarget/src/api.cpp
The file was modifiedopenmp/libomptarget/test/offloading/info.c
The file was modifiedopenmp/libomptarget/src/private.h
The file was modifiedopenmp/libomptarget/include/omptarget.h
The file was modifiedopenmp/libomptarget/src/device.h
The file was modifiedopenmp/libomptarget/src/device.cpp
The file was modifiedopenmp/libomptarget/src/omptarget.cpp
The file was addedopenmp/libomptarget/test/mapping/ompx_hold/target-data.c
The file was addedopenmp/libomptarget/test/mapping/ompx_hold/target.c
Commit 9ab1efc77ab1ba104c6dce48e5d3e34d1174bb5d by pklausler
[flang] Fold UNPACK and TRANSPOSE

Implement constant folding for the transformational intrinsic
functions UNPACK and TRANSPOSE.

Differential Revision: https://reviews.llvm.org/D109010
The file was addedflang/test/Evaluate/folding25.f90
The file was addedflang/test/Evaluate/folding26.f90
The file was modifiedflang/lib/Evaluate/fold-implementation.h
The file was modifiedflang/test/Evaluate/folding19.f90
Commit 964053d56f9b4aeca8950c0835c9e52be0f1d007 by wlei
[llvm-profgen] Support LBR only perf script

This change aims at supporting LBR only sample perf script which is used for regular(Non-CS) profile generation.  A LBR perf script includes a batch of LBR sample which starts with a frame pointer and a group of 32 LBR entries is followed. The FROM/TO LBR pair and the range between two consecutive entries (the former entry's TO and the latter entry's FROM) will be used to infer function profile info.

An example of LBR perf script(created by `perf script -F ip,brstack -i perf.data`)
```
           40062f 0x40062f/0x4005b0/P/-/-/9  0x400645/0x4005ff/P/-/-/1  0x400637/0x400645/P/-/-/1 ...
           4005d7 0x4005d7/0x4005e5/P/-/-/8  0x40062f/0x4005b0/P/-/-/6  0x400645/0x4005ff/P/-/-/1 ...
           ...
```

For implementation:
- Extended a new child class `LBRPerfReader` for the sample parsing, reused all the functionalities in `extractLBRStack` except for an extension to parsing leading instruction pointer.
- `HybridSample` is reused(just leave the call stack empty) and the parsed samples is still aggregated in `AggregatedSamples`. After that, range samples, branch sample, address samples are computed and recorded.
- Reused `ContextSampleCounterMap` to store the raw profile, since it's no need to aggregation by context, here it just registered one sample counter with a fake context key.
- Unified to use `show-raw-profile` instead of `show-unwinder-output` to dump the intermediate raw profile, see the comments of the format of the raw profile. For CS profile, it remains to output the unwinder output.

Profile generation part will come soon.

Differential Revision: https://reviews.llvm.org/D108153
The file was addedllvm/test/tools/llvm-profgen/noprobe.test
The file was modifiedllvm/test/tools/llvm-profgen/cs-interrupt.test
The file was modifiedllvm/tools/llvm-profgen/llvm-profgen.cpp
The file was addedllvm/test/tools/llvm-profgen/Inputs/noprobe.perfscript
The file was modifiedllvm/test/tools/llvm-profgen/inline-cs-pseudoprobe.test
The file was modifiedllvm/test/tools/llvm-profgen/recursion-compression-pseudoprobe.test
The file was modifiedllvm/tools/llvm-profgen/PerfReader.cpp
The file was addedllvm/test/tools/llvm-profgen/Inputs/noprobe.mmap.perfscript
The file was modifiedllvm/tools/llvm-profgen/ProfiledBinary.cpp
The file was addedllvm/test/tools/llvm-profgen/Inputs/noprobe.aggperfscript
The file was modifiedllvm/test/tools/llvm-profgen/inline-cs-noprobe.test
The file was modifiedllvm/test/tools/llvm-profgen/noinline-cs-noprobe.test
The file was modifiedllvm/tools/llvm-profgen/ProfileGenerator.cpp
The file was modifiedllvm/test/tools/llvm-profgen/noinline-cs-pseudoprobe.test
The file was addedllvm/test/tools/llvm-profgen/Inputs/noprobe.perfbin
The file was modifiedllvm/tools/llvm-profgen/PerfReader.h
The file was modifiedllvm/tools/llvm-profgen/ProfiledBinary.h
Commit 48ebe427c9c516c406f6fc1e4883bafaf5f4f992 by nikita.ppv
[SLPVectorizer] Make aliasing check more precise

SLPVectorizer currently uses AA::isNoAlias() to determine whether
two locations alias. This does not work if one of the instructions
is a call. Instead, we should check getModRefInfo(), which
determines whether an arbitrary instruction modifies or references
a given location.

Among other things, this prevents @llvm.experimental.noalias.scope.decl()
and other inaccessiblmemonly intrinsics from interfering with SLP
vectorization.

Differential Revision: https://reviews.llvm.org/D109012
The file was modifiedllvm/test/Transforms/SLPVectorizer/int_sideeffect.ll
The file was modifiedllvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
Commit d170945bb2b3a0855cea115d31d688b85ddf3dc5 by Stanislav.Mekhanoshin
[RegAlloc] Immediately delete dead instructions with live uses

When RA eliminated a dead def it can either immediately delete
the instruction itself or replace it with KILL to defer the
actual removal. If this instruction has a virtual register use
killing the register it will shrink the LI of the use. However,
if the LI covers the instruction and extends beyond it the
shrink will not happen. In fact that is impossible to shrink
such use because of the KILL still using it.

If later the LI of the use will be split at the KILL and the
KILL itself is eliminated after that point the new live segment
ends up at an invalid slot index.

This extremely rare condition was hit after D106408 which has
enabled rematerialization of such instructions. The replacement
with KILL is only done for rematerialized defs which became dead
and such rematerialization did not generally happen before.

The patch deletes an instruction immediately if it is a result
of rematerialization and has such use. An alternative would be
to prohibit a split at a KILL instruction, but it looks like it
is better to split a live range rather then keeping a killed
instruction just in case it can be rematerialized further.

Fixes PR51655.

Differential Revision: https://reviews.llvm.org/D108951
The file was addedllvm/test/CodeGen/X86/delete-dead-instrs-with-live-uses.mir
The file was modifiedllvm/lib/CodeGen/LiveRangeEdit.cpp
Commit 1c9b7d0eccf98b1268c87c3ef3726b0def8e7788 by Louis Dionne
[libc++][NFC] Remove redundant friend declaration for operator==

This must have been meant to be friend-declaring operator!=, but it
turns out that it's not even necessary to make it a friend since it
does not access any private state.

rdar://82568613
The file was modifiedlibcxx/include/__iterator/istream_iterator.h
Commit 3e2bd82f02c6cbbfb0544897c7645867f04b3a7e by kda
Revert "[OptTable] Improve error message output for grouped short options"

This reverts commit 71d7fed3bc2ad6c22729d446526a59fcfd99bd03.

Reason: broke sanitizer bots
more info: https://reviews.llvm.org/D108770
The file was modifiedllvm/lib/Option/OptTable.cpp
The file was modifiedllvm/test/tools/llvm-objcopy/tool-help-message.test
The file was modifiedllvm/unittests/Option/OptionParsingTest.cpp
Commit 3afa2151f8e6f435c094a7cf37ec6a4ca8c080e2 by vyng
[llvm-ar][nfc] Reword help message to be less ambiguous on what p and t do.

The current help msg isn't super clear on whether t prints the content of the files or just the list of files.
(I'd certainly thought it'd print the list of files, and accidentally had a bunch of "gargabe" printed to my terminal).
Similarly, t sounded like it'd do what p actually did.

Differential Revision: https://reviews.llvm.org/D109018
The file was modifiedllvm/tools/llvm-ar/llvm-ar.cpp
Commit befb384484310fed34e145bb220b331334d4db28 by browneee
[DFSan][NFC] Fix comment formatting.
The file was modifiedcompiler-rt/lib/dfsan/dfsan_thread.h
Commit b04b757a8efcb194f2a3838819e9c370f71199c8 by 2998727+wrengr
[mlir][sparse] Rename the public SparseTensorStorage::asCOO to toCOO

Trying to reduce confusion by having the name of the public method match that of the private method for handling the recursion.  Also adding some comments to SparseTensorStorage::fromCOO to help clarify what the recursive calls are doing in the dense case.

Reviewed By: aartbik

Differential Revision: https://reviews.llvm.org/D108954
The file was modifiedmlir/lib/ExecutionEngine/SparseUtils.cpp
Commit 862a311301f51214d405eefd5bc4aa7289241f86 by apl
[lldb] Tighten lock in Language::ForEach

It is easy to accidentally introduce a deadlock by having the callback
passed to Language::ForEach also attempt to acquire the same lock. It
is easy enough to disallow the callback from calling anything in
Language directly, but it may happen through a series of other
function/method calls.

The solution I am proposing is to tighten the lock in Language::ForEach
so that it is only held as we gather the currently loaded language
plugins. We store them in a vector and then iterate through them with
the callback so that the callback can't introduce a deadlock.

Differential Revision: https://reviews.llvm.org/D109013
The file was modifiedlldb/source/Target/Language.cpp
Commit 29a74a39150ad0a041922431cda68f1afba830c9 by jhuber6
[OpenMP] Add an option to always inline OpenMP device functions.

Performance on GPU targets can be highly variable, sometimes inlining
everything hurts performance and sometimes it greatly improves it. Add
an option to toggle this behaviour to better investigate it.

Reviewed By: jdoerfert

Differential Revision: https://reviews.llvm.org/D109014
The file was modifiedllvm/lib/Transforms/IPO/OpenMPOpt.cpp
The file was addedllvm/test/Transforms/OpenMP/always_inline_device.ll
Commit 7f0664f1936a75ce939e4b3f3d6e72da5fcc6a60 by alexandre.ganea
[LLD][COFF] Clean paths in PDB even when /pdbsourcepath is omitted

Differential Revision: https://reviews.llvm.org/D109030
The file was modifiedlld/COFF/PDB.cpp
The file was modifiedlld/test/COFF/pdb-relative-source-lines.test
Commit c2162e4d89d6f99bbbe96beaa9156dbb2dba8344 by spatel
[InstCombine] add tests for min/max intrinsics with not ops; NFC
The file was modifiedllvm/test/Transforms/InstCombine/minmax-intrinsics.ll
Commit 92f54e1c752253b5a17eb9ec7942f580d878f64d by phosek
[Linker] Support weak symbols in nodeduplicate COMDAT group

When a nodeduplicate COMDAT group contains a weak symbol, choose
a non-weak symbol (or one of the weak ones) rather than reporting
an error. This should address issue PR51394.

With the current IR representation, a generic comdat nodeduplicate
semantics is not representable for LTO. In the linker, sections and
symbols are separate concepts. A dropped weak symbol does not force the
defining input section to be dropped as well (though it can be collected
by GC). In the IR, when a weak linkage symbol is dropped, its associate
section content is dropped as well.

For InstrProfiling, which is where ran into this issue in PR51394, the
deduplication semantic is a sufficient workaround.

Differential Revision: https://reviews.llvm.org/D108689
The file was modifiedllvm/lib/Linker/LinkModules.cpp
The file was modifiedllvm/test/Linker/comdat-nodeduplicate.ll
Commit 74043caef2eec37600570706d6bb5515bff9436f by pengfei.wang
[X86] Enable half type support in inline assembly constraints

Reviewed By: LuoYuanke

Differential Revision: https://reviews.llvm.org/D105799
The file was modifiedllvm/lib/Target/X86/X86ISelLowering.cpp
The file was modifiedllvm/test/CodeGen/X86/inline-asm-avx512f-x-constraint.ll
Commit c6913905d198bf1da34cd717742cec62ea9c3b72 by llvm-project
[Polly] Mention correct flag in debug output. NFCI.
The file was modifiedpolly/lib/Analysis/ScopDetection.cpp
Commit c62d9a5ca09e22c9d08a6e2076572afc6e12a43f by llvm-project
[Polly] Use subtyped isl::schedule_nodes for ScheduleTreeVisitor. NFC.

Change pass-by-const-ref to pass-by-value as objects are recreated
due to custom up-/down-casting anwyway.
The file was modifiedpolly/lib/Transform/ManualOptimizer.cpp
The file was modifiedpolly/lib/Transform/ScheduleTreeTransform.cpp
The file was modifiedpolly/include/polly/ScheduleTreeTransform.h
Commit 1688b4cf8ec3f87efdd0f2d0227588f549558dea by jdenny.ornl
[OpenMP][AMDGPU] XFAIL test where kernels call printf
The file was modifiedopenmp/libomptarget/test/mapping/ompx_hold/struct.c
Commit 89424a829f3c194177411c922c7050946891fff4 by yhs
[DWARF] Support new TAG DW_TAG_LLVM_annotation

A new LLVM specific TAG DW_TAG_LLVM_annotation is added.
The name is suggested by Paul Robinson ([1]).
Currently, this tag is used to output __attribute__((btf_tag("string")))
annotations in dwarf. The following is an example for a global
variable with two btf_tag attributes:
  0x0000002a:   DW_TAG_variable
                  DW_AT_name      ("g1")
                  DW_AT_type      (0x00000052 "int")
                  DW_AT_external  (true)
                  DW_AT_decl_file ("/tmp/home/yhs/work/tests/llvm/btf_tag/t.c")
                  DW_AT_decl_line (8)
                  DW_AT_location  (DW_OP_addr 0x0)

  0x0000003f:     DW_TAG_LLVM_annotation
                    DW_AT_name    ("btf_tag")
                    DW_AT_const_value     ("tag1")

  0x00000048:     DW_TAG_LLVM_annotation
                    DW_AT_name    ("btf_tag")
                    DW_AT_const_value     ("tag2")

  0x00000051:     NULL

In the future, DW_TAG_LLVM_annotation may encode other type
of non-string const value.

[1] https://lists.llvm.org/pipermail/llvm-dev/2021-June/151250.html

Differential Revision: https://reviews.llvm.org/D106621
The file was modifiedllvm/include/llvm/BinaryFormat/Dwarf.def
The file was modifiedllvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
The file was modifiedllvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp
The file was addedllvm/test/DebugInfo/attr-btf_tag.ll
The file was modifiedllvm/lib/CodeGen/AsmPrinter/DwarfUnit.h
Commit 6a75041a1614af1ca787af5a18ea9ddbe4dd5c16 by Christudasan.Devadasan
[TableGen] Allow target specific flags for RegisterClass

Analogous to the TSFlags for machine instructions, this
patch introduces a bit vector for register classes to have
target specific flags that become a tablegened value in
TargetRegisterClass.

Reviewed By: craig.topper

Differential Revision: https://reviews.llvm.org/D108767
The file was modifiedllvm/utils/TableGen/CodeGenRegisters.h
The file was modifiedllvm/include/llvm/CodeGen/TargetRegisterInfo.h
The file was modifiedllvm/include/llvm/Target/Target.td
The file was addedllvm/test/TableGen/RegisterInfoEmitter-tsflags.td
The file was modifiedllvm/utils/TableGen/RegisterInfoEmitter.cpp
The file was modifiedllvm/utils/TableGen/CodeGenRegisters.cpp
Commit 98f47131228cc73b5308e3cc6fd70375808594e3 by mahesha.comp
[AMDGPU] Split entry basic block after alloca instructions.

While initializing the LDS pointers within entry basic block of kernel(s), make
sure that the entry basic block is split after alloca instructions.

Reviewed By: rampitec

Differential Revision: https://reviews.llvm.org/D108971
The file was addedllvm/test/CodeGen/AMDGPU/replace-lds-by-ptr-split-entry-bb-after-alloca.ll
The file was modifiedllvm/lib/Target/AMDGPU/AMDGPUReplaceLDSUseWithPointer.cpp
Commit 319ce98011742141dad8dd95a2f9de9c0449be5c by v.g.vassilev
[clang-repl] Re-implement clang-interpreter as a test case.

The current infrastructure in lib/Interpreter has a tool, clang-repl, very
similar to clang-interpreter which also allows incremental compilation.

This patch moves clang-interpreter as a test case and drops it as conditionally
built example as we already have clang-repl in place.

Differential revision: https://reviews.llvm.org/D107049
The file was addedclang/unittests/Interpreter/ExceptionTests/CMakeLists.txt
The file was modifiedclang/lib/Interpreter/Interpreter.cpp
The file was modifiedclang/lib/Interpreter/IncrementalExecutor.h
The file was modifiedclang/examples/CMakeLists.txt
The file was modifiedclang/unittests/Interpreter/InterpreterTest.cpp
The file was modifiedclang/lib/Interpreter/IncrementalExecutor.cpp
The file was removedclang/examples/clang-interpreter/CMakeLists.txt
The file was removedclang/test/Misc/interpreter.c
The file was removedclang/examples/clang-interpreter/Test.cxx
The file was modifiedclang/include/clang/Interpreter/Interpreter.h
The file was modifiedclang/unittests/Interpreter/CMakeLists.txt
The file was modifiedclang/docs/ClangFormattedStatus.rst
The file was removedclang/examples/clang-interpreter/README.txt
The file was modifiedclang/test/CMakeLists.txt
The file was addedclang/unittests/Interpreter/ExceptionTests/InterpreterExceptionTest.cpp
The file was modifiedclang/test/lit.cfg.py
Commit 01152626ab87c6a9e76207a4a77b86a8a4ce6bbd by i
[Linker] Handle comdat nodeduplicate

For a variable in a comdat nodeduplicate, its initializer may be significant.
E.g. its content may be implicitly referenced by another comdat member (or
required to parallel to another comdat member by the runtime when explicit
section is used). We can clone it into an unnamed private linkage variable to
preserve its content.

This partially fixes PR51394 (Sony's proprietary linker using LTO): no error
will be reported. This is partial because we do not guarantee the global
variable order if the runtime has parallel section requirement.

---

There is a similar issue for regular LTO, but unrelated to PR51394:

with lib/LTO (using either ld.lld or LLVMgold.so), linking two modules
with a weak function of the same name, can leave one weak profc and two
private profd, due to lib/LTO's current deficiency that it mixes the two
concepts together: comdat selection and symbol resolution. If the issue
is considered important, we should suppress private profd for the weak+
regular LTO case.

Reviewed By: phosek

Differential Revision: https://reviews.llvm.org/D108879
The file was modifiedllvm/lib/Linker/LinkModules.cpp
The file was modifiedllvm/test/Linker/comdat-nodeduplicate.ll

Summary

  1. Add openmp to dependents for openmp-runtime (details)
Commit 0c329ebff09d723d6f9d835289439c5922ba5e23 by ron.lieberman
Add openmp to dependents for openmp-runtime
The file was modifiedbuildbot/osuosl/master/config/builders.py