Skip to content

invoke-ssaf feature availability#196168

Closed
t-rasmud wants to merge 10000 commits into
llvm:mainfrom
swiftlang:rashmi/invoke-ssaf-feature-availability
Closed

invoke-ssaf feature availability#196168
t-rasmud wants to merge 10000 commits into
llvm:mainfrom
swiftlang:rashmi/invoke-ssaf-feature-availability

Conversation

@t-rasmud
Copy link
Copy Markdown
Contributor

@t-rasmud t-rasmud commented May 6, 2026

No description provided.

git apple-llvm automerger added 30 commits May 4, 2026 14:09
cachemeifyoucan and others added 28 commits May 5, 2026 08:29
Upstream commit c3761b6 ("[clang] Add formal linkage to textual
AST dump (llvm#194600)") teaches TextNodeDumper to print formal linkage
(external-linkage / internal-linkage / module-linkage) for
NamedDecls in textual AST dumps.

Insert external-linkage between definition and instantiated_from in
all 13 ClassTemplateSpecializationDecl CHECKs in the test.
)

The RFC for typed allocator support was approved quite a while ago,
and this PR actually begins the actual upstreaming process.

This PR includes all of the code machinery: the annotations, the
type inference, the encoding of the inferred type, and the final
call re-writing.

Due to the complexity of the inference especially, I've broken
the implementation into separate files, SemaTypedMemory.cpp
containing the attribute parsing and diagnostics, and
CGTypedMemory.cpp to actually handle the destination rewriting
and planting the descriptors.

The core inference is handled in TypedMemoryInference.cpp, with
the other TypedMemory* files providing supporting functionality.

The core details can be found in clang/docs/TypedMemoryOperations.rst
and the original RFC at https://discourse.llvm.org/t/rfc-typed-allocator-support/79720
Registers the invoke-ssaf feature in features.json so that build
systems and tools can query clang's feature availability and
conditionally enable SSAF invocation support.
@t-rasmud t-rasmud closed this May 6, 2026
@t-rasmud t-rasmud deleted the rashmi/invoke-ssaf-feature-availability branch May 7, 2026 22:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants