回复:Re: Will clang 4.0 support the new LLVM Exception Handleing instructions ?

发件人:David Majnemer david.majnemer@gmail.com
收件人:bluedream_zqs@sina.com
抄送人:cfe-dev cfe-dev@lists.llvm.org
主题:Re: [cfe-dev] Will clang 4.0 support the new LLVM Exception Handleing instructions ?
日期:2016年09月07日 12点29分

Do we have any plan to make the new eh instructions as the default implementation for all platforms ?

LLVM support new eh instructions.(http://llvm.org/docs/ExceptionHandling.html#new-exception-handling-instructions) Clang still use the old landingpad inst to support the C++ exceptions. Do we have any plan to enable the support of the new exception instructions ?

Clang already supports the new C++ exception handling instructions, it uses them exclusively to implement MSVC compatible exception handling. The landingpad scheme is retained because it provides a degree of flexibility (and thus optimization opportunities) which isn’t available in the new instructions.

发件人:David Majnemer <david.majnemer@gmail.com>
收件人:bluedream_zqs@sina.com
抄送人:cfe-dev <cfe-dev@lists.llvm.org>
主题:Re: [cfe-dev] Will clang 4.0 support the new LLVM Exception Handleing
instructions ?
日期:2016年09月07日 12点29分

Do we have any plan to make the new eh instructions as the default
implementation for all platforms ?

No, that would result in a performance regression for non-MSVC exception
handling.