Changes

Summary

  1. [C++20] [Module] fix bug 47716 and implement [module.interface]/p6 (details)
  2. [RISCV][NFC] Remove tailing whitespaces in RISCVInstrInfoVSDPatterns.td and RISCVInstrInfoVVLPatterns.td (details)
  3. [NFC] [Coroutines] Rename tests in coro-align (details)
  4. Add modernize-use-default-member-init.UseAssignment to .clang-tidy (details)
  5. [Vectorize] Remove unused variables (NFC) (details)
  6. [Analysis] Use default member initialization (NFC) (details)
  7. Clang: Change the default DWARF version to 5 (details)
  8. Add missing function implementation from DWARF default change (details)
Commit 3a3af2bbc97e7db045eccb8683e93b9aa7ef562b by yedeng.yd
[C++20] [Module] fix bug 47716 and implement [module.interface]/p6

This fixes bug 47716.

According to [module.interface]p2, it is meaningless to export an entity
which is not in namespace scope.
The reason why the compiler crashes is that the compiler missed
ExportDecl when the compiler traverse the subclass of DeclContext. So
here is the crash.

Also, the patch implements [module.interface]p6 in
Sema::CheckRedeclaration* functions.

Reviewed By: aaron.ballman, urnathan

Differential Revision: https://reviews.llvm.org/D112903
The file was modifiedclang/lib/Sema/SemaTemplate.cpp
The file was modifiedclang/lib/Sema/SemaDecl.cpp
The file was addedclang/test/CXX/module/module.interface/p6.cpp
The file was modifiedclang/include/clang/AST/DeclBase.h
The file was modifiedclang/include/clang/Sema/Sema.h
The file was modifiedclang/lib/Sema/SemaDeclCXX.cpp
The file was modifiedclang/include/clang/Basic/DiagnosticSemaKinds.td
The file was modifiedclang/lib/AST/DeclBase.cpp
The file was addedclang/test/CXX/module/module.interface/p2-2.cpp
Commit 3f24cdec2572741f018457d5f24ef479e1291f1c by jim
[RISCV][NFC] Remove tailing whitespaces in RISCVInstrInfoVSDPatterns.td and RISCVInstrInfoVVLPatterns.td
The file was modifiedllvm/lib/Target/RISCV/RISCVInstrInfoVSDPatterns.td
The file was modifiedllvm/lib/Target/RISCV/RISCVInstrInfoVVLPatterns.td
Commit b574048239bc6fbd9dd356fbaa8bd475fa4b64e6 by yedeng.yd
[NFC] [Coroutines] Rename tests in coro-align

This is required by ychen. See https://reviews.llvm.org/D117542
The file was addedllvm/test/Transforms/Coroutines/coro-align64-02.ll
The file was removedllvm/test/Transforms/Coroutines/coro-align-04.ll
The file was removedllvm/test/Transforms/Coroutines/coro-align-02.ll
The file was removedllvm/test/Transforms/Coroutines/coro-align-05.ll
The file was addedllvm/test/Transforms/Coroutines/coro-align32.ll
The file was removedllvm/test/Transforms/Coroutines/coro-align-01.ll
The file was addedllvm/test/Transforms/Coroutines/coro-align16.ll
The file was addedllvm/test/Transforms/Coroutines/coro-align8.ll
The file was addedllvm/test/Transforms/Coroutines/coro-align64.ll
The file was removedllvm/test/Transforms/Coroutines/coro-align-03.ll
The file was addedllvm/test/Transforms/Coroutines/coro-align8-02.ll
Commit 943aa1bfacaa143ef98caa360bc98a648703ce2e by kazu
Add modernize-use-default-member-init.UseAssignment to .clang-tidy
The file was modified.clang-tidy
Commit f63a9cd99db79e0d79f03169a9fa8a1baad54f1f by kazu
[Vectorize] Remove unused variables (NFC)
The file was modifiedllvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
Commit b752eb887f7ef160e000c83e4c720d9ecb2bf620 by kazu
[Analysis] Use default member initialization (NFC)

Identified with modernize-use-default-member-init.
The file was modifiedllvm/lib/Analysis/InlineCost.cpp
The file was modifiedllvm/lib/Analysis/MemorySSA.cpp
The file was modifiedllvm/lib/Analysis/LoopAccessAnalysis.cpp
The file was modifiedllvm/include/llvm/Analysis/LoopAccessAnalysis.h
The file was modifiedllvm/include/llvm/Analysis/LoopAnalysisManager.h
The file was modifiedllvm/lib/Analysis/IRSimilarityIdentifier.cpp
The file was modifiedllvm/include/llvm/Analysis/IRSimilarityIdentifier.h
The file was modifiedllvm/include/llvm/Analysis/MemorySSA.h
The file was modifiedllvm/include/llvm/Analysis/DivergenceAnalysis.h
The file was modifiedllvm/include/llvm/Analysis/LazyBranchProbabilityInfo.h
The file was modifiedllvm/include/llvm/Analysis/AliasAnalysisEvaluator.h
The file was modifiedllvm/include/llvm/Analysis/LazyBlockFrequencyInfo.h
The file was modifiedllvm/include/llvm/Analysis/TargetTransformInfo.h
The file was modifiedllvm/lib/Analysis/CostModel.cpp
The file was modifiedllvm/lib/Analysis/DivergenceAnalysis.cpp
The file was modifiedllvm/lib/Analysis/ReplayInlineAdvisor.cpp
The file was modifiedllvm/include/llvm/Analysis/DependenceAnalysis.h
The file was modifiedllvm/lib/Analysis/CaptureTracking.cpp
The file was modifiedllvm/lib/Analysis/LoopInfo.cpp
The file was modifiedllvm/include/llvm/Analysis/InstructionSimplify.h
The file was modifiedllvm/include/llvm/Analysis/PHITransAddr.h
Commit d3b26dea16108c427b19b5480c9edc76edf8f5b4 by dblaikie
Clang: Change the default DWARF version to 5

(except on platforms that already opt in to specific versions - SCE,
Android, and Darwin using DWARFv4 explicitly, for instance)
The file was modifiedclang/test/CodeGen/dwarf-version.c
The file was modifiedclang/test/Driver/ve-toolchain.c
The file was modifiedclang/test/CodeGen/debug-info-extern-call.c
The file was modifiedclang/include/clang/Driver/ToolChain.h
The file was modifiedclang/test/Driver/clang-g-opts.c
The file was modifiedclang/test/Driver/ve-toolchain.cpp
The file was modifiedclang/docs/ReleaseNotes.rst
The file was modifiedclang/lib/Driver/ToolChains/Linux.h
The file was modifiedclang/test/Driver/cl-options.c
Commit 90abe181da7c61d982e4873c97fd12bc06fefe09 by dblaikie
Add missing function implementation from DWARF default change

Fix for d3b26dea16108c427b19b5480c9edc76edf8f5b4
The file was modifiedclang/lib/Driver/ToolChains/Linux.cpp