FailedChanges

Summary

  1. [DebugInfo] Fix DWARF expressions for __block vars that are not on the heap (details)
  2. [AArch64] Lower bitreverse in ISel (details)
  3. Silence "Undefined or garbage value returned to caller" static analysis warning. NFCI. (details)
  4. [mlir] fix misformatted documentation for memref convention (details)
  5. [mlir] Improve TransferOp verifier: broadcasts are in_bounds (details)
  6. [clang-tidy] Fix altera-struct-pack-align crash for struct fields with incomplete type (details)
Commit 888ce70af288168136cf1ca658c3cf6d6759bb3f by Raphael Isemann
[DebugInfo] Fix DWARF expressions for __block vars that are not on the heap

`__block` variables used to be always stored on the head instead of stack.
D51564 allowed `__block` variables to the stored on the stack like normal
variablesif they not captured by any escaping block, but the debug-info
generation code wasn't made aware of it so we still unconditionally emit DWARF
expressions pointing to the heap.

This patch makes CGDebugInfo use the `EscapingByref` introduced in D51564 that
tracks whether the `__block` variable is actually on the heap. If it's stored on
the stack instead we just use the debug info we would generate for normal
variables instead.

Reviewed By: ahatanak, aprantl

Differential Revision: https://reviews.llvm.org/D99946
The file was modifiedclang/test/CodeGen/debug-info-block-expr.c
The file was modifiedclang/lib/CodeGen/CGDebugInfo.cpp
Commit 50511df32edf53238b75b0e9767120dc772dbf14 by irina.dobrescu
[AArch64] Lower bitreverse in ISel

Adding lowering support for bitreverse.

Previously, lowering bitreverse would expand it into a series of other instructions. This patch makes it so this produces a single rbit instruction instead.

Reviewed By: dmgreen

Differential Revision: https://reviews.llvm.org/D102397
The file was modifiedllvm/lib/Target/AArch64/AArch64ISelLowering.cpp
The file was modifiedllvm/test/CodeGen/AArch64/arm64-vbitwise.ll
The file was modifiedllvm/include/llvm/IR/IntrinsicsAArch64.td
The file was modifiedclang/test/CodeGen/aarch64-neon-misc.c
The file was addedllvm/test/CodeGen/AArch64/neon_rbit.ll
The file was modifiedllvm/lib/IR/AutoUpgrade.cpp
The file was modifiedllvm/lib/Target/AArch64/AArch64InstrInfo.td
The file was modifiedclang/lib/CodeGen/CGBuiltin.cpp
The file was modifiedllvm/test/CodeGen/AArch64/bitreverse.ll
Commit b89e09a19f9b60dfa9477b24a404a7ae5522f898 by llvm-dev
Silence "Undefined or garbage value returned to caller" static analysis warning. NFCI.
The file was modifiedclang/lib/Driver/Driver.cpp
Commit 9b7e5b63aa60b2df9e683b1acf3e855062da1773 by zinenko
[mlir] fix misformatted documentation for memref convention

The code-block ending marker was missing.
The file was modifiedmlir/docs/LLVMDialectMemRefConvention.md
Commit 2c9688d201a79383282c22dca2c2826688d5272c by springerm
[mlir] Improve TransferOp verifier: broadcasts are in_bounds

Broadcast dimensions of vector transfer ops are always in-bounds. This is consistent with the fact that the starting position of a transfer is always in-bounds.

Differential Revision: https://reviews.llvm.org/D102566
The file was modifiedmlir/include/mlir/Dialect/Vector/VectorOps.td
The file was modifiedmlir/test/Dialect/Vector/invalid.mlir
The file was modifiedmlir/include/mlir/Interfaces/VectorInterfaces.td
The file was modifiedmlir/lib/Dialect/Vector/VectorOps.cpp
Commit ab92a4c26f54170bf72706ad29c0fb151a177590 by jubnzv
[clang-tidy] Fix altera-struct-pack-align crash for struct fields with incomplete type

We can only use ASTContext::getTypeInfo for complete types.

This fixes bugzilla issue 50313.

Reviewed By: aaron.ballman

Differential Revision: https://reviews.llvm.org/D102569
The file was modifiedclang-tools-extra/clang-tidy/altera/StructPackAlignCheck.cpp
The file was addedclang-tools-extra/test/clang-tidy/checkers/altera-struct-pack-align-no-crash.cpp