Changes

Summary

  1. [flang] Allow a generic-spec on a PUBLIC/PRIVATE statement to declare a generic (details)
  2. [AMDGPU] Precommit switching test to generated checks for D134463 (details)
  3. Make MLIR model URLs cache variables (details)
  4. [flang] Allow "non-expandable" scalars in single-element contexts (details)
  5. [flang] Fix spurious error with COMMON and EQUIVALENCE (details)
  6. [flang][runtime] Enabled HAS_FLOAT128 for builds with clang. (details)
  7. [objdump] Fix typo in error message. (details)
Commit dd41453f1b5ee2b393f701c9f7b0619ec1dd8744 by pklausler
[flang] Allow a generic-spec on a PUBLIC/PRIVATE statement to declare a generic

A generic-spec can appear on a module accessibility control statement
even if it has not been declared as a generic interface, because there's
nothing else that it could be.

While here, simplify the parse tree and parser for AccessId, since
one of its alternatives is ambiguous with the other.

Differential Revision: https://reviews.llvm.org/D134471
The file was modifiedflang/include/flang/Parser/parse-tree.h (diff)
The file was modifiedflang/lib/Parser/Fortran-parsers.cpp (diff)
The file was modifiedflang/lib/Semantics/resolve-names.cpp (diff)
The file was addedflang/test/Semantics/modfile51.f90
Commit 33ab74ac466fcbc3e5c1fcac664cfc544592a3a9 by jeffrey.byrnes
[AMDGPU] Precommit switching test to generated checks for D134463

Change-Id: I0d90f86ab759347a2f20448d28cc09ddaea3a4d4
The file was modifiedllvm/test/CodeGen/AMDGPU/fcanonicalize.f16.ll (diff)
The file was modifiedllvm/test/CodeGen/AMDGPU/load-hi16.ll (diff)
The file was modifiedllvm/test/CodeGen/AMDGPU/pack.v2i16.ll (diff)
The file was modifiedllvm/test/CodeGen/AMDGPU/divergence-driven-buildvector.ll (diff)
The file was modifiedllvm/test/CodeGen/AMDGPU/add.v2i16.ll (diff)
Commit 32994b7357a33de5a32c03a29691e93911dca4e3 by yikong
Make MLIR model URLs cache variables

This allows us to directly use the models published on Github.

Differential Revision: https://reviews.llvm.org/D134566
The file was modifiedllvm/lib/Analysis/CMakeLists.txt (diff)
The file was modifiedllvm/lib/CodeGen/CMakeLists.txt (diff)
Commit 19d11b4d9de84137a50bf09e5180a53a007cacee by pklausler
[flang] Allow "non-expandable" scalars in single-element contexts

When a scalar expression is not expandable -- i.e., it would have to be
evaluated once and saved in a temporary to avoid changing the semantics
of the program if it were to be evaluated more than once -- it affects
some aspects of folding and expression semantics.  In cases where
scalar expansion would not cause multiple evaluations due to the shape
of the result having but a single element, however, these "non-expandable"
scalar expressions can be safely allowed.

Differential Revision: https://reviews.llvm.org/D134476
The file was modifiedflang/include/flang/Evaluate/shape.h (diff)
The file was modifiedflang/lib/Evaluate/shape.cpp (diff)
The file was modifiedflang/include/flang/Evaluate/tools.h (diff)
The file was modifiedflang/lib/Semantics/expression.cpp (diff)
The file was modifiedflang/lib/Evaluate/fold-implementation.h (diff)
The file was modifiedflang/include/flang/Evaluate/characteristics.h (diff)
Commit 166563fdc7e92130122fe386c29806ac4048a907 by pklausler
[flang] Fix spurious error with COMMON and EQUIVALENCE

f18 emits an error message when two objects related by EQUIVALENCE
to a third are specified as members of a COMMON block.  This is not
always a sign of an error, however; it is possible for multiple objects
in a COMMON block to all be equivalenced to distinct offsets in another
object in a way that is consistent.  So refine the check.

Differential Revision: https://reviews.llvm.org/D134485
The file was modifiedflang/lib/Semantics/compute-offsets.cpp (diff)
The file was modifiedflang/test/Semantics/offsets03.f90 (diff)
Commit a707675dbba9ca3ec6e668f86fea2240a85ca171 by szakharin
[flang][runtime] Enabled HAS_FLOAT128 for builds with clang.

I am building with clang, and I noticed for quite a while that
REAL(16) runtimes functions are not available. I did not know why
until I saw this typo.

Differential Revision: https://reviews.llvm.org/D134503
The file was modifiedflang/include/flang/Runtime/float128.h (diff)
Commit 74150a0afa2d945dd498a6f5748cdb996a1bc3d2 by danielrodriguez
[objdump] Fix typo in error message.

Change "inconsistant" for "inconsistent" in the message, the file name
and the test output.

Reviewed By: pete, MaskRay

Differential Revision: https://reviews.llvm.org/D134562
The file was removedllvm/test/tools/llvm-objdump/MachO/Inputs/macho-inconsistant-export
The file was modifiedllvm/test/tools/llvm-objdump/MachO/bad-trie.test (diff)
The file was modifiedllvm/lib/Object/MachOObjectFile.cpp (diff)
The file was addedllvm/test/tools/llvm-objdump/MachO/Inputs/macho-inconsistent-export