SuccessChanges

Summary

  1. Introduce ns_error_domain attribute. (details)
  2. [InstCombine] Fix incorrect Modified status (details)
  3. [NFC] Add test case showing the miscompile being fixed by D83507 (details)
  4. [SyntaxTree] Split `TreeTest.cpp` (details)
  5. [SyntaxTree] Clean `#includes` in `TreeTestBase.h` (details)
  6. DAG: Don't pass 0 alignment value to allowsMisalignedMemoryAccesses (details)
  7. [gn build] Port d17437d2bd8 (details)
  8. [MLIR] Support for ReturnOps in memref map layout normalization (details)
  9. [libc++][test] Fix another -Wstring-concatenation warning (details)
  10. [mlir][openacc] Introduce OpenACC dialect with parallel, data, loop operations (details)
  11. clang: Fix minor grammar-o in diag added in c354b2e3b (details)
Commit a5b8757506b07e3091fe243b6c1e004220d3cba3 by gribozavr
Introduce ns_error_domain attribute.

ns_error_domain can be used by, e.g. NS_ERROR_ENUM, in order to
identify a global declaration representing the domain constant.

Introduces the attribute, Sema handling, diagnostics, and test case.

This is cherry-picked from https://github.com/llvm/llvm-project-staging/commit/a14779f504b02ad0e4dbc39d6d10cadc7ed4cfd0
and adapted to updated Clang APIs.

Reviewed By: gribozavr2, aaron.ballman

Differential Revision: https://reviews.llvm.org/D84005
The file was modifiedclang/include/clang/Basic/DiagnosticSemaKinds.td
The file was modifiedclang/test/AST/ast-print-attr.c
The file was addedclang/test/Sema/ns_error_enum.m
The file was modifiedclang/include/clang/Basic/AttrDocs.td
The file was modifiedclang/test/Misc/pragma-attribute-supported-attributes-list.test
The file was modifiedclang/include/clang/Basic/Attr.td
The file was modifiedclang/lib/Sema/SemaDeclAttr.cpp
The file was modifiedclang/utils/TableGen/ClangAttrEmitter.cpp
Commit e8ebebb0bde602199c4012efbcfe823f7ab9337f by david.stenberg
[InstCombine] Fix incorrect Modified status

When removing instructions from unreachable blocks, and only debug info
intrinsics were removed, InstCombine could incorrectly return a false
Modified status.

This is fixed by making removeAllNonTerminatorAndEHPadInstructions()
also return how many debug info intrinsics that were removed, and take
that into account.

This was caught using the check introduced by D80916.

Reviewed By: majnemer

Differential Revision: https://reviews.llvm.org/D85839
The file was modifiedllvm/lib/Transforms/Scalar/SCCP.cpp
The file was modifiedllvm/lib/Transforms/InstCombine/InstructionCombining.cpp
The file was addedllvm/test/Transforms/InstCombine/unreachable-dbg-info-modified.ll
The file was modifiedllvm/lib/Transforms/Utils/Local.cpp
The file was modifiedllvm/include/llvm/Transforms/Utils/Local.h
Commit 3bd2513ebd788a48394ababbc62b5cdcfa3dde12 by lebedev.ri
[NFC] Add test case showing the miscompile being fixed by D83507

See https://reviews.llvm.org/D83507
The file was addedllvm/test/Transforms/PhaseOrdering/d83507-knowledge-retention-bug.ll
Commit d17437d2bd8e83baee96f2860276d615d216dfbc by ecaldas
[SyntaxTree] Split `TreeTest.cpp`

We extract the test infrastructure into `TreeTestBase.h` and split the
tests into `MutationsTest.cpp` and `BuildTreeTest.cpp`
The file was removedclang/unittests/Tooling/Syntax/TreeTest.cpp
The file was addedclang/unittests/Tooling/Syntax/BuildTreeTest.cpp
The file was modifiedclang/unittests/Tooling/Syntax/CMakeLists.txt
The file was addedclang/unittests/Tooling/Syntax/MutationsTest.cpp
The file was addedclang/unittests/Tooling/Syntax/TreeTestBase.h
Commit 9c2e708f0dc547d386ea528450a33ef4bd2a750b by ecaldas
[SyntaxTree] Clean `#includes` in `TreeTestBase.h`

Differential Revision: https://reviews.llvm.org/D85898
The file was modifiedclang/unittests/Tooling/Syntax/MutationsTest.cpp
The file was modifiedclang/unittests/Tooling/Syntax/TreeTestBase.h
Commit c7191e318544ea0c30b5678c1f2e79e0c5be9628 by Matthew.Arsenault
DAG: Don't pass 0 alignment value to allowsMisalignedMemoryAccesses

I think not unconditionally passing getDstAlign is broken, but leave
that for another change.
The file was modifiedllvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
The file was addedllvm/test/CodeGen/AMDGPU/memcpy-fixed-align.ll
Commit fc7f004b887594ed9b5e25497aa4475b3e74cc94 by llvmgnsyncbot
[gn build] Port d17437d2bd8
The file was modifiedllvm/utils/gn/secondary/clang/unittests/Tooling/Syntax/BUILD.gn
Commit 6d4f7801b1d2a0ec6fbc0cb4eb9d3613df788d78 by uday
[MLIR] Support for ReturnOps in memref map layout normalization

-- This commit handles the returnOp in memref map layout normalization.
-- An initial filter is applied on FuncOps which helps us know which functions can be
   a suitable candidate for memref normalization which doesn't lead to invalid IR.
-- Handles memref map normalization for external function assuming the external function
   is normalizable.

Differential Revision: https://reviews.llvm.org/D85226
The file was modifiedmlir/lib/Transforms/NormalizeMemRefs.cpp
The file was modifiedmlir/test/Transforms/normalize-memrefs.mlir
The file was modifiedmlir/lib/Transforms/Utils/Utils.cpp
Commit 2916dd5669e7700eff41c891916d6030511cef3e by Louis Dionne
[libc++][test] Fix another -Wstring-concatenation warning
The file was modifiedlibcxx/test/libcxx/fuzzing/partial_sort.pass.cpp
Commit 4225e7fa34febac6da8c9151bd69f998a6a1d7df by clementval
[mlir][openacc] Introduce OpenACC dialect with parallel, data, loop operations

This patch introduces the OpenACC dialect with three operation defined
parallel, data and loop operations with custom parsing and printing.

OpenACC dialect RFC can be find here: https://llvm.discourse.group/t/rfc-openacc-dialect/546/2

Reviewed By: rriddle, kiranchandramohan

Differential Revision: https://reviews.llvm.org/D84268
The file was addedmlir/test/Dialect/OpenACC/ops.mlir
The file was addedmlir/include/mlir/Dialect/OpenACC/OpenACC.h
The file was addedmlir/lib/Dialect/OpenACC/CMakeLists.txt
The file was addedmlir/include/mlir/Dialect/OpenACC/CMakeLists.txt
The file was modifiedmlir/include/mlir/InitAllDialects.h
The file was addedmlir/lib/Dialect/OpenACC/IR/OpenACC.cpp
The file was modifiedmlir/include/mlir/Dialect/CMakeLists.txt
The file was addedmlir/include/mlir/Dialect/OpenACC/OpenACCOps.td
The file was modifiedmlir/include/mlir/IR/DialectSymbolRegistry.def
The file was modifiedmlir/lib/Dialect/CMakeLists.txt
Commit 82057e3f39e624dbaa5bbd7497c359f704347f6f by thakis
clang: Fix minor grammar-o in diag added in c354b2e3b
The file was modifiedclang/test/SemaCXX/elaborated-type-specifier.cpp
The file was modifiedclang/include/clang/Basic/DiagnosticSemaKinds.td
The file was modifiedclang/test/Modules/namespaces.cpp
The file was modifiedclang/test/SemaCXX/pointer-forward-declared-class-conversion.cpp