Changes

Summary

  1. [lldb][docs] Fix reference warnings in python-reference.rst (details)
  2. Revert "[clang] fixes named return of variables with dependent alignment" (details)
  3. [Polly][Isl] Use isl::set::tuple_dim, isl::map::domain_tuple_dim and isl::map::range_tuple_dim. NFC (details)
  4. [LV] Collect a list of all element types found in the loop (NFC) (details)
  5. [MLIR] Fix dialect conversion cancelRootUpdate (details)
  6. [AMDGPU] Set optional PAL metadata (details)
  7. [hwasan] Check for overflow when searching candidates. (details)
  8. [VPlan] Add VPReductionPHIRecipe (NFC). (details)
  9. [AMDGPU] Remove outdated comment and tidy up. NFC. (details)
  10. [VPlan] Add destructor to VPReductionRecipe to unbreak build. (details)
Commit 51ab17b91d2e3280d08c09648bb4950c0e217d20 by Raphael Isemann
[lldb][docs] Fix reference warnings in python-reference.rst

References with a single '`' around them are interpreted as references instead
of text with monospaced font since the introduction of the new Python API
generator. This meant that all the single-quoted code in this document that
doesn't reference any Python class was throwing sphinx errors. This just adds
the neede extra ` around this code and fixed up the legitimate typos
(e.g. `SBframe` -> `SBFrame`).
The file was modifiedlldb/docs/use/python-reference.rst
Commit cbb09c5b2c2e0558de50355f4cbbbe2d2840073e by akuegel
Revert "[clang] fixes named return of variables with dependent alignment"

This reverts commit 21106388eb96c87b3f580c42a322c76a61605261.
It causes a segfault in certain cases.
The file was modifiedclang/lib/Sema/SemaStmt.cpp
The file was modifiedclang/lib/AST/Decl.cpp
The file was modifiedclang/test/CodeGen/nrvo-tracking.cpp
The file was modifiedclang/include/clang/AST/Decl.h
The file was modifiedclang/lib/Sema/SemaDecl.cpp
Commit f482497c381cf9beee513864123cf975bd72babf by patacca
[Polly][Isl] Use isl::set::tuple_dim, isl::map::domain_tuple_dim and isl::map::range_tuple_dim. NFC

This is part of an effort to reduce the differences between the custom C++ bindings used right now by polly in `lib/External/isl/include/isl/isl-noxceptions.h` and the official isl C++ interface.

Changes made:
- Use `isl::set::tuple_dim` instead of `isl::set::dim` and `isl::set::n_dim`
- Use `isl::map::domain_tuple_dim` instead of `isl::map::dim`
- Use `isl::map::range_tuple_dim` instead of `isl::map::dim`
- isl-noexceptions.h has been generated by this https://github.com/patacca/isl/commit/45576e1b4260f91946e4cf819485f57bd2ed5490

Note that not all the usage of `isl::{set,map}::dim` where replaced

Reviewed By: Meinersbur

Differential Revision: https://reviews.llvm.org/D104994
The file was modifiedpolly/lib/CodeGen/PPCGCodeGeneration.cpp
The file was modifiedpolly/lib/Transform/MaximalStaticExpansion.cpp
The file was modifiedpolly/lib/Transform/ZoneAlgo.cpp
The file was modifiedpolly/lib/Analysis/ScopBuilder.cpp
The file was modifiedpolly/lib/External/isl/include/isl/isl-noexceptions.h
The file was modifiedpolly/lib/Transform/FlattenAlgo.cpp
The file was modifiedpolly/lib/Transform/ScheduleTreeTransform.cpp
The file was modifiedpolly/lib/Transform/MatmulOptimizer.cpp
The file was modifiedpolly/lib/Support/ISLTools.cpp
The file was modifiedpolly/lib/Analysis/DependenceInfo.cpp
The file was modifiedpolly/lib/Analysis/ScopInfo.cpp
Commit 17b701c43ca6459db020bff075b119f33a4a8ec5 by kerry.mclaughlin
[LV] Collect a list of all element types found in the loop (NFC)

Splits `getSmallestAndWidestTypes` into two functions, one of which now collects
a list of all element types found in the loop (`ElementTypesInLoop`). This ensures we do not
have to iterate over all instructions in the loop again in other places, such as in D102253
which disables scalable vectorization of a loop if any of the instructions use invalid types.

Reviewed By: sdesmalen

Differential Revision: https://reviews.llvm.org/D105437
The file was modifiedllvm/lib/Transforms/Vectorize/LoopVectorize.cpp
Commit 0c29f45ac9e8e67a6481c0810e2e335a12bf3877 by uday
[MLIR] Fix dialect conversion cancelRootUpdate

Fix dialect conversion ConversionPatternRewriter::cancelRootUpdate: the
erasure of operations here from the list of root update was off by one.
Should have been:
```
rootUpdates.erase(rootUpdates.begin() + (rootUpdates.rend() - it - 1));
```
instead of
```
rootUpdates.erase(rootUpdates.begin() + (rootUpdates.rend() - it));
```

or more directly:
```
rootUpdates.erase(it.base() - 1)
```

While on this, add an assertion to improve dev experience when a cancel is
called on an op on which a root update hasn't been started.

Differential Revision: https://reviews.llvm.org/D105397
The file was modifiedmlir/lib/Transforms/Utils/DialectConversion.cpp
Commit db646de3ee0181c93744b69cb51baeff17d70a00 by sebastian.neubauer
[AMDGPU] Set optional PAL metadata

Set informational fields in the .shader_functions table.

Also correct the documentation, .scratch_memory_size and .lds_size are
integers.

Differential Revision: https://reviews.llvm.org/D105116
The file was modifiedllvm/lib/Target/AMDGPU/Utils/AMDGPUPALMetadata.cpp
The file was modifiedllvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
The file was modifiedllvm/docs/AMDGPUUsage.rst
The file was modifiedllvm/lib/Target/AMDGPU/Utils/AMDGPUPALMetadata.h
The file was modifiedllvm/test/CodeGen/AMDGPU/amdpal-callable.ll
Commit a0b1f3aac57a9becb28d6a9c50f4d2eee7ba6c82 by fmayer
[hwasan] Check for overflow when searching candidates.

If the fault address is at the boundary of memory regions, this could
cause us to segfault otherwise.

Ran test with old compiler_rt to make sure it fails.

Reviewed By: eugenis

Differential Revision: https://reviews.llvm.org/D105032
The file was modifiedcompiler-rt/lib/hwasan/hwasan_mapping.h
The file was addedcompiler-rt/test/hwasan/TestCases/tag-mismatch-border-address.c
The file was modifiedcompiler-rt/lib/hwasan/hwasan_report.cpp
Commit 6c3451cd76cbd0cd973d9c2b08b168dcd0bce3c2 by flo
[VPlan] Add VPReductionPHIRecipe (NFC).

This patch is a first step towards splitting up VPWidenPHIRecipe into
separate recipes for the 3 distinct cases they model:

    1. reduction phis,
    2. first-order recurrence phis,
    3. pointer induction phis.

This allows untangling the code generation and allows us to reduce the
reliance on LoopVectorizationCostModel during VPlan code generation.

Discussed/suggested in D100102, D100113, D104197.

Reviewed By: Ayal

Differential Revision: https://reviews.llvm.org/D104989
The file was modifiedllvm/test/Transforms/LoopVectorize/vplan-printing.ll
The file was modifiedllvm/lib/Transforms/Vectorize/VPlanValue.h
The file was modifiedllvm/test/Transforms/LoopVectorize/first-order-recurrence-sink-replicate-region.ll
The file was modifiedllvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
The file was modifiedllvm/lib/Transforms/Vectorize/LoopVectorize.cpp
The file was modifiedllvm/lib/Transforms/Vectorize/VPlan.h
The file was modifiedllvm/lib/Transforms/Vectorize/VPlan.cpp
Commit c9d747e9cd6db4a104980ad4358f70cba0a1a634 by jay.foad
[AMDGPU] Remove outdated comment and tidy up. NFC.

This was left over from D94746.
The file was modifiedllvm/lib/Target/AMDGPU/SILowerControlFlow.cpp
Commit bbcbf21ae60c928e07dde6a1c468763b3209d1e6 by flo
[VPlan] Add destructor to VPReductionRecipe to unbreak build.

Attempt to unbreak
https://lab.llvm.org/buildbot/#/builders/67/builds/3363/steps/6/logs/stdio
The file was modifiedllvm/lib/Transforms/Vectorize/VPlan.h