SuccessChanges

Summary

  1. [mlir][MemRef] NFC - Drop MemRef EDSC usage (details)
  2. [flang] Implement more transformational intrinsic functions in runtime (details)
  3. [flang] Fix broken build of flang with clang (details)
  4. [M68k] Allow user to preserve certain registers (details)
  5. [M68k] Support for inline asm operands w/ simple constraints (details)
  6. [CUDA][HIP] Fix device variables used by host (details)
  7. [flang] Remove unused variable (details)
  8. [LLD] [COFF] Fix automatic export of symbols from LTO objects (details)
  9. [mlir][Affine] NFC - Drop Affine EDSC usage (details)
  10. [clang][AST] Improve AST Reader/Writer memory footprint (details)
  11. [asan] Add autogenerated test for fake stack (details)
  12. [AMDGPU] Fix module LDS selection (details)
Commit e3cf7c88c472aff8ca6c8a07ef8c6513f581c67a by nicolas.vasilache
[mlir][MemRef] NFC - Drop MemRef EDSC usage

Drop the MemRef dialect EDSC subdirectory and update all uses.

Differential Revision: https://reviews.llvm.org/D102868
The file was modifiedmlir/lib/Dialect/Linalg/Transforms/Fusion.cpp
The file was modifiedmlir/include/mlir/Dialect/Linalg/Utils/Utils.h
The file was modifiedmlir/lib/Dialect/GPU/Transforms/MemoryPromotion.cpp
The file was modifiedmlir/lib/Dialect/Linalg/Utils/Utils.cpp
The file was modifiedmlir/include/mlir/IR/ImplicitLocOpBuilder.h
The file was removedmlir/include/mlir/Dialect/MemRef/EDSC/Intrinsics.h
The file was modifiedmlir/lib/Dialect/Linalg/Transforms/Tiling.cpp
Commit c1db35f0c232a8672d44f2531d178d4da35b5b3c by pklausler
[flang] Implement more transformational intrinsic functions in runtime

Define APIs, naively implement, and add basic sanity unit tests for
the transformational intrinsic functions CSHIFT, EOSHIFT, PACK,
SPREAD, TRANSPOSE, and UNPACK.  These are the remaining transformational
intrinsic functions that rearrange data without regard to type
(except for default boundary values in EOSHIFT); RESHAPE was already
in place as a stress test for the runtime's descriptor handling
facilities.

Code is in place to create copies of allocatable/automatic
components when transforming arrays of derived type, but it won't
do anything until we have derived type information being passed to the
runtime from the frontend.

Differential Revision: https://reviews.llvm.org/D102857
The file was modifiedflang/runtime/tools.h
The file was modifiedflang/runtime/transformational.cpp
The file was modifiedflang/runtime/tools.cpp
The file was modifiedflang/unittests/RuntimeGTest/Reduction.cpp
The file was modifiedflang/runtime/allocatable.cpp
The file was modifiedflang/unittests/Evaluate/reshape.cpp
The file was modifiedflang/unittests/RuntimeGTest/CMakeLists.txt
The file was modifiedflang/unittests/RuntimeGTest/Matmul.cpp
The file was addedflang/runtime/copy.cpp
The file was modifiedflang/unittests/RuntimeGTest/Namelist.cpp
The file was modifiedflang/runtime/CMakeLists.txt
The file was modifiedflang/module/__fortran_type_info.f90
The file was addedflang/runtime/copy.h
The file was modifiedflang/runtime/type-info.h
The file was addedflang/unittests/RuntimeGTest/Transformational.cpp
The file was modifiedflang/runtime/descriptor.h
The file was modifiedflang/runtime/transformational.h
Commit 854367240d62802a547d25fb6027b2c3956e8cbf by pklausler
[flang] Fix broken build of flang with clang

A recent commit (e00a170) inadvertently exposed the Reshape runtime
function as being extern "C", for which it is not yet ready, leading
to a valid warning from clang that we treat as an error.  Patch.
The file was modifiedflang/runtime/transformational.cpp
The file was modifiedflang/runtime/transformational.h
Commit e620bea21199791513f3193a71b819b20a707ab1 by minyihh
[M68k] Allow user to preserve certain registers

Add `-ffixed-a[0-6]` and `-ffixed-d[0-7]` and the corresponding
subtarget features to prevent certain register from being allocated.

Differential Revision: https://reviews.llvm.org/D102805
The file was modifiedclang/include/clang/Driver/Options.td
The file was modifiedllvm/lib/Target/M68k/M68kSubtarget.h
The file was modifiedclang/lib/Driver/ToolChains/Arch/M68k.cpp
The file was modifiedllvm/lib/Target/M68k/M68k.td
The file was addedllvm/test/CodeGen/M68k/reserved-regs.ll
The file was modifiedllvm/lib/Target/M68k/M68kSubtarget.cpp
The file was addedclang/test/Driver/m68k-fixed-register.c
The file was modifiedllvm/lib/Target/M68k/M68kRegisterInfo.cpp
Commit dccf5c7dfb9e68f8750947f5c10ad3227cd92b50 by minyihh
[M68k] Support for inline asm operands w/ simple constraints

This patch adds supports for inline assembly operands and some simple
operand constraints, including register and constant operands.

Differential Revision: https://reviews.llvm.org/D102585
The file was modifiedllvm/lib/Target/M68k/M68kISelLowering.cpp
The file was modifiedllvm/lib/Target/M68k/M68kISelLowering.h
The file was modifiedllvm/lib/Target/M68k/M68kAsmPrinter.cpp
The file was addedclang/test/Sema/inline-asm-validate-m68k.c
The file was modifiedllvm/lib/Target/M68k/M68kAsmPrinter.h
The file was addedllvm/test/CodeGen/M68k/inline-asm.ll
The file was modifiedclang/lib/Basic/Targets/M68k.cpp
The file was modifiedclang/lib/Basic/Targets/M68k.h
Commit 4cb42564ec4b56ef7eb4758bfa4ddf844a163687 by Yaxun.Liu
[CUDA][HIP] Fix device variables used by host

variables emitted on both host and device side with different addresses
when ODR-used by host function should not cause device side counter-part
to be force emitted.

This fixes the regression caused by https://reviews.llvm.org/D102237

Reviewed by: Artem Belevich

Differential Revision: https://reviews.llvm.org/D102801
The file was modifiedclang/lib/CodeGen/CGDeclCXX.cpp
The file was modifiedclang/lib/Sema/SemaDeclAttr.cpp
The file was addedclang/test/AST/ast-dump-constant-var.cu
The file was modifiedclang/lib/Sema/SemaCUDA.cpp
The file was modifiedclang/lib/CodeGen/CodeGenModule.cpp
The file was modifiedclang/test/SemaCUDA/static-device-var.cu
The file was modifiedclang/include/clang/Sema/Sema.h
The file was modifiedclang/lib/Sema/SemaExpr.cpp
The file was modifiedclang/test/CodeGenCUDA/host-used-device-var.cu
Commit 27c3db32c033663dbdfa8b92ed962a990b99f21e by pklausler
[flang] Remove unused variable

Fixes the clang build of flang/runtime/transformational.cpp.
The file was modifiedflang/runtime/transformational.cpp
Commit 33b71ec9c6719d3b6429f121dcf1f6f7c7f5abef by martin
[LLD] [COFF] Fix automatic export of symbols from LTO objects

Differential Revision: https://reviews.llvm.org/D101569
The file was modifiedlld/COFF/Chunks.cpp
The file was modifiedlld/COFF/Driver.cpp
The file was addedlld/test/COFF/export-all-lto.ll
The file was modifiedlld/COFF/InputFiles.cpp
Commit e84a9b9bb3051c35dea993cdad7b3d2575638f85 by nicolas.vasilache
[mlir][Affine] NFC - Drop Affine EDSC usage

Drop the Affine dialect EDSC subdirectory and update all uses.

Differential Revision: https://reviews.llvm.org/D102878
The file was modifiedmlir/lib/Conversion/VectorToSCF/CMakeLists.txt
The file was removedmlir/include/mlir/Dialect/Affine/EDSC/Intrinsics.h
The file was modifiedmlir/lib/Dialect/Affine/CMakeLists.txt
The file was modifiedmlir/include/mlir/Dialect/StandardOps/Utils/Utils.h
The file was modifiedmlir/include/mlir/Dialect/Linalg/Utils/Utils.h
The file was removedmlir/lib/Dialect/Affine/EDSC/CMakeLists.txt
The file was modifiedmlir/lib/Dialect/Linalg/Transforms/Loops.cpp
The file was modifiedmlir/test/Dialect/Linalg/tile-and-fuse-tensors.mlir
The file was modifiedmlir/lib/Dialect/Linalg/Utils/CMakeLists.txt
The file was removedmlir/include/mlir/Dialect/Affine/EDSC/Builders.h
The file was modifiedmlir/lib/Dialect/Linalg/Transforms/Tiling.cpp
The file was removedmlir/lib/Dialect/Affine/EDSC/Builders.cpp
The file was modifiedmlir/lib/Dialect/StandardOps/Utils/Utils.cpp
The file was modifiedmlir/lib/Dialect/Linalg/Utils/Utils.cpp
Commit e6b8320c0a634ba60c82693c6631ea90fb2988a6 by apollo.mobility
[clang][AST] Improve AST Reader/Writer memory footprint

Reduce memory footprint of AST Reader/Writer:
1. Adjust internal data containers' element type.
2. Switch to set for deduplication of deferred diags.

Differential Revision: https://reviews.llvm.org/D101793
The file was modifiedclang/lib/Sema/SemaDecl.cpp
The file was modifiedclang/lib/Serialization/ASTWriter.cpp
The file was modifiedclang/include/clang/Serialization/ASTReader.h
The file was modifiedclang/include/clang/Sema/Sema.h
The file was modifiedclang/include/clang/Sema/ExternalSemaSource.h
The file was modifiedclang/include/clang/Sema/MultiplexExternalSemaSource.h
The file was modifiedclang/lib/Serialization/ASTReader.cpp
The file was modifiedclang/lib/Sema/MultiplexExternalSemaSource.cpp
The file was modifiedclang/include/clang/Serialization/ASTWriter.h
Commit b1140554e1b29f21b0d3657ce0700fa1726646ed by Vitaly Buka
[asan] Add autogenerated test for fake stack

This will help to see result of D102462.

Test was generated with
./llvm/utils/update_test_checks.py llvm/test/Instrumentation/AddressSanitizer/fake-stack.ll --opt-binary <build_dir>/bin/opt

Differential Revision: https://reviews.llvm.org/D102867
The file was addedllvm/test/Instrumentation/AddressSanitizer/fake-stack.ll
Commit 748db5bfacf1f81f65e8c052459ed3eca6aa18c8 by Stanislav.Mekhanoshin
[AMDGPU] Fix module LDS selection

Accesses to global module LDS variable start from null,
but kernel also thinks its variables start address is
null. Fixed by not using a null as an address.

Differential Revision: https://reviews.llvm.org/D102882
The file was addedllvm/test/CodeGen/AMDGPU/lower-module-lds-offsets.ll
The file was modifiedllvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
The file was modifiedllvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp
The file was modifiedllvm/test/CodeGen/AMDGPU/lower-module-lds-used-list.ll
The file was modifiedllvm/lib/Target/AMDGPU/AMDGPUMachineFunction.cpp
The file was modifiedllvm/test/CodeGen/AMDGPU/lower-module-lds-indirect.ll
The file was modifiedllvm/lib/Target/AMDGPU/AMDGPULowerModuleLDSPass.cpp
The file was modifiedllvm/test/CodeGen/AMDGPU/lower-module-lds-constantexpr.ll
The file was modifiedllvm/test/CodeGen/AMDGPU/lower-module-lds.ll