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

Better doc and codegen for noreturn ccall #15788

Merged
merged 1 commit into from
Apr 8, 2016
Merged

Better doc and codegen for noreturn ccall #15788

merged 1 commit into from
Apr 8, 2016

Conversation

yuyichao
Copy link
Contributor

@yuyichao yuyichao commented Apr 7, 2016

Noticed in #15773 that we treat ccall with Bottom return type as Void in codegen (not in typeinf). Add llvm function attribute to save a few return instructions...

One potential future issue I can see is that we have to handle the gc roots lifetime before dead code elimination.

Closes #14685

@yuyichao yuyichao added docs This change adds or pertains to documentation compiler:codegen Generation of LLVM IR and native code labels Apr 7, 2016
@yuyichao yuyichao merged commit e8a2dd2 into master Apr 8, 2016
@yuyichao yuyichao deleted the yyc/noret branch April 8, 2016 12:17

A return type of ``Union{}`` means the function will not return
i.e. C++11 ``[[noreturn]]`` or C11 ``_Noreturn`` (e.g. ``jl_throw`` or
``longjmp``). Do not use this for function that returns
Copy link
Contributor

Choose a reason for hiding this comment

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

functions that return

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done (hopefully....) db6aca2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler:codegen Generation of LLVM IR and native code docs This change adds or pertains to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants