FailedChanges

Summary

  1. [libc] Add isspace, isprint, isxdigit implementations. (details)
  2. [libc] [obvious] Add ctype functions to linux api. (details)
  3. Bump forgotten version nbr in llvm/docs/conf.py (details)
  4. [clangd] Fix a crash in DefineInline (details)
  5. [InstSimplify] reduce code duplication in simplifyICmpWithMinMax(); NFC (details)
  6. MachO: support `-syslibroot` (details)
  7. [JITLink][AArch64] Improve debug output for addend relocations. (details)
  8. [JITLink][AArch64] Handle addends on PAGE21 / PAGEOFF12 relocations. (details)
  9. Add libFuzzer shared object build output (details)
  10. [ELF] --oformat=binary: use LMA to compute file offsets (details)
  11. [ELF] --icf: don't fold text sections with LSDA (details)
  12. [ELF] Allow sections after a non-SHF_ALLOC section to be covered by PT_LOAD (details)
  13. [mlir] Fix rank bitwidth in UnrankedMemRefType conversion. (details)
Commit 1fdab96130fc86f2635d26b617adf10608b8e63b by gyurgyikcp
[libc] Add isspace, isprint, isxdigit implementations.

Reviewed By: sivachandra

Differential Revision: https://reviews.llvm.org/D85270
The file was addedlibc/src/ctype/isxdigit.cpp
The file was addedlibc/src/ctype/isprint.cpp
The file was addedlibc/src/ctype/isspace.h
The file was modifiedlibc/test/src/ctype/CMakeLists.txt
The file was addedlibc/src/ctype/isprint.h
The file was addedlibc/test/src/ctype/isxdigit_test.cpp
The file was addedlibc/test/src/ctype/isprint_test.cpp
The file was modifiedlibc/spec/stdc.td
The file was addedlibc/test/src/ctype/isspace_test.cpp
The file was modifiedlibc/config/linux/aarch64/entrypoints.txt
The file was modifiedlibc/src/ctype/CMakeLists.txt
The file was addedlibc/src/ctype/isxdigit.h
The file was addedlibc/src/ctype/isspace.cpp
The file was modifiedlibc/config/linux/x86_64/entrypoints.txt
Commit 049f6ad4f69e6b9c5df290d6f9d86c991ed4ecec by noreply
[libc] [obvious] Add ctype functions to linux api.

Adds isspace, isprint, and isxdigit to Linux API to fix failed integration test.
The file was modifiedlibc/config/linux/api.td
Commit 271d9c507c783b3c13629376f3edf66099937938 by hans
Bump forgotten version nbr in llvm/docs/conf.py
The file was modifiedllvm/docs/conf.py
Commit 011732852c2c1ca1015fac1bed831308dc521583 by kadircet
[clangd] Fix a crash in DefineInline

Differential Revision: https://reviews.llvm.org/D85291
The file was modifiedclang-tools-extra/clangd/refactor/tweaks/DefineInline.cpp
The file was modifiedclang-tools-extra/clangd/unittests/TweakTests.cpp
Commit bd2c88b253b06c4957ec4bfef60d41e79f8492aa by spatel
[InstSimplify] reduce code duplication in simplifyICmpWithMinMax(); NFC
The file was modifiedllvm/lib/Analysis/InstructionSimplify.cpp
Commit 0ccda7c2326e1dc4e0d5d601dcc06c4b576acb0e by Saleem Abdulrasool
MachO: support `-syslibroot`

This adds support for the `-syslibroot` option.  This is required to
make the library search order actually function.  With this, it is now
possible to link a test Darwin x86_64 program with lld on Darwin.

Differential Revision: https://reviews.llvm.org/D82252
Reviewed By: Jez Ng
The file was modifiedlld/MachO/Driver.cpp
The file was modifiedlld/test/MachO/search-paths.test
The file was addedlld/test/MachO/syslibroot.test
Commit d561d1bf96354c10ca664c20b5268d156a9a3da3 by Lang Hames
[JITLink][AArch64] Improve debug output for addend relocations.
The file was modifiedllvm/lib/ExecutionEngine/JITLink/MachO_arm64.cpp
Commit 47cfffe893f345285ac9fb9c24b268dfcdc6aa38 by Lang Hames
[JITLink][AArch64] Handle addends on PAGE21 / PAGEOFF12 relocations.
The file was modifiedllvm/lib/ExecutionEngine/JITLink/MachO_arm64.cpp
The file was modifiedllvm/test/ExecutionEngine/JITLink/AArch64/MachO_arm64_relocations.s
Commit 98d91aecb26a51225242332e73ed454c0f6cac5e by mascasa
Add libFuzzer shared object build output

This change adds a CMake rule to produce shared object versions of
libFuzzer (no-main). Like the static library versions, these shared
libraries have a copy of libc++ statically linked in. For i386 we don't
link with libc++ since i386 does not support mixing position-
independent and non-position-independent code in the same library.

Patch By: IanPudney

Reviewed By: morehouse

Differential Revision: https://reviews.llvm.org/D84947
The file was modifiedcompiler-rt/lib/fuzzer/CMakeLists.txt
The file was modifiedllvm/docs/LibFuzzer.rst
Commit acb66b9111ba793509b5468a58107108317b7cf5 by i
[ELF] --oformat=binary: use LMA to compute file offsets

--oformat=binary is rare (used in a few places in FreeBSD, see `stand/i386/mbr/Makefile` `LDFLAGS_BIN`)
The result should be identical to a normal output transformed by `objcopy -O binary`.

The current implementation ignores addresses and lays out sections by
respecting output section alignments. It can fail when an output section
address is specified, e.g. `.rodata ALIGN(16) :` (PR33651).

Fix PR33651 by respecting LMA. The code is similar to
`tools/llvm-objcop/ELF/Object.cpp` BinaryWriter::finalize after D71035 and D79229.
Unforunately for an output section without PT_LOAD, we assume its LMA is equal
to its VMA. So the result is still incorrect when an output section LMA
(`AT(...)`) is specified

Also drop `alignTo(off, config->wordsize)`. GNU ld does not round up the file size.

Differential Revision: https://reviews.llvm.org/D85086
The file was modifiedlld/test/ELF/oformat-binary-ttext.s
The file was modifiedlld/ELF/Writer.cpp
The file was modifiedlld/test/ELF/oformat-binary.s
Commit 21b4f8060ab3b313009cf8995140edd5adbf7a4a by i
[ELF] --icf: don't fold text sections with LSDA

Fix PR36272 and PR46835

A .eh_frame FDE references a text section and (optionally) a LSDA (in
.gcc_except_table).  Even if two text sections have identical content and
relocations (e.g. a() and b()), we cannot fold them if their LSDA are different.

```
void foo();
void a() {
  try { foo(); } catch (int) { }
}
void b() {
  try { foo(); } catch (float) { }
}
```

Scan .eh_frame pieces with LSDA and disallow referenced text sections to be
folded. If two .gcc_except_table have identical semantics (usually identical
content with PC-relative encoding), we will lose folding opportunity.
For ClickHouse (an exception-heavy application), this can reduce --icf=all efficiency
from 9% to 5%. There may be some percentage we can reclaim without affecting
correctness, if we analyze .eh_frame and .gcc_except_table sections.

gold 2.24 implemented a more complex fix (resolution to
https://sourceware.org/bugzilla/show_bug.cgi?id=21066) which combines the
checksum of .eh_frame CIE/FDE pieces.

Reviewed By: grimar

Differential Revision: https://reviews.llvm.org/D84610
The file was modifiedlld/ELF/EhFrame.h
The file was modifiedlld/ELF/InputSection.h
The file was addedlld/test/ELF/icf-eh-frame.s
The file was modifiedlld/ELF/ICF.cpp
The file was modifiedlld/ELF/SyntheticSections.cpp
The file was modifiedlld/ELF/SyntheticSections.h
The file was modifiedlld/ELF/EhFrame.cpp
Commit 030ddc0a0bb9e2b25319eb681d520a9cee32b761 by i
[ELF] Allow sections after a non-SHF_ALLOC section to be covered by PT_LOAD

GNU ld allows sections after a non-SHF_ALLOC section to be covered by PT_LOAD
(PR37607) and assigns addresses to non-SHF_ALLOC output sections (similar to
SHF_ALLOC NOBITS sections. The location counter is not advanced).

This patch tries to fix PR37607 (remove a special case in
`Writer<ELFT>::createPhdrs`). To make the created PT_LOAD meaningful, we cannot
reset dot to 0 for a middle non-SHF_ALLOC output section. This results in
removal of two special cases in LinkerScript::assignOffsets. Non-SHF_ALLOC
non-orphan sections can have non-zero addresses like in GNU ld.

The zero address rule for non-SHF_ALLOC sections is weakened to apply to orphan
only. This results in a special case in createSection and findOrphanPos, respectively.

Reviewed By: jhenderson

Differential Revision: https://reviews.llvm.org/D85100
The file was modifiedlld/ELF/Writer.cpp
The file was modifiedlld/test/ELF/linkerscript/sections.s
The file was modifiedlld/test/ELF/linkerscript/compress-debug-sections-custom.s
The file was modifiedlld/test/ELF/linkerscript/symbols-non-alloc.test
The file was modifiedlld/ELF/LinkerScript.cpp
Commit bc7456fd8a11e3b477060af85b00c42ca728ad7f by pifon
[mlir] Fix rank bitwidth in UnrankedMemRefType conversion.

Differential Revision: https://reviews.llvm.org/D85300
The file was modifiedmlir/test/Conversion/StandardToLLVM/convert-to-llvmir.mlir
The file was modifiedmlir/lib/Conversion/StandardToLLVM/StandardToLLVM.cpp