Skip to content

[sil] Improve comments on macro definitions in SILNodes.def. #20012

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 21 additions & 1 deletion include/swift/SIL/SILNodes.def
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
#define NODE(ID, PARENT)
#endif

/// SINGLE_VALUE_INST(Id, Parent, TextualName, MemBehavior, MayRelease)
/// SINGLE_VALUE_INST(ID, TEXTUALNAME, PARENT, MEMBEHAVIOR, MAYRELEASE)
///
/// A concrete subclass of SingleValueInstruction, which inherits from
/// both ValueBase and SILInstruction. ID is a member of both ValueKind
Expand All @@ -90,6 +90,11 @@
#endif
#endif

/// APPLYSITE_SINGLE_VALUE_INST(ID, TEXTUALNAME, PARENT, MEMBEHAVIOR,
/// MAYRELEASE)
///
/// A SINGLE_VALUE_INST that is a partial or full apply site. ID is a member
/// of ApplySiteKind.
#ifndef APPLYSITE_SINGLE_VALUE_INST
#ifdef APPLYSITE_INST
#define APPLYSITE_SINGLE_VALUE_INST(ID, NAME, PARENT, MEMBEHAVIOR, MAYRELEASE) \
Expand All @@ -100,6 +105,11 @@
#endif
#endif

/// FULLAPPLYSITE_SINGLE_VALUE_INST(ID, TEXTUALNAME, PARENT, MEMBEHAVIOR,
/// MAYRELEASE)
///
/// A SINGLE_VALUE_INST that is a full apply site. ID is a member of
/// FullApplySiteKind and ApplySiteKind.
#ifndef FULLAPPLYSITE_SINGLE_VALUE_INST
#ifdef FULLAPPLYSITE_INST
#define FULLAPPLYSITE_SINGLE_VALUE_INST(ID, NAME, PARENT, MEMBEHAVIOR, MAYRELEASE) \
Expand All @@ -120,6 +130,11 @@
FULL_INST(ID, NAME, PARENT, MEMBEHAVIOR, MAYRELEASE)
#endif

/// APPLYSITE_MULTIPLE_VALUE_INST(ID, TEXTUALNAME, PARENT, MEMBEHAVIOR,
/// MAYRELEASE)
///
/// A MULTIPLE_VALUE_INST that is additionally either a partial or full apply
/// site. ID is a member of ApplySiteKind.
#ifndef APPLYSITE_MULTIPLE_VALUE_INST
#ifdef APPLYSITE_INST
#define APPLYSITE_MULTIPLE_VALUE_INST(ID, NAME, PARENT, MEMBEHAVIOR, MAYRELEASE) \
Expand All @@ -130,6 +145,11 @@
#endif
#endif

/// FULLAPPLYSITE_MULTIPLE_VALUE_INST(ID, TEXTUALNAME, PARENT, MEMBEHAVIOR,
/// MAYRELEASE)
///
/// A MULTIPLE_VALUE_INST that is additionally a full apply site. ID is a
/// member of FullApplySiteKind and ApplySiteKind.
#ifndef FULLAPPLYSITE_MULTIPLE_VALUE_INST
#ifdef FULLAPPLYSITE_INST
#define FULLAPPLYSITE_MULTIPLE_VALUE_INST(ID, NAME, PARENT, MEMBEHAVIOR, MAYRELEASE) \
Expand Down