Changes

Summary

  1. [NFC][msan] Rename ModuleMemorySanitizerPass (details)
  2. [NFC][sancov] Rename ModuleSanitizerCoveragePass (details)
  3. [compiler-rt] [test] Handle missing ld.gold gracefully (details)
  4. [LLD][COFF] Fix writing a map file when range extension thunks are inserted (details)
  5. [X86][NFC] Refine load/store reg to StackSlot for extensibility (details)
  6. [CSKY] Fix the compiling error about missing Log2 function with Log2_64 (details)
  7. [MLIR] NFC. Introduce mlir::hasEffect and refactor usages dialect util (details)
  8. [clang][doc] Do not keep a copy of ClangCommandLineReference.rst in tree (details)
  9. [AArch64] add tests for non-power2 int types; NFC (details)
  10. [mlir] Remove `materializeOpFoldResult` functions. (details)
Commit 5e38b2a456df6e263a509af60a731cec57310498 by Vitaly Buka
[NFC][msan] Rename ModuleMemorySanitizerPass
The file was modifiedllvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp (diff)
The file was modifiedllvm/lib/Passes/PassRegistry.def (diff)
The file was modifiedclang/lib/CodeGen/BackendUtil.cpp (diff)
The file was modifiedllvm/include/llvm/Transforms/Instrumentation/MemorySanitizer.h (diff)
Commit 4c18670776cd6ac31099a455b2b22b38b0408006 by Vitaly Buka
[NFC][sancov] Rename ModuleSanitizerCoveragePass
The file was modifiedllvm/test/Instrumentation/SanitizerCoverage/crit-edge-sancov.ll (diff)
The file was modifiedclang/test/Driver/sancov.c (diff)
The file was modifiedllvm/include/llvm/Transforms/Instrumentation/SanitizerCoverage.h (diff)
The file was modifiedllvm/lib/Transforms/Instrumentation/SanitizerCoverage.cpp (diff)
The file was modifiedllvm/lib/Passes/PassRegistry.def (diff)
The file was modifiedclang/lib/CodeGen/BackendUtil.cpp (diff)
Commit ea953b9d9a65c202985a79f1f95da115829baef6 by mgorny
[compiler-rt] [test] Handle missing ld.gold gracefully

Fix the is_binutils_lto_supported() function to handle missing
executables gracefully.  Currently, the function does not catch
exceptions from subprocess.Popen() and therefore causes lit to crash
if config.gold_executable does not specify a valid executable:

```
lit: /usr/lib/python3.11/site-packages/lit/TestingConfig.py:136: fatal: unable to parse config file '/tmp/portage/sys-libs/compiler-rt-
15.0.0/work/compiler-rt/test/lit.common.cfg.py', traceback: Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/lit/TestingConfig.py", line 125, in load_from_path
    exec(compile(data, path, 'exec'), cfg_globals, None)
  File "/tmp/portage/sys-libs/compiler-rt-15.0.0/work/compiler-rt/test/lit.common.cfg.py", line 561, in <module>
    if is_binutils_lto_supported():
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/portage/sys-libs/compiler-rt-15.0.0/work/compiler-rt/test/lit.common.cfg.py", line 543, in is_binutils_lto_supported
    ld_cmd = subprocess.Popen([exe, '--help'], stdout=subprocess.PIPE, env={'LANG': 'C'})
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/subprocess.py", line 1022, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.11/subprocess.py", line 1899, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'GOLD_EXECUTABLE-NOTFOUND'
```

Differential Revision: https://reviews.llvm.org/D133358
The file was modifiedcompiler-rt/test/lit.common.cfg.py (diff)
Commit 4e5a59a3839f54d928d37d49d4c4ddbb3f339b76 by martin
[LLD][COFF] Fix writing a map file when range extension thunks are inserted

Bug: An assertion fails:

    Assertion failed: isa<To>(Val) && "cast<Ty>() argument of incompatible type!",
    file C:\Users\<user>\prog\llvm\llvm-git-lld-bug\llvm\include\llvm/Support/Casting.h, line 578

Bug is triggered, if

    - a map file is requested with /MAP, and
    - Architecture is ARMv7, Thumb, and
    - a relative jump (branch instruction) is greater than 16 MiB (2^24)

The reason for the Bug is:

    - a Thunk is created for the jump
    - a Symbol for the Thunk is created
        - of type `DefinedSynthetic`
        - in file `Writer.cpp`
        - in function `getThunk`
    - the Symbol has no name
    - when creating the map file, the name of the Symbol is queried
    - the function `Symbol::computeName` of the base class `Symbol`
      casts the `this` pointer to type `DefinedCOFF` (a derived type),
      but the acutal type is `DefinedSynthetic`
    - The in the llvm::cast an assertion fails

Changes:

- Modify regression test to trigger this bug
- Give the symbol pointing to the thunk a name, to fix the bug
- Add assertion, that only DefinedCOFF symbols are allowed to have an
  empty name, when the constructor of the base class Symbol is executed

Reviewed By: rnk

Differential Revision: https://reviews.llvm.org/D133201
The file was modifiedlld/COFF/Symbols.h (diff)
The file was modifiedlld/COFF/Writer.cpp (diff)
The file was modifiedlld/test/COFF/arm64-thunks.s (diff)
The file was modifiedlld/test/COFF/arm-thumb-thunks.s (diff)
Commit c836ddaf721c9ef691d24dc265822b267e7e89de by xiang1.zhang
[X86][NFC] Refine load/store reg to StackSlot for extensibility

Reviewed By: LuoYuanke

Differential Revision: https://reviews.llvm.org/D133078
The file was modifiedllvm/lib/Target/X86/X86InstrInfo.cpp (diff)
The file was modifiedllvm/lib/Target/X86/X86InstrInfo.h (diff)
The file was modifiedllvm/test/CodeGen/X86/AMX/amx-fastconfig-phi.mir (diff)
The file was modifiedllvm/test/CodeGen/X86/AMX/amx-fastconfig-phi4.mir (diff)
The file was modifiedllvm/test/CodeGen/X86/AMX/amx-fastconfig-phi2.mir (diff)
Commit 162131257ffb1a421fd8622426331ee9093f1750 by zixuan.wu
[CSKY] Fix the compiling error about missing Log2 function with Log2_64
The file was modifiedllvm/lib/Target/CSKY/Disassembler/CSKYDisassembler.cpp (diff)
Commit 8d7f2701860ee587057770652a58e55eb7a001b9 by uday
[MLIR] NFC. Introduce mlir::hasEffect and refactor usages dialect util

Introduce mlir::hasEffect and refactor existing usage to use utility.
NFC.

Reviewed By: rriddle, mehdi_amini

Differential Revision: https://reviews.llvm.org/D132117
The file was modifiedmlir/include/mlir/Interfaces/SideEffectInterfaces.h (diff)
The file was modifiedmlir/lib/Dialect/Affine/Transforms/LoopFusion.cpp (diff)
The file was modifiedmlir/lib/Dialect/Transform/IR/TransformInterfaces.cpp (diff)
The file was modifiedmlir/lib/Dialect/MemRef/IR/MemRefDialect.cpp (diff)
The file was modifiedmlir/lib/Interfaces/SideEffectInterfaces.cpp (diff)
Commit 1546df49f5a6d09df78f569e4137ddb365a3e827 by sguelton
[clang][doc] Do not keep a copy of ClangCommandLineReference.rst in tree

This file is auto-generated, it's a bit confusing for the maintainers to have it
in tree while it shouldn't be modified *and* already have a rule to be
generated.

Differential Revision: https://reviews.llvm.org/D133349
The file was removedclang/docs/ClangCommandLineReference.rst
Commit 5fa13212d1c98c18e949a67c1c67af4aa2a0f292 by chenglin.bi
[AArch64] add tests for non-power2 int types; NFC
The file was addedllvm/test/CodeGen/AArch64/arm64-non-pow2-ldst.ll
Commit 4bf84e433d921c8d4d5dd9640662a816df42a531 by pifon
[mlir] Remove `materializeOpFoldResult` functions.

We can use `getValueOrCreateConstantIndexOp` instead.

Differential Revision: https://reviews.llvm.org/D133403
The file was modifiedmlir/lib/Dialect/Linalg/Transforms/Promotion.cpp (diff)
The file was modifiedmlir/lib/Dialect/Linalg/Transforms/ElementwiseOpFusion.cpp (diff)
The file was modifiedmlir/lib/Dialect/Linalg/Utils/Utils.cpp (diff)
The file was modifiedmlir/lib/Dialect/Linalg/Transforms/Tiling.cpp (diff)
The file was modifiedmlir/include/mlir/Dialect/Linalg/Utils/Utils.h (diff)