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

pragma(inline) not implemented #1200

Closed
dnadlinger opened this issue Nov 8, 2015 · 5 comments
Closed

pragma(inline) not implemented #1200

dnadlinger opened this issue Nov 8, 2015 · 5 comments

Comments

@dnadlinger
Copy link
Member

# LDC_FIXME: pragma(inline) is not currently implemented.
DISABLED_FAIL_TESTS += pragmainline2`

We need to figure out if/how we want to support it soon (use the front-end inliner or not, …). Currently, its usefulness is questionable, though, as it is only active with -inline, and doesn't seem to properly do cross-module inlining.

@9il
Copy link

9il commented Jan 4, 2016

pragma(inline, false) is critical for upcoming BLAS implementation.

@JohanEngelen
Copy link
Member

Is the behavior of pragma(inline, false) the same as pragma(LDC_never_inline) ?
http://wiki.dlang.org/LDC-specific_language_changes#LDC_never_inline

@9il
Copy link

9il commented Jan 4, 2016

Is the behavior of pragma(inline, false) the same as pragma(LDC_never_inline) ?

Yes, but pragma(inline, false) can be overrided and have various syntax.
https://dlang.org/spec/pragma.html#inline .

BTW pragma(LDC_never_inline) is enough for BLAS, but pragma(inline, false) just have unified syntax.

@JohanEngelen
Copy link
Member

(I'm working on this :) )

@dnadlinger
Copy link
Member Author

#1577 has been merged.

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

No branches or pull requests

3 participants