Skip to content
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

compiler: Implement @disableIntrinsics() builtin function. #22154

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

alexrp
Copy link
Member

@alexrp alexrp commented Dec 5, 2024

This implements #22110, and in a way that also satisfies the use case for #21833. If accepted, this would therefore supersede #21900.

I won't add any usage of this builtin to compiler-rt and std yet as this will require a zig1.wasm update, and I'd like to also get #22035 in (and hopefully #21842 resolved) before that update happens.

Closes #21833.
Closes #22110.

@wooster0
Copy link
Contributor

wooster0 commented Dec 6, 2024

Might be nice to add docs for this in the langref as well, along with disableInstrumentation maybe? (#21424)

I won't add any usage of this builtin to compiler-rt and std yet

Or I guess it can be done then

@alexrp
Copy link
Member Author

alexrp commented Dec 6, 2024

Will write docs if/when it's approved.

@alexrp alexrp added the proposal This issue suggests modifications. If it also has the "accepted" label then it is planned. label Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
proposal This issue suggests modifications. If it also has the "accepted" label then it is planned.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Proposal: @disableIntrinsics() builtin function Proposal: Add never_intrinsify to std.builtin.CallModifier
2 participants