SuccessChanges

Summary

  1. Updated tags and removed redundant configure args for llvm-clang-x86_64-expensive-checks-win. (details)
Commit 9dd7fae7a9e882e03a7e92f6d887c718f63f8a18 by gkistanova
Updated tags and removed redundant configure args for llvm-clang-x86_64-expensive-checks-win.
The file was modifiedbuildbot/osuosl/master/config/builders.py (diff)

Summary

  1. [profile] Add __attribute__((used)) to zero size dummy sections (details)
  2. [RISCV] Guard LowerINSERT_VECTOR_ELT against fixed vectors. (details)
  3. [X86] Add AVX2/SSE2 checks for AMX config buffer zeroing. NFC (details)
  4. [Driver] Honor "-gdwarf-N" at any position for assembler sources (details)
  5. [Flang] Fix compilation on MinGW-w64 (details)
  6. [GWP-ASan] Change sys/cdefs.h to features.h (details)
  7. [X86] Zero AMX config buffer for non AVX512 cases. (details)
Commit 58ecfccd0dd3a064a11b1f2eb164cbff7d60faf5 by i
[profile] Add __attribute__((used)) to zero size dummy sections

D14468 added these dummy sections. This patch adds `__attribute__((used))` so
that when compiled by GCC>=11 or (expected, D96838) Clang>=13 on some ELF platforms,
these sections will get SHF_GNU_RETAIN to make sure they will not be discarded
by ld --gc-sections.

We are trying to get rid of LLD's "__start_/__stop_ references retain C identifier name sections" rule.
If LLD drops the rule in the future (we will retain compatibility for `__llvm_prf_*` for a while),
`__llvm_prf_*` will need to have the SHF_GNU_RETAIN flag, otherwise:

```
// __llvm_prf_cnts/__llvm_prf_data usually exist, but {names,vnds} may not exist.
// Such diagnostics will happen with {cnts,data} as well if no input object file is instrumented.
% clang++ -fprofile-generate a.cc -fuse-ld=lld -Wl,--gc-sections
ld.lld: error: undefined hidden symbol: __start___llvm_prf_names
>>> referenced by InstrProfilingPlatformLinux.c
>>>               InstrProfilingPlatformLinux.c.o:(__llvm_profile_begin_names) in archive /tmp/RelA/lib/clang/13.0.0/lib/linux/libclang_rt.profile-x86_64.a
...
```

Differential Revision: https://reviews.llvm.org/D96902
The file was modifiedcompiler-rt/lib/profile/InstrProfilingPlatformLinux.c
The file was modifiedcompiler-rt/lib/profile/InstrProfilingPort.h
Commit 016eca8f90a9be1ae797a59c40c7161499b02909 by craig.topper
[RISCV] Guard LowerINSERT_VECTOR_ELT against fixed vectors.

The type legalizer can call this code based on the scalar type so
we need to verify the vector type is a scalable vector.

I think due to how type legalization visits nodes, the vector type
will have already been legalized so we don't have an issue with
using MVT here like we did for EXTRACT_VECTOR_ELT.
I've added a test just in case.
The file was modifiedllvm/lib/Target/RISCV/RISCVISelLowering.cpp
The file was addedllvm/test/CodeGen/RISCV/rvv/fixed-vectors-insert.ll
Commit 9dcfb95ba222e554755e4c83186f43fdbea72a4d by pengfei.wang
[X86] Add AVX2/SSE2 checks for AMX config buffer zeroing. NFC
The file was modifiedllvm/test/CodeGen/X86/AMX/amx-config.ll
Commit a0c9ec1f5e70e8f15da170667b2a8e63d024f3ab by ikudrin
[Driver] Honor "-gdwarf-N" at any position for assembler sources

This fixes an issue when "-gdwarf-N" switch was ignored if it was given
before another debug option.

Differential Revision: https://reviews.llvm.org/D96865
The file was modifiedclang/lib/Driver/ToolChains/Clang.cpp
The file was modifiedclang/test/Driver/debug-options-as.c
Commit 8cfe9c02a0430e604bfec520caaea0e5d61ed399 by llvm-project
[Flang] Fix compilation on MinGW-w64

Reviewed By: Meinersbur

Differential Revision: https://reviews.llvm.org/D94707
The file was modifiedflang/runtime/file.cpp
The file was modifiedflang/tools/flang-driver/driver.cpp
Commit da59c2e4dc1c7b502cc2098247b2ee38ac297e0c by i
[GWP-ASan] Change sys/cdefs.h to features.h

sys/cdefs.h is a glibc internal header which is not supposed to be included by applications.
(Some libc implementations provide this file for compatibility.)
Android features.h includes sys/cdefs.h, so we can include features.h instead.

This change makes `ninja gwp_asan` build on musl.
The file was modifiedcompiler-rt/lib/gwp_asan/platform_specific/utilities_posix.cpp
Commit e9c11c1934f90725673f8a808fe6fcc390224a87 by pengfei.wang
[X86] Zero AMX config buffer for non AVX512 cases.

Zero AMX config buffer for non AVX512 cases.

Differential Revision: https://reviews.llvm.org/D96927
The file was modifiedllvm/lib/Target/X86/X86PreTileConfig.cpp
The file was modifiedllvm/test/CodeGen/X86/AMX/amx-config.ll