SuccessChanges

Summary

  1. [flang] Check shape conformance on initializers (details)
  2. [mlir][openacc] Add missing attributes and operands for acc.loop (details)
  3. [OpenMPOpt][NFC] Moving constants as struct static attributes (details)
  4. [DWARFYAML] Make the debug_str section optional. (details)
  5. [MemorySSA] Clean up single value phis. (details)
  6. [CMake] Use find_library for ncurses (details)
  7. Remove -Wcompound-token-split-by-space from -Wall. (details)
  8. Fix -Wcompound-token-split to give the same warnings under -E (details)
  9. [Test] Move IndVars test to a proper place (details)
  10. More accurately compute the ranges of possible values for +, -, *, &, %. (details)
  11. Classify (small unsigned bitfield) < 0 comparisons under (details)
Commit f862d858076ff861048c8f259fac575c0a4e1a6a by pklausler
[flang] Check shape conformance on initializers

Specifically, ensure that initializers conform with their objects
according to 8.2 para 4.

Differential Revision: https://reviews.llvm.org/D86886
The file was modifiedflang/test/Evaluate/folding08.f90
The file was modifiedflang/lib/Semantics/check-declarations.cpp
The file was modifiedflang/test/Semantics/init01.f90
The file was modifiedflang/lib/Semantics/check-declarations.h
The file was modifiedflang/test/Semantics/structconst02.f90
The file was modifiedflang/lib/Semantics/expression.cpp
The file was modifiedflang/lib/Semantics/pointer-assignment.cpp
The file was modifiedflang/lib/Evaluate/check-expression.cpp
The file was modifiedflang/lib/Semantics/resolve-names.cpp
The file was modifiedflang/lib/Evaluate/tools.cpp
The file was modifiedflang/test/Semantics/select-rank.f90
The file was modifiedflang/lib/Semantics/type.cpp
The file was modifiedflang/lib/Evaluate/shape.cpp
Commit 2bbbcae782adbea20ae50f9f5471056a91498ffc by clementval
[mlir][openacc] Add missing attributes and operands for acc.loop

This patch add the missing operands to the acc.loop operation. Only the device_type
information is not part of the operation for now.

Reviewed By: rriddle, kiranchandramohan

Differential Revision: https://reviews.llvm.org/D86753
The file was modifiedmlir/include/mlir/Dialect/OpenACC/OpenACCOps.td
The file was modifiedmlir/include/mlir/Dialect/OpenACC/OpenACC.h
The file was modifiedmlir/lib/Dialect/OpenACC/IR/OpenACC.cpp
The file was modifiedmlir/test/Dialect/OpenACC/ops.mlir
Commit 1d3d9b9cd808ef37f3dacd3ada81bff1353cd24b by htobonmm7
[OpenMPOpt][NFC] Moving constants as struct static attributes
The file was modifiedllvm/lib/Transforms/IPO/OpenMPOpt.cpp
Commit 428b2ffad4a346a967a4a105356fbc0fa518e2cc by Xing
[DWARFYAML] Make the debug_str section optional.

This patch makes the debug_str section optional. When the debug_str
section exists but doesn't contain anything, yaml2obj will emit a
section header for it.

Reviewed By: grimar

Differential Revision: https://reviews.llvm.org/D86860
The file was modifiedllvm/lib/ObjectYAML/DWARFYAML.cpp
The file was modifiedllvm/lib/ObjectYAML/DWARFEmitter.cpp
The file was modifiedllvm/test/ObjectYAML/MachO/DWARF-debug_str.yaml
The file was modifiedllvm/tools/obj2yaml/dwarf2yaml.cpp
The file was modifiedllvm/include/llvm/ObjectYAML/DWARFYAML.h
The file was modifiedllvm/test/tools/yaml2obj/ELF/DWARF/debug-str.yaml
Commit 63844c116a0acf8a75ebe4ed6f25fced3c655710 by asbirlea
[MemorySSA] Clean up single value phis.

MemoryPhis with a single value are correct, but can lead to errors when
updating. Clean up single entry Phis newly added when cloning blocks.
Resolves PR46574.
The file was addedllvm/test/Analysis/MemorySSA/pr46574.ll
The file was modifiedllvm/lib/Analysis/MemorySSAUpdater.cpp
Commit 3c7bfbd6831b2144229734892182d403e46d7baf by phosek
[CMake] Use find_library for ncurses

Currently it is hard to avoid having LLVM link to the system install of
ncurses, since it uses check_library_exists to find e.g. libtinfo and
not find_library or find_package.

With this change the ncurses lib is found with find_library, which also
considers CMAKE_PREFIX_PATH. This solves an issue for the spack package
manager, where we want to use the zlib installed by spack, and spack
provides the CMAKE_PREFIX_PATH for it.

This is a similar change as https://reviews.llvm.org/D79219, which just
landed in master.

Patch By: haampie

Differential Revision: https://reviews.llvm.org/D85820
The file was modifiedcompiler-rt/cmake/config-ix.cmake
The file was modifiedcompiler-rt/lib/xray/tests/CMakeLists.txt
The file was modifiedllvm/include/llvm/Config/config.h.cmake
The file was modifiedllvm/lib/Support/CMakeLists.txt
The file was modifiedllvm/cmake/config-ix.cmake
The file was modifiedlldb/source/Core/CMakeLists.txt
The file was modifiedllvm/lib/Support/Unix/Process.inc
The file was modifiedllvm/utils/gn/secondary/llvm/include/llvm/Config/BUILD.gn
The file was modifiedllvm/CMakeLists.txt
Commit 0da84535b1e328188efbc1bb697dc7276f9e7d27 by richard
Remove -Wcompound-token-split-by-space from -Wall.

Use of a linebreak between the `(` and `{` in a GNU statement-expression
appears to be too common to include this warning in -Wall -- this occurs
in some Linux kernel headers, for example.
The file was modifiedclang/test/Parser/compound-token-split.cpp
The file was modifiedclang/test/Misc/warning-wall.c
The file was modifiedclang/include/clang/Basic/DiagnosticGroups.td
Commit 113861b444610aebd1c05760a3e0ee6284f42211 by richard
Fix -Wcompound-token-split to give the same warnings under -E
-frewrite-includes.

Remove the special-case (and highly implausible) diagnostic for a
compound token that crosses a file boundary, and instead model that case
the same as a compound token separated by whitespace, so that file
transitions and presumed file transitions behave the same way.
The file was modifiedclang/test/Parser/compound-token-split.cpp
The file was modifiedclang/include/clang/Basic/DiagnosticParseKinds.td
The file was modifiedclang/lib/Parse/Parser.cpp
Commit e7f53044e7263cdbbb4fed9abf086b88ba486bba by mkazantsev
[Test] Move IndVars test to a proper place
The file was removedllvm/test/Analysis/ScalarEvolution/predicated_ranges.ll
The file was addedllvm/test/Transforms/IndVarSimplify/predicated_ranges.ll
Commit cff6dda604cb0548bef5e5951dd1e74536110588 by richard
More accurately compute the ranges of possible values for +, -, *, &, %.

Continue to heuristically pick the wider of the two operands for
narrowing conversion warnings so that some_char + 1 isn't treated as
being wider than a char, but use the more accurate computation for
tautological comparison warnings.

Differential Revision: https://reviews.llvm.org/D85778
The file was modifiedclang/lib/Sema/SemaChecking.cpp
The file was modifiedclang/test/Sema/tautological-constant-compare.c
Commit f819dbf012b3f624a836641f90dabff5f667b82e by richard
Classify (small unsigned bitfield) < 0 comparisons under
-Wtautological-unsigned-zero-compare not under
-Wtautological-value-range-compare.
The file was modifiedclang/lib/Sema/SemaChecking.cpp
The file was modifiedclang/test/Sema/compare.c