[all-commits] [llvm/llvm-project] 487cfb: [Clang] Implement constexpr support for `__builtin...

Florian Mayer via All-commits all-commits at lists.llvm.org
Thu Mar 7 16:46:14 PST 2024


  Branch: refs/heads/users/fmayer/spr/nfc-hwasan-factor-out-selective-instrumentation-logic
  Home:   https://github.com/llvm/llvm-project
  Commit: 487cfbe494413e12123b55dead5ef8742ef49fb2
      https://github.com/llvm/llvm-project/commit/487cfbe494413e12123b55dead5ef8742ef49fb2
  Author: OverMighty <its.overmighty at gmail.com>
  Date:   2024-03-08 (Fri, 08 Mar 2024)

  Changed paths:
    M clang/docs/LanguageExtensions.rst
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/Basic/Builtins.td
    M clang/lib/AST/ExprConstant.cpp
    M clang/test/Sema/constant-builtins-2.c

  Log Message:
  -----------
  [Clang] Implement constexpr support for `__builtin_popcountg` (#84318)


  Commit: e932fe880b69a6cd13b4f29678c7f143540f1999
      https://github.com/llvm/llvm-project/commit/e932fe880b69a6cd13b4f29678c7f143540f1999
  Author: David CARLIER <devnexen at gmail.com>
  Date:   2024-03-08 (Fri, 08 Mar 2024)

  Changed paths:
    M compiler-rt/lib/fuzzer/FuzzerUtilWindows.cpp

  Log Message:
  -----------
  [compiler-rt][Fuzzer] fix windows typo (#84407)


  Commit: 0d4978f3cf8f917d88c19ec0ba3b1b3ef092cef1
      https://github.com/llvm/llvm-project/commit/0d4978f3cf8f917d88c19ec0ba3b1b3ef092cef1
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2024-03-07 (Thu, 07 Mar 2024)

  Changed paths:
    M llvm/test/CodeGen/RISCV/forced-atomics.ll
    M llvm/test/CodeGen/RISCV/fpclamptosat.ll

  Log Message:
  -----------
  [RISCV] Update some tests I missed in 909ab0e0d1903ad2329ca9fdf248d21330f9437f. NFC


  Commit: fcd2d483251605f1b6cdace0ce5baf5dfd31b880
      https://github.com/llvm/llvm-project/commit/fcd2d483251605f1b6cdace0ce5baf5dfd31b880
  Author: vadikp-intel <vadim.paretsky at intel.com>
  Date:   2024-03-07 (Thu, 07 Mar 2024)

  Changed paths:
    M openmp/runtime/src/kmp_collapse.cpp
    M openmp/runtime/src/kmp_collapse.h
    A openmp/runtime/test/worksharing/for/omp_for_collapse_LowerTriangularLess.c
    A openmp/runtime/test/worksharing/for/omp_for_collapse_LowerTriangularLessEqual.c
    A openmp/runtime/test/worksharing/for/omp_for_collapse_UpperTriangular.c

  Log Message:
  -----------
  [OpenMP] runtime support for efficient partitioning of collapsed triangular loops (#83939)

This PR adds OMP runtime support for more efficient partitioning of
certain types of collapsed loops that can be used by compilers that
support loop collapsing (i.e. MSVC) to achieve more optimal thread load
balancing.

In particular, this PR addresses double nested upper and lower isosceles
triangular loops of the following types

1. lower triangular 'less_than'
   for (int i=0; i<N; i++)
     for (int j=0; j<i; j++)
2. lower triangular 'less_than_equal'
   for (int i=0; i<N; j++)
     for (int j=0; j<=i; j++)
3. upper triangular
   for (int i=0; i<N; i++)
     for (int j=i; j<N; j++)

Includes tests for the three supported loop types.

---------

Co-authored-by: Vadim Paretsky <b-vadipa at microsoft.com>


  Commit: 0cd7942c7f7a6f0c8a749c5f0d6d758e0a6fd9d9
      https://github.com/llvm/llvm-project/commit/0cd7942c7f7a6f0c8a749c5f0d6d758e0a6fd9d9
  Author: Igor Kudrin <ikudrin at accesssoftek.com>
  Date:   2024-03-08 (Fri, 08 Mar 2024)

  Changed paths:
    M llvm/lib/DebugInfo/DWARF/DWARFDebugFrame.cpp
    M llvm/test/CodeGen/AArch64/sign-return-address-cfi-negate-ra-state.ll

  Log Message:
  -----------
  [llvm-dwarfdump] Fix parsing DW_CFA_AARCH64_negate_ra_state (#84128)

The saved state of the AARCH64_DWARF_PAUTH_RA_STATE register was not
updated, so `llvm-dwarfdump` continued to dump it as `reg34=1` even if
the correct value is `0`:

```
> llvm-dwarfdump -v test.o
...
0000002c 00000024 00000030 FDE cie=00000000 pc=00000030...00000064
  Format:       DWARF32
  DW_CFA_advance_loc: 4
  DW_CFA_AARCH64_negate_ra_state:
  DW_CFA_advance_loc: 4
  DW_CFA_def_cfa_offset: +16
  DW_CFA_offset: W30 -16
  DW_CFA_remember_state:
  DW_CFA_advance_loc: 16
  DW_CFA_def_cfa_offset: +0
  DW_CFA_advance_loc: 4
  DW_CFA_AARCH64_negate_ra_state:
  DW_CFA_restore: W30
  DW_CFA_advance_loc: 4
  DW_CFA_restore_state:
  DW_CFA_advance_loc: 12
  DW_CFA_def_cfa_offset: +0
  DW_CFA_advance_loc: 4
  DW_CFA_AARCH64_negate_ra_state:
  DW_CFA_restore: W30
  DW_CFA_nop:

  0x30: CFA=WSP
  0x34: CFA=WSP: reg34=1
  0x38: CFA=WSP+16: W30=[CFA-16], reg34=1
  0x48: CFA=WSP: W30=[CFA-16], reg34=1
  0x4c: CFA=WSP: reg34=1               <--- should be '=0'
  0x50: CFA=WSP+16: W30=[CFA-16], reg34=1
  0x5c: CFA=WSP: W30=[CFA-16], reg34=1
  0x60: CFA=WSP: reg34=1               <--- should be '=0'
```


  Commit: fe8476472467acd15a4d3771313e5532d1eb032f
      https://github.com/llvm/llvm-project/commit/fe8476472467acd15a4d3771313e5532d1eb032f
  Author: Igor Kudrin <ikudrin at accesssoftek.com>
  Date:   2024-03-08 (Fri, 08 Mar 2024)

  Changed paths:
    M llvm/include/llvm/DebugInfo/DWARF/DWARFDebugFrame.h
    M llvm/lib/DebugInfo/DWARF/DWARFDebugFrame.cpp
    M llvm/test/DebugInfo/dwarfdump-debug-frame-simple.test
    M llvm/test/tools/llvm-readobj/ELF/unwind.test
    M llvm/tools/llvm-readobj/DwarfCFIEHPrinter.h

  Log Message:
  -----------
  [DWARF] Dump an updated location for DW_CFA_advance_loc* (#84274)

When dumping FDEs, `readelf` prints new location values after
`DW_CFA_advance_loc(*)` instructions, which looks quite convenient:

```
> readelf -wf test.o
...
... FDE ... pc=0000000000000030..0000000000000064
  DW_CFA_advance_loc: 4 to 0000000000000034
  ...
  DW_CFA_advance_loc: 4 to 0000000000000038
...
```

This patch makes `llvm-dwarfdump` and `llvm-readobj` do the same.


  Commit: 99512b1728bcf47dbf28f8a4cf5d296109fb0630
      https://github.com/llvm/llvm-project/commit/99512b1728bcf47dbf28f8a4cf5d296109fb0630
  Author: Fangrui Song <i at maskray.me>
  Date:   2024-03-07 (Thu, 07 Mar 2024)

  Changed paths:
    M llvm/test/Object/Inputs/small.ll
    M llvm/test/Object/Inputs/trivial.ll
    M llvm/test/Object/X86/irsymtab-bad-alias.ll
    M llvm/test/Object/X86/nm-ir.ll
    M llvm/test/Object/dllimport-globalref.ll
    M llvm/test/Object/dllimport.ll
    M llvm/test/Object/mangle-ir.ll
    M llvm/test/Object/objc-swift-mixed-imageinfo-macho.ll

  Log Message:
  -----------
  [Object] Convert tests to opaque pointers (NFC)

Link: https://discourse.llvm.org/t/enabling-opaque-pointers-by-default/61322


  Commit: 30f098ef9dfb121bccaef6975b13788b6f940e47
      https://github.com/llvm/llvm-project/commit/30f098ef9dfb121bccaef6975b13788b6f940e47
  Author: Fangrui Song <i at maskray.me>
  Date:   2024-03-07 (Thu, 07 Mar 2024)

  Changed paths:
    M llvm/test/Instrumentation/AddressSanitizer/aarch64be.ll
    M llvm/test/Instrumentation/AddressSanitizer/program-addrspace.ll
    M llvm/test/Instrumentation/InstrProfiling/before-value-profile-lowering.ll
    M llvm/test/Instrumentation/InstrProfiling/timestamp-coverage.ll
    M llvm/test/Instrumentation/InstrProfiling/timestamp.ll

  Log Message:
  -----------
  [Instrumentation] Convert tests to opaque pointers (NFC)

Link: https://discourse.llvm.org/t/enabling-opaque-pointers-by-default/61322


  Commit: 9d3bf9b639eafeded82c6be295031262735d1dac
      https://github.com/llvm/llvm-project/commit/9d3bf9b639eafeded82c6be295031262735d1dac
  Author: Florian Mayer <fmayer at google.com>
  Date:   2024-03-07 (Thu, 07 Mar 2024)

  Changed paths:
    M llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp

  Log Message:
  -----------
  [NFC] [hwasan] consistent naming for cl::opt


  Commit: 9fce3a64d68e75b8d95c2321fcbe50eef4ee3f0e
      https://github.com/llvm/llvm-project/commit/9fce3a64d68e75b8d95c2321fcbe50eef4ee3f0e
  Author: Florian Mayer <fmayer at google.com>
  Date:   2024-03-07 (Thu, 07 Mar 2024)

  Changed paths:
    M clang/docs/LanguageExtensions.rst
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/Basic/Builtins.td
    M clang/lib/AST/ExprConstant.cpp
    M clang/test/Sema/constant-builtins-2.c
    M compiler-rt/lib/fuzzer/FuzzerUtilWindows.cpp
    M llvm/include/llvm/DebugInfo/DWARF/DWARFDebugFrame.h
    M llvm/lib/DebugInfo/DWARF/DWARFDebugFrame.cpp
    M llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
    M llvm/test/CodeGen/AArch64/sign-return-address-cfi-negate-ra-state.ll
    M llvm/test/CodeGen/RISCV/forced-atomics.ll
    M llvm/test/CodeGen/RISCV/fpclamptosat.ll
    M llvm/test/DebugInfo/dwarfdump-debug-frame-simple.test
    M llvm/test/Instrumentation/AddressSanitizer/aarch64be.ll
    M llvm/test/Instrumentation/AddressSanitizer/program-addrspace.ll
    M llvm/test/Instrumentation/InstrProfiling/before-value-profile-lowering.ll
    M llvm/test/Instrumentation/InstrProfiling/timestamp-coverage.ll
    M llvm/test/Instrumentation/InstrProfiling/timestamp.ll
    M llvm/test/Object/Inputs/small.ll
    M llvm/test/Object/Inputs/trivial.ll
    M llvm/test/Object/X86/irsymtab-bad-alias.ll
    M llvm/test/Object/X86/nm-ir.ll
    M llvm/test/Object/dllimport-globalref.ll
    M llvm/test/Object/dllimport.ll
    M llvm/test/Object/mangle-ir.ll
    M llvm/test/Object/objc-swift-mixed-imageinfo-macho.ll
    M llvm/test/tools/llvm-readobj/ELF/unwind.test
    M llvm/tools/llvm-readobj/DwarfCFIEHPrinter.h
    M openmp/runtime/src/kmp_collapse.cpp
    M openmp/runtime/src/kmp_collapse.h
    A openmp/runtime/test/worksharing/for/omp_for_collapse_LowerTriangularLess.c
    A openmp/runtime/test/worksharing/for/omp_for_collapse_LowerTriangularLessEqual.c
    A openmp/runtime/test/worksharing/for/omp_for_collapse_UpperTriangular.c

  Log Message:
  -----------
  rebase

Created using spr 1.3.4


Compare: https://github.com/llvm/llvm-project/compare/082293c00f6d...9fce3a64d68e

To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list