Skip to content

Add experimental _hasTargetFeature predicate for CPU/ISA feature query - #3436

Open
hjyamauchi wants to merge 1 commit into
swiftlang:mainfrom
hjyamauchi:has-target-feature-predicate
Open

hjyamauchi wants to merge 1 commit into
swiftlang:mainfrom
hjyamauchi:has-target-feature-predicate

Conversation

@hjyamauchi

@hjyamauchi hjyamauchi commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

This allows conditional compiles (#if...) based on the target CPU/ISA features. This is guarded behind an experimental feature flag.

This is the swift-syntax part. There is a separate main swift repor part.

@hjyamauchi

Copy link
Copy Markdown
Contributor Author

@swift-ci please test

This allows conditional compiles (#if...) per the target CPU/ISA
features. This is guarded behind an experimental feature flag.

This is the swift-syntax part. There is a separate main swift repor part.
@hjyamauchi
hjyamauchi force-pushed the has-target-feature-predicate branch from 01354ae to 838cae8 Compare September 11, 2026 19:41
@hjyamauchi

Copy link
Copy Markdown
Contributor Author

@swift-ci please test

@rintaro rintaro left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@rintaro

rintaro commented Sep 11, 2026

Copy link
Copy Markdown
Member

@swift-ci Please test

@hjyamauchi

Copy link
Copy Markdown
Contributor Author

@swift-ci please test linux platform

@hjyamauchi

Copy link
Copy Markdown
Contributor Author

@swift-ci please test macOS platform

@rintaro

rintaro commented Sep 12, 2026

Copy link
Copy Markdown
Member

@swift-ci Please test Windows

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.

2 participants