SuccessChanges

Summary

  1. Sema: add support for `__attribute__((__swift_error__))` (details)
  2. [lld][WebAssembly] Convert a objyaml-using test to assembly (details)
  3. Fix test hip-gz-options.hip (details)
Commit f5ab5b20fb2aae5567e6c50cc642ff63eb2146d4 by Saleem Abdulrasool
Sema: add support for `__attribute__((__swift_error__))`

Introduce a new attribute that is used to indicate the error handling
convention used by a function.  This is used to translate the error
semantics from the decorated interface to a compatible Swift interface.

The supported error convention is one of:
- none: no error handling
- nonnull_error: a non-null error parameter indicates an error signifier
- null_result: a return value of NULL is an error signifier
- zero_result: a return value of 0 is an error signifier
- nonzero_result: a non-zero return value is an error signifier

Since this is the first of the attributes needed to support the semantic
annotation for Swift, this change also includes the necessary supporting
infrastructure for a new category of attributes (Swift).

This is based on the work of the original changes in
https://github.com/llvm/llvm-project-staging/commit/8afaf3aad2af43cfedca7a24cd817848c4e95c0c

Differential Revision: https://reviews.llvm.org/D87331
Reviewed By: John McCall, Aaron Ballman, Dmitri Gribenko
The file was modifiedclang/include/clang/Basic/Attr.td (diff)
The file was modifiedclang/lib/Sema/SemaDeclAttr.cpp (diff)
The file was addedclang/test/SemaObjC/attr-swift-error.m
The file was modifiedclang/include/clang/Basic/DiagnosticSemaKinds.td (diff)
The file was modifiedclang/include/clang/Basic/AttrDocs.td (diff)
The file was modifiedclang/test/Misc/pragma-attribute-supported-attributes-list.test (diff)
Commit e3e3d6eecfa5003bf431d8223bcc968e2ce291c8 by sbc
[lld][WebAssembly] Convert a objyaml-using test to assembly

Differential Revision: https://reviews.llvm.org/D87536
The file was removedlld/test/wasm/Inputs/undefined-globals.yaml
The file was addedlld/test/wasm/gc-imports.s
The file was removedlld/test/wasm/gc-imports.ll
The file was addedlld/test/wasm/Inputs/undefined-globals.s
Commit ee13ae030e21d584c72d384ea463896400ccee1c by Yaxun.Liu
Fix test hip-gz-options.hip
The file was modifiedclang/test/Driver/hip-gz-options.hip (diff)