-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Add inline macro via :meta expressions #8297
Conversation
The "registration" is in
|
I suspect your missing usage is in codegen itself: Line 3016 in 11cfde3
|
Hah, that was it! Having found one source of the error I assumed my check was somehow failing, I should have searched for a second site. Thanks a lot, @vtjnash! OK, removing WIP tag, proposing this seriously for merging. |
7f7d9de
to
54b0ae4
Compare
...and the new tests are finally green... |
54b0ae4
to
f3a0963
Compare
f3a0963
to
106e4f7
Compare
Add inline macro via :meta expressions
This is a long-awaited feature, thanks for doing this! |
You're most welcome! |
This reinstates @vtjnash's contribution of the ability to declare that a function should be inlined. However, this implementation does it with an
@inline
macro and a newExpr(:meta, <metadata>...)
construct. meta-expressions can be used for other things too (I wonder if @ArchRobison may be interested in using it to introduce@SLPvectorize
...)Demo:
Everything seems to work,
except for some reason my attempt to "register" the(EDIT: see below):meta_sym
doesn't seem to have succeededAnyone know why? @ArchRobison, you had to go through this with
simdloop_sym
, any tips?Reference: discussion starting at #3796 (comment).
Also CC @carlobaldassi (cartesian iteration).