[all-commits] [llvm/llvm-project] c8e65e: [clang] CTAD: Fix require-clause is not transforme...

Fangrui Song via All-commits all-commits at lists.llvm.org
Fri Apr 19 16:34:57 PDT 2024


  Branch: refs/heads/users/MaskRay/spr/irsymtab-record-_global_offset_table_-for-elf-x86
  Home:   https://github.com/llvm/llvm-project
  Commit: c8e65e193d542464421ad4f9a9965d45b302ac0c
      https://github.com/llvm/llvm-project/commit/c8e65e193d542464421ad4f9a9965d45b302ac0c
  Author: Haojian Wu <hokein.wu at gmail.com>
  Date:   2024-04-19 (Fri, 19 Apr 2024)

  Changed paths:
    M clang/lib/Sema/SemaTemplate.cpp
    M clang/lib/Sema/SemaTemplateInstantiate.cpp
    M clang/test/SemaCXX/cxx20-ctad-type-alias.cpp
    M clang/test/SemaTemplate/deduction-guide.cpp

  Log Message:
  -----------
  [clang] CTAD: Fix require-clause is not transformed. (#89378)

Fixes https://github.com/llvm/llvm-project/issues/89013

When building the deduction guide, we use the
TemplateArgsForBuildingFPrime to transform the require-clause from the
underlying class deduction guide. However, we do this at the wrong place
where not all elements of TemplateArgsForBuildingFPrime are initialized.
The fix involves rearranging the transformRequireClause call to the
correct location.

As part of the fix, we extend the TemplateInstantiator to support more
types in the template-rewrite mode. Otherwise, we will encounter an
assertion error when attempting to rewrite the template type parameter
type like D with a complex type like Derived<U>.


  Commit: 08163cd9d82690e808c28515523b5fd0923d7b38
      https://github.com/llvm/llvm-project/commit/08163cd9d82690e808c28515523b5fd0923d7b38
  Author: Adrian Prantl <adrian-prantl at users.noreply.github.com>
  Date:   2024-04-19 (Fri, 19 Apr 2024)

  Changed paths:
    M lldb/source/Expression/IRExecutionUnit.cpp
    M lldb/test/API/lang/cpp/constructors/TestCppConstructors.py

  Log Message:
  -----------
  [lldb] Provide a better error message for missing symbols (#89433)

This adds a hint to the missing symbols error message to make it easier
to understand what this means to users.


  Commit: d634b233640dc38cf5f673a9cfcd1fe55124430a
      https://github.com/llvm/llvm-project/commit/d634b233640dc38cf5f673a9cfcd1fe55124430a
  Author: Samira Bazuzi <bazuzi at google.com>
  Date:   2024-04-19 (Fri, 19 Apr 2024)

  Changed paths:
    M clang/include/clang/Analysis/FlowSensitive/ASTOps.h
    M clang/lib/Analysis/FlowSensitive/ASTOps.cpp

  Log Message:
  -----------
  [clang][dataflow] Expose getReferencedDecls for a Stmt. (#89444)


  Commit: 5232cec8f947ed8bff4ca57f990954228d58e66d
      https://github.com/llvm/llvm-project/commit/5232cec8f947ed8bff4ca57f990954228d58e66d
  Author: Nicolas van Kempen <nvankemp at gmail.com>
  Date:   2024-04-19 (Fri, 19 Apr 2024)

  Changed paths:
    M clang-tools-extra/clang-doc/Representation.cpp
    M lldb/unittests/Host/FileSystemTest.cpp
    M llvm/unittests/Support/VirtualFileSystemTest.cpp

  Log Message:
  -----------
  Apply modernize-use-starts-ends-with on llvm-project (#89140)

Run `modernize-use-starts-ends-with` on llvm-project. Two instances are
flagged, minor readability improvements, extremely minor performance
improvements.

```
python3 clang-tools-extra/clang-tidy/tool/run-clang-tidy.py \
    -clang-tidy-binary="build/bin/clang-tidy" \
    -clang-apply-replacements-binary="build/bin/clang-apply-replacements" \
    -checks="-*,modernize-use-starts-ends-with" \
    -header-filter=".*" \
    -fix -format
```

I am working on some additions to this check, but they don't seem to
flag any additional cases anyway.


  Commit: 45432eec0ae6a7f7452196eb099814d1a7dc2c0f
      https://github.com/llvm/llvm-project/commit/45432eec0ae6a7f7452196eb099814d1a7dc2c0f
  Author: Eli Friedman <efriedma at quicinc.com>
  Date:   2024-04-19 (Fri, 19 Apr 2024)

  Changed paths:
    M clang/lib/Driver/ToolChains/Clang.cpp
    M clang/test/Driver/cl-options.c

  Log Message:
  -----------
  [ARM64EC] Add softintrin.lib as an implicit dependency to object files. (#89171)

This copies MSVC behavior, and avoids weird link errors in certain
cases.


  Commit: 5bcf31ebfad8b32aed20dd47be6238cc19710e63
      https://github.com/llvm/llvm-project/commit/5bcf31ebfad8b32aed20dd47be6238cc19710e63
  Author: Bill Wendling <5993918+bwendling at users.noreply.github.com>
  Date:   2024-04-19 (Fri, 19 Apr 2024)

  Changed paths:
    M clang/lib/CodeGen/CGBuiltin.cpp

  Log Message:
  -----------
  [Clang] Loop over FieldDecls instead of all Decls (#89453)

Only FieldDecls are of importance here. A struct defined within another
struct has the same semantics as if it were defined outside of the
struct. So there's no need to look into RecordDecls that aren't a field.


  Commit: 2a632d3d9f5c70db38c617b0816deb37ef722a7b
      https://github.com/llvm/llvm-project/commit/2a632d3d9f5c70db38c617b0816deb37ef722a7b
  Author: Valentin Clement (バレンタイン クレメン) <clementval at gmail.com>
  Date:   2024-04-19 (Fri, 19 Apr 2024)

  Changed paths:
    M flang/include/flang/Lower/Allocatable.h
    M flang/lib/Lower/Allocatable.cpp
    M flang/lib/Lower/ConvertVariable.cpp
    M flang/test/Lower/CUDA/cuda-allocatable.cuf

  Log Message:
  -----------
  [flang][cuda] Use fir.cuda_deallocate for automatic deallocation (#89450)

Automatic deallocation of allocatable that are cuda device variable must
use the fir.cuda_deallocate operation. This patch update the automatic
deallocation code generation to use this operation when the variable is
a cuda variable.


  Commit: 7c3dfb29dc4b5345da6a7fb25f92bf8d2919bce9
      https://github.com/llvm/llvm-project/commit/7c3dfb29dc4b5345da6a7fb25f92bf8d2919bce9
  Author: Maksim Levental <maksim.levental at gmail.com>
  Date:   2024-04-19 (Fri, 19 Apr 2024)

  Changed paths:
    M mlir/python/mlir/dialects/memref.py

  Log Message:
  -----------
  [mlir][python] fix memref._is_constant_int_like (#89447)


  Commit: 16e3464852efe3001060ff7feb3261dd397bfe84
      https://github.com/llvm/llvm-project/commit/16e3464852efe3001060ff7feb3261dd397bfe84
  Author: Valentin Clement (バレンタイン クレメン) <clementval at gmail.com>
  Date:   2024-04-19 (Fri, 19 Apr 2024)

  Changed paths:
    M flang/lib/Semantics/check-allocate.cpp
    M flang/test/Semantics/cuf07.cuf

  Log Message:
  -----------
  [flang][cuda] Enforce PINNED attribute when ALLOCATE with PINNED option (#89455)

When the PINNED option is specified on an ALLOCATE statement, the object
must have the PINNED attribute.


  Commit: 4523a267829c807f3fc8fab8e5e9613985a51565
      https://github.com/llvm/llvm-project/commit/4523a267829c807f3fc8fab8e5e9613985a51565
  Author: Valentin Clement (バレンタイン クレメン) <clementval at gmail.com>
  Date:   2024-04-19 (Fri, 19 Apr 2024)

  Changed paths:
    M flang/lib/Semantics/check-allocate.cpp
    M flang/test/Lower/CUDA/cuda-allocatable.cuf
    M flang/test/Parser/cuf-sanity-common
    M flang/test/Parser/cuf-sanity-tree.CUF
    M flang/test/Parser/cuf-sanity-unparse.CUF
    M flang/test/Semantics/cuf07.cuf

  Log Message:
  -----------
  [flang][cuda] Enforce DEVICE attribute when ALLOCATE with STREAM option (#89459)

When the STREAM option is specified on an ALLOCATE statement, the object
must have the DEVICE attribute.


  Commit: d9169ffaf7c01691644537d3443240748b107359
      https://github.com/llvm/llvm-project/commit/d9169ffaf7c01691644537d3443240748b107359
  Author: Fangrui Song <i at maskray.me>
  Date:   2024-04-19 (Fri, 19 Apr 2024)

  Changed paths:
    M bolt/test/AArch64/constant_island_pie_update.s

  Log Message:
  -----------
  [BOLT,test] Update AArch64/constant_island_pie_update.s after llvm-readelf -r RELR change


  Commit: 11a919fd3c3bf73ae3fab96240cd68bc1c8a637f
      https://github.com/llvm/llvm-project/commit/11a919fd3c3bf73ae3fab96240cd68bc1c8a637f
  Author: Fangrui Song <i at maskray.me>
  Date:   2024-04-19 (Fri, 19 Apr 2024)

  Changed paths:
    M bolt/test/AArch64/constant_island_pie_update.s
    M clang-tools-extra/clang-doc/Representation.cpp
    M clang/include/clang/Analysis/FlowSensitive/ASTOps.h
    M clang/lib/Analysis/FlowSensitive/ASTOps.cpp
    M clang/lib/CodeGen/CGBuiltin.cpp
    M clang/lib/Driver/ToolChains/Clang.cpp
    M clang/lib/Sema/SemaTemplate.cpp
    M clang/lib/Sema/SemaTemplateInstantiate.cpp
    M clang/test/Driver/cl-options.c
    M clang/test/SemaCXX/cxx20-ctad-type-alias.cpp
    M clang/test/SemaTemplate/deduction-guide.cpp
    M flang/include/flang/Lower/Allocatable.h
    M flang/lib/Lower/Allocatable.cpp
    M flang/lib/Lower/ConvertVariable.cpp
    M flang/lib/Semantics/check-allocate.cpp
    M flang/test/Lower/CUDA/cuda-allocatable.cuf
    M flang/test/Parser/cuf-sanity-common
    M flang/test/Parser/cuf-sanity-tree.CUF
    M flang/test/Parser/cuf-sanity-unparse.CUF
    M flang/test/Semantics/cuf07.cuf
    M lld/test/ELF/lto/i386-global-offset-table.ll
    M lld/test/ELF/lto/x86-64-global-offset-table.ll
    M lldb/source/Expression/IRExecutionUnit.cpp
    M lldb/test/API/lang/cpp/constructors/TestCppConstructors.py
    M lldb/unittests/Host/FileSystemTest.cpp
    M llvm/unittests/Support/VirtualFileSystemTest.cpp
    M mlir/python/mlir/dialects/memref.py

  Log Message:
  -----------
  add comments to tests

Created using spr 1.3.5-bogner


Compare: https://github.com/llvm/llvm-project/compare/6d4cbc5f98fc...11a919fd3c3b

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