mirror of
https://github.com/intel/llvm.git
synced 2026-01-13 19:08:21 +08:00
This PR adds the code of Boost.Math as of version 1.89 into the third-party directory, as discussed in a recent RFC [1]. The goal is for this code to be used as a back-end for the C++17 Math Special Functions. As explained in third-paty/README.md, this code is cleared for usage inside libc++ for the Math Special functions, however the LLVM Foundation should be consulted before using this code anywhere else in the LLVM project, due to the fact that it is under the Boost Software License (as opposed to the usual LLVM license). See the RFC [1] for more details. [1]: https://discourse.llvm.org/t/rfc-libc-taking-a-dependency-on-boost-math-for-the-c-17-math-special-functions
Third-party LLVM dependencies
This directory contains third-party dependencies used in various components of LLVM. Integrating a new third-party dependency generally requires it to be licensed under the Apache-with-LLVM-exception license. For integrating code under other licenses, please follow the process explained in the LLVM Developer Policy.
In particular, due to its non-LLVM license, the Boost.Math third-party dependency can exclusively be used within the libc++ compiled library as discussed in this RFC. Do not use it in other parts of LLVM without prior discussion with the LLVM Board (and update this documentation).