Changes

Summary

  1. [flang][runtime] Fix bug with extra leading zero in octal output (details)
  2. [mlir][sparse] Adding IsSparseTensorPred and updating ops to use it (details)
  3. [flang][runtime] Allow extra character for E0.0 output editing (details)
  4. [test] Modify test to verify D126396 (Clean "./" from __FILE__ expansion) (details)
  5. [clang][test] Mark test arm-float-abi-lto.c unsupported on AIX (details)
  6. [flang][runtime] INQUIRE(FILE="...",SIZE=nbytes) (details)
  7. [RISCV] Support LUI+ADDIW in doPeepholeLoadStoreADDI. (details)
  8. [flang][runtime] OPEN write-only files (details)
  9. [flang][runtime] Signal format error when input field width is zero (details)
  10. [pseudo] Fix leaks after D126731 (details)
  11. [flang] Correct folding of CSHIFT and EOSHIFT for DIM>1 (details)
  12. [lld][WebAssembly] Retain data segments referenced via __start/__stop (details)
  13. [libc++][ranges][NFC] Mark range algorithms that are in progress. (details)
Commit 604016dbe4790da5ca4f789cad46b695cb137b6f by pklausler
[flang][runtime] Fix bug with extra leading zero in octal output

Octal (O) output editing often emits an extra leading 0 digit
due to the total digit count being off by one since word sizes
aren't multiples of three bits.

Differential Revision: https://reviews.llvm.org/D127012
The file was modifiedflang/runtime/edit-output.cpp
Commit 3cf03f1c562f25e76309ab904ed830dfaebf74dc by 2998727+wrengr
[mlir][sparse] Adding IsSparseTensorPred and updating ops to use it

Reviewed By: aartbik

Differential Revision: https://reviews.llvm.org/D126994
The file was modifiedmlir/test/Dialect/SparseTensor/invalid.mlir
The file was modifiedmlir/lib/Dialect/SparseTensor/IR/SparseTensorDialect.cpp
The file was modifiedmlir/include/mlir/Dialect/SparseTensor/IR/SparseTensorAttrDefs.td
The file was modifiedmlir/include/mlir/Dialect/SparseTensor/IR/SparseTensorOps.td
Commit da63fee0d091c43d4186888620bf8d5968e95228 by pklausler
[flang][runtime] Allow extra character for E0.0 output editing

When the digit count ('d') is zero in E0 editing, allow for one more
output character; otherwise, any - or + sign in the output causes
an output field overflow.

Differential Revision: https://reviews.llvm.org/D127013
The file was modifiedflang/unittests/Runtime/NumericalFormatTest.cpp
The file was modifiedflang/runtime/edit-output.cpp
Commit 490990bb1f6578276ae7675f09e26e6c6bd3f59a by i
[test] Modify test to verify D126396 (Clean "./" from __FILE__ expansion)

Reviewed By: MaskRay

Differential Revision: https://reviews.llvm.org/D127009
The file was modifiedclang/test/Preprocessor/file_test.c
Commit c3c75d805c2174388417080f762230961b3433d6 by jakeegan10
[clang][test] Mark test arm-float-abi-lto.c unsupported on AIX

This test is failing after the introduction of opaque pointers (https://reviews.llvm.org/D125847). The test is flaky and fails from segmentation fault, but it's unclear why. So, mark this test unsupported while it's investigated.
The file was modifiedclang/test/Driver/arm-float-abi-lto.c
Commit 9878facfd01cdfaab171b26850e609e78ba68b0e by pklausler
[flang][runtime] INQUIRE(FILE="...",SIZE=nbytes)

Implement inquire-by-file SIZE= specifier.

Differential Revision: https://reviews.llvm.org/D127014
The file was modifiedflang/runtime/file.h
The file was modifiedflang/runtime/file.cpp
The file was modifiedflang/runtime/io-stmt.cpp
Commit cc3bd4353358858ae3146edc63c7e99242a19516 by craig.topper
[RISCV] Support LUI+ADDIW in doPeepholeLoadStoreADDI.

This fixes an inconsistency between RV32 and RV64. Still considering
trying to do this peephole during isel, but wanted to fix the
inconsistency first.

Reviewed By: reames

Differential Revision: https://reviews.llvm.org/D126986
The file was modifiedllvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
The file was modifiedllvm/test/CodeGen/RISCV/fold-addi-loadstore.ll
Commit e5a4f730dafd9a6dc2371d6e414540fa0fd15460 by pklausler
[flang][runtime] OPEN write-only files

If a file being opened with no ACTION= is write-only then cope with
it rather than defaulting prematurely to treating it as read-only.

Differential Revision: https://reviews.llvm.org/D127015
The file was modifiedflang/runtime/file.cpp
Commit aa77cf90aab8f47f748ae9594321c30095fbf9f5 by pklausler
[flang][runtime] Signal format error when input field width is zero

A data edit descriptor for input may not have a zero field width.

Differential Revision: https://reviews.llvm.org/D127017
The file was modifiedflang/runtime/format-implementation.h
Commit 47ec8b557416682a10970d07f536f9cd303d2c0c by i
[pseudo] Fix leaks after D126731

Array Operator new Cookies help lsan find allocations, while std::array
can't.
The file was modifiedclang-tools-extra/pseudo/lib/grammar/Grammar.cpp
Commit e0adee8481623613933551e00adcd9ddea18d889 by pklausler
[flang] Correct folding of CSHIFT and EOSHIFT for DIM>1

The algorithm was wrong for higher dimensions, and so were
the expected test results.  Rework.

Differential Revision: https://reviews.llvm.org/D127018
The file was modifiedflang/lib/Evaluate/fold-implementation.h
The file was modifiedflang/test/Evaluate/folding27.f90
The file was modifiedflang/test/Evaluate/folding23.f90
Commit dcf3368e33c3a01bd21b692d3be5dc1ecee587f4 by kateinoigakukun
[lld][WebAssembly] Retain data segments referenced via __start/__stop

As well as ELF linker does, retain all data segments named X referenced
through `__start_X` or `__stop_X`.

For example, `FOO_MD` should not be stripped in the below case, but it's currently mis-stripped

```llvm
@FOO_MD  = global [4 x i8] c"bar\00", section "foo_md", align 1
@__start_foo_md = external constant i8*
@__stop_foo_md = external constant i8*
@llvm.used = appending global [1 x i8*] [i8* bitcast (i32 ()* @foo_md_size to i8*)], section "llvm.metadata"

define i32 @foo_md_size()  {
entry:
  ret i32 sub (
    i32 ptrtoint (i8** @__stop_foo_md to i32),
    i32 ptrtoint (i8** @__start_foo_md to i32)
  )
}
```

This fixes https://github.com/llvm/llvm-project/issues/55839

Reviewed By: sbc100

Differential Revision: https://reviews.llvm.org/D126950
The file was modifiedlld/wasm/MarkLive.cpp
The file was addedlld/test/wasm/gc-sections-startstop.s
Commit faf43ad7aec2dc530ee0ef162f1274628646954d by varconst
[libc++][ranges][NFC] Mark range algorithms that are in progress.
The file was modifiedlibcxx/docs/Status/RangesAlgorithms.csv