The Wayback Machine - https://web.archive.org/web/20201202143950/https://github.com/ldc-developers/ldc/issues/3263
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

Add support for function specific targetlibraryinfo attribute (`-fno-builtin`) #3263

Open
JohanEngelen opened this issue Dec 24, 2019 · 0 comments

Comments

@JohanEngelen
Copy link
Member

@JohanEngelen JohanEngelen commented Dec 24, 2019

LLVM will soon support adding per-function attributes about available C library functions. We should add support for that, to solve issues like a memcpy implementation being replaced by a memcpy call: https://forum.dlang.org/thread/clptjumxigcozfcyhzzx@forum.dlang.org
Probably ldc.attributes.llvmAttrwill already work for this, but I think it'd be nice to have a more userfriendly attribute.
Some LLVM info, see: https://reviews.llvm.org/rG878ab6df033

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
1 participant
You can’t perform that action at this time.