10b57cec5SDimitry Andric==============================================================================
20b57cec5SDimitry AndricThe LLVM Project is under the Apache License v2.0 with LLVM Exceptions:
30b57cec5SDimitry Andric==============================================================================
40b57cec5SDimitry Andric
50b57cec5SDimitry Andric                                 Apache License
60b57cec5SDimitry Andric                           Version 2.0, January 2004
70b57cec5SDimitry Andric                        http://www.apache.org/licenses/
80b57cec5SDimitry Andric
90b57cec5SDimitry Andric    TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
100b57cec5SDimitry Andric
110b57cec5SDimitry Andric    1. Definitions.
120b57cec5SDimitry Andric
130b57cec5SDimitry Andric      "License" shall mean the terms and conditions for use, reproduction,
140b57cec5SDimitry Andric      and distribution as defined by Sections 1 through 9 of this document.
150b57cec5SDimitry Andric
160b57cec5SDimitry Andric      "Licensor" shall mean the copyright owner or entity authorized by
170b57cec5SDimitry Andric      the copyright owner that is granting the License.
180b57cec5SDimitry Andric
190b57cec5SDimitry Andric      "Legal Entity" shall mean the union of the acting entity and all
200b57cec5SDimitry Andric      other entities that control, are controlled by, or are under common
210b57cec5SDimitry Andric      control with that entity. For the purposes of this definition,
220b57cec5SDimitry Andric      "control" means (i) the power, direct or indirect, to cause the
230b57cec5SDimitry Andric      direction or management of such entity, whether by contract or
240b57cec5SDimitry Andric      otherwise, or (ii) ownership of fifty percent (50%) or more of the
250b57cec5SDimitry Andric      outstanding shares, or (iii) beneficial ownership of such entity.
260b57cec5SDimitry Andric
270b57cec5SDimitry Andric      "You" (or "Your") shall mean an individual or Legal Entity
280b57cec5SDimitry Andric      exercising permissions granted by this License.
290b57cec5SDimitry Andric
300b57cec5SDimitry Andric      "Source" form shall mean the preferred form for making modifications,
310b57cec5SDimitry Andric      including but not limited to software source code, documentation
320b57cec5SDimitry Andric      source, and configuration files.
330b57cec5SDimitry Andric
340b57cec5SDimitry Andric      "Object" form shall mean any form resulting from mechanical
350b57cec5SDimitry Andric      transformation or translation of a Source form, including but
360b57cec5SDimitry Andric      not limited to compiled object code, generated documentation,
370b57cec5SDimitry Andric      and conversions to other media types.
380b57cec5SDimitry Andric
390b57cec5SDimitry Andric      "Work" shall mean the work of authorship, whether in Source or
400b57cec5SDimitry Andric      Object form, made available under the License, as indicated by a
410b57cec5SDimitry Andric      copyright notice that is included in or attached to the work
420b57cec5SDimitry Andric      (an example is provided in the Appendix below).
430b57cec5SDimitry Andric
440b57cec5SDimitry Andric      "Derivative Works" shall mean any work, whether in Source or Object
450b57cec5SDimitry Andric      form, that is based on (or derived from) the Work and for which the
460b57cec5SDimitry Andric      editorial revisions, annotations, elaborations, or other modifications
470b57cec5SDimitry Andric      represent, as a whole, an original work of authorship. For the purposes
480b57cec5SDimitry Andric      of this License, Derivative Works shall not include works that remain
490b57cec5SDimitry Andric      separable from, or merely link (or bind by name) to the interfaces of,
500b57cec5SDimitry Andric      the Work and Derivative Works thereof.
510b57cec5SDimitry Andric
520b57cec5SDimitry Andric      "Contribution" shall mean any work of authorship, including
530b57cec5SDimitry Andric      the original version of the Work and any modifications or additions
540b57cec5SDimitry Andric      to that Work or Derivative Works thereof, that is intentionally
550b57cec5SDimitry Andric      submitted to Licensor for inclusion in the Work by the copyright owner
560b57cec5SDimitry Andric      or by an individual or Legal Entity authorized to submit on behalf of
570b57cec5SDimitry Andric      the copyright owner. For the purposes of this definition, "submitted"
580b57cec5SDimitry Andric      means any form of electronic, verbal, or written communication sent
590b57cec5SDimitry Andric      to the Licensor or its representatives, including but not limited to
600b57cec5SDimitry Andric      communication on electronic mailing lists, source code control systems,
610b57cec5SDimitry Andric      and issue tracking systems that are managed by, or on behalf of, the
620b57cec5SDimitry Andric      Licensor for the purpose of discussing and improving the Work, but
630b57cec5SDimitry Andric      excluding communication that is conspicuously marked or otherwise
640b57cec5SDimitry Andric      designated in writing by the copyright owner as "Not a Contribution."
650b57cec5SDimitry Andric
660b57cec5SDimitry Andric      "Contributor" shall mean Licensor and any individual or Legal Entity
670b57cec5SDimitry Andric      on behalf of whom a Contribution has been received by Licensor and
680b57cec5SDimitry Andric      subsequently incorporated within the Work.
690b57cec5SDimitry Andric
700b57cec5SDimitry Andric    2. Grant of Copyright License. Subject to the terms and conditions of
710b57cec5SDimitry Andric      this License, each Contributor hereby grants to You a perpetual,
720b57cec5SDimitry Andric      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
730b57cec5SDimitry Andric      copyright license to reproduce, prepare Derivative Works of,
740b57cec5SDimitry Andric      publicly display, publicly perform, sublicense, and distribute the
750b57cec5SDimitry Andric      Work and such Derivative Works in Source or Object form.
760b57cec5SDimitry Andric
770b57cec5SDimitry Andric    3. Grant of Patent License. Subject to the terms and conditions of
780b57cec5SDimitry Andric      this License, each Contributor hereby grants to You a perpetual,
790b57cec5SDimitry Andric      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
800b57cec5SDimitry Andric      (except as stated in this section) patent license to make, have made,
810b57cec5SDimitry Andric      use, offer to sell, sell, import, and otherwise transfer the Work,
820b57cec5SDimitry Andric      where such license applies only to those patent claims licensable
830b57cec5SDimitry Andric      by such Contributor that are necessarily infringed by their
840b57cec5SDimitry Andric      Contribution(s) alone or by combination of their Contribution(s)
850b57cec5SDimitry Andric      with the Work to which such Contribution(s) was submitted. If You
860b57cec5SDimitry Andric      institute patent litigation against any entity (including a
870b57cec5SDimitry Andric      cross-claim or counterclaim in a lawsuit) alleging that the Work
880b57cec5SDimitry Andric      or a Contribution incorporated within the Work constitutes direct
890b57cec5SDimitry Andric      or contributory patent infringement, then any patent licenses
900b57cec5SDimitry Andric      granted to You under this License for that Work shall terminate
910b57cec5SDimitry Andric      as of the date such litigation is filed.
920b57cec5SDimitry Andric
930b57cec5SDimitry Andric    4. Redistribution. You may reproduce and distribute copies of the
940b57cec5SDimitry Andric      Work or Derivative Works thereof in any medium, with or without
950b57cec5SDimitry Andric      modifications, and in Source or Object form, provided that You
960b57cec5SDimitry Andric      meet the following conditions:
970b57cec5SDimitry Andric
980b57cec5SDimitry Andric      (a) You must give any other recipients of the Work or
990b57cec5SDimitry Andric          Derivative Works a copy of this License; and
1000b57cec5SDimitry Andric
1010b57cec5SDimitry Andric      (b) You must cause any modified files to carry prominent notices
1020b57cec5SDimitry Andric          stating that You changed the files; and
1030b57cec5SDimitry Andric
1040b57cec5SDimitry Andric      (c) You must retain, in the Source form of any Derivative Works
1050b57cec5SDimitry Andric          that You distribute, all copyright, patent, trademark, and
1060b57cec5SDimitry Andric          attribution notices from the Source form of the Work,
1070b57cec5SDimitry Andric          excluding those notices that do not pertain to any part of
1080b57cec5SDimitry Andric          the Derivative Works; and
1090b57cec5SDimitry Andric
1100b57cec5SDimitry Andric      (d) If the Work includes a "NOTICE" text file as part of its
1110b57cec5SDimitry Andric          distribution, then any Derivative Works that You distribute must
1120b57cec5SDimitry Andric          include a readable copy of the attribution notices contained
1130b57cec5SDimitry Andric          within such NOTICE file, excluding those notices that do not
1140b57cec5SDimitry Andric          pertain to any part of the Derivative Works, in at least one
1150b57cec5SDimitry Andric          of the following places: within a NOTICE text file distributed
1160b57cec5SDimitry Andric          as part of the Derivative Works; within the Source form or
1170b57cec5SDimitry Andric          documentation, if provided along with the Derivative Works; or,
1180b57cec5SDimitry Andric          within a display generated by the Derivative Works, if and
1190b57cec5SDimitry Andric          wherever such third-party notices normally appear. The contents
1200b57cec5SDimitry Andric          of the NOTICE file are for informational purposes only and
1210b57cec5SDimitry Andric          do not modify the License. You may add Your own attribution
1220b57cec5SDimitry Andric          notices within Derivative Works that You distribute, alongside
1230b57cec5SDimitry Andric          or as an addendum to the NOTICE text from the Work, provided
1240b57cec5SDimitry Andric          that such additional attribution notices cannot be construed
1250b57cec5SDimitry Andric          as modifying the License.
1260b57cec5SDimitry Andric
1270b57cec5SDimitry Andric      You may add Your own copyright statement to Your modifications and
1280b57cec5SDimitry Andric      may provide additional or different license terms and conditions
1290b57cec5SDimitry Andric      for use, reproduction, or distribution of Your modifications, or
1300b57cec5SDimitry Andric      for any such Derivative Works as a whole, provided Your use,
1310b57cec5SDimitry Andric      reproduction, and distribution of the Work otherwise complies with
1320b57cec5SDimitry Andric      the conditions stated in this License.
1330b57cec5SDimitry Andric
1340b57cec5SDimitry Andric    5. Submission of Contributions. Unless You explicitly state otherwise,
1350b57cec5SDimitry Andric      any Contribution intentionally submitted for inclusion in the Work
1360b57cec5SDimitry Andric      by You to the Licensor shall be under the terms and conditions of
1370b57cec5SDimitry Andric      this License, without any additional terms or conditions.
1380b57cec5SDimitry Andric      Notwithstanding the above, nothing herein shall supersede or modify
1390b57cec5SDimitry Andric      the terms of any separate license agreement you may have executed
1400b57cec5SDimitry Andric      with Licensor regarding such Contributions.
1410b57cec5SDimitry Andric
1420b57cec5SDimitry Andric    6. Trademarks. This License does not grant permission to use the trade
1430b57cec5SDimitry Andric      names, trademarks, service marks, or product names of the Licensor,
1440b57cec5SDimitry Andric      except as required for reasonable and customary use in describing the
1450b57cec5SDimitry Andric      origin of the Work and reproducing the content of the NOTICE file.
1460b57cec5SDimitry Andric
1470b57cec5SDimitry Andric    7. Disclaimer of Warranty. Unless required by applicable law or
1480b57cec5SDimitry Andric      agreed to in writing, Licensor provides the Work (and each
1490b57cec5SDimitry Andric      Contributor provides its Contributions) on an "AS IS" BASIS,
1500b57cec5SDimitry Andric      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
1510b57cec5SDimitry Andric      implied, including, without limitation, any warranties or conditions
1520b57cec5SDimitry Andric      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
1530b57cec5SDimitry Andric      PARTICULAR PURPOSE. You are solely responsible for determining the
1540b57cec5SDimitry Andric      appropriateness of using or redistributing the Work and assume any
1550b57cec5SDimitry Andric      risks associated with Your exercise of permissions under this License.
1560b57cec5SDimitry Andric
1570b57cec5SDimitry Andric    8. Limitation of Liability. In no event and under no legal theory,
1580b57cec5SDimitry Andric      whether in tort (including negligence), contract, or otherwise,
1590b57cec5SDimitry Andric      unless required by applicable law (such as deliberate and grossly
1600b57cec5SDimitry Andric      negligent acts) or agreed to in writing, shall any Contributor be
1610b57cec5SDimitry Andric      liable to You for damages, including any direct, indirect, special,
1620b57cec5SDimitry Andric      incidental, or consequential damages of any character arising as a
1630b57cec5SDimitry Andric      result of this License or out of the use or inability to use the
1640b57cec5SDimitry Andric      Work (including but not limited to damages for loss of goodwill,
1650b57cec5SDimitry Andric      work stoppage, computer failure or malfunction, or any and all
1660b57cec5SDimitry Andric      other commercial damages or losses), even if such Contributor
1670b57cec5SDimitry Andric      has been advised of the possibility of such damages.
1680b57cec5SDimitry Andric
1690b57cec5SDimitry Andric    9. Accepting Warranty or Additional Liability. While redistributing
1700b57cec5SDimitry Andric      the Work or Derivative Works thereof, You may choose to offer,
1710b57cec5SDimitry Andric      and charge a fee for, acceptance of support, warranty, indemnity,
1720b57cec5SDimitry Andric      or other liability obligations and/or rights consistent with this
1730b57cec5SDimitry Andric      License. However, in accepting such obligations, You may act only
1740b57cec5SDimitry Andric      on Your own behalf and on Your sole responsibility, not on behalf
1750b57cec5SDimitry Andric      of any other Contributor, and only if You agree to indemnify,
1760b57cec5SDimitry Andric      defend, and hold each Contributor harmless for any liability
1770b57cec5SDimitry Andric      incurred by, or claims asserted against, such Contributor by reason
1780b57cec5SDimitry Andric      of your accepting any such warranty or additional liability.
1790b57cec5SDimitry Andric
1800b57cec5SDimitry Andric    END OF TERMS AND CONDITIONS
1810b57cec5SDimitry Andric
1820b57cec5SDimitry Andric    APPENDIX: How to apply the Apache License to your work.
1830b57cec5SDimitry Andric
1840b57cec5SDimitry Andric      To apply the Apache License to your work, attach the following
1850b57cec5SDimitry Andric      boilerplate notice, with the fields enclosed by brackets "[]"
1860b57cec5SDimitry Andric      replaced with your own identifying information. (Don't include
1870b57cec5SDimitry Andric      the brackets!)  The text should be enclosed in the appropriate
1880b57cec5SDimitry Andric      comment syntax for the file format. We also recommend that a
1890b57cec5SDimitry Andric      file or class name and description of purpose be included on the
1900b57cec5SDimitry Andric      same "printed page" as the copyright notice for easier
1910b57cec5SDimitry Andric      identification within third-party archives.
1920b57cec5SDimitry Andric
1930b57cec5SDimitry Andric    Copyright [yyyy] [name of copyright owner]
1940b57cec5SDimitry Andric
1950b57cec5SDimitry Andric    Licensed under the Apache License, Version 2.0 (the "License");
1960b57cec5SDimitry Andric    you may not use this file except in compliance with the License.
1970b57cec5SDimitry Andric    You may obtain a copy of the License at
1980b57cec5SDimitry Andric
1990b57cec5SDimitry Andric       http://www.apache.org/licenses/LICENSE-2.0
2000b57cec5SDimitry Andric
2010b57cec5SDimitry Andric    Unless required by applicable law or agreed to in writing, software
2020b57cec5SDimitry Andric    distributed under the License is distributed on an "AS IS" BASIS,
2030b57cec5SDimitry Andric    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2040b57cec5SDimitry Andric    See the License for the specific language governing permissions and
2050b57cec5SDimitry Andric    limitations under the License.
2060b57cec5SDimitry Andric
2070b57cec5SDimitry Andric
2080b57cec5SDimitry Andric---- LLVM Exceptions to the Apache 2.0 License ----
2090b57cec5SDimitry Andric
2100b57cec5SDimitry AndricAs an exception, if, as a result of your compiling your source code, portions
2110b57cec5SDimitry Andricof this Software are embedded into an Object form of such source code, you
2120b57cec5SDimitry Andricmay redistribute such embedded portions in such Object form without complying
2130b57cec5SDimitry Andricwith the conditions of Sections 4(a), 4(b) and 4(d) of the License.
2140b57cec5SDimitry Andric
2150b57cec5SDimitry AndricIn addition, if you combine or link compiled forms of this Software with
2160b57cec5SDimitry Andricsoftware that is licensed under the GPLv2 ("Combined Software") and if a
2170b57cec5SDimitry Andriccourt of competent jurisdiction determines that the patent provision (Section
2180b57cec5SDimitry Andric3), the indemnity provision (Section 9) or other Section of the License
2190b57cec5SDimitry Andricconflicts with the conditions of the GPLv2, you may retroactively and
2200b57cec5SDimitry Andricprospectively choose to deem waived or otherwise exclude such Section(s) of
2210b57cec5SDimitry Andricthe License, but only in their entirety and only with respect to the Combined
2220b57cec5SDimitry AndricSoftware.
2230b57cec5SDimitry Andric
2240b57cec5SDimitry Andric==============================================================================
2250b57cec5SDimitry AndricSoftware from third parties included in the LLVM Project:
2260b57cec5SDimitry Andric==============================================================================
2270b57cec5SDimitry AndricThe LLVM Project contains third party software which is under different license
2280b57cec5SDimitry Andricterms. All such code will be identified clearly using at least one of two
2290b57cec5SDimitry Andricmechanisms:
2300b57cec5SDimitry Andric1) It will be in a separate directory tree with its own `LICENSE.txt` or
2310b57cec5SDimitry Andric   `LICENSE` file at the top containing the specific license and restrictions
2320b57cec5SDimitry Andric   which apply to that software, or
2330b57cec5SDimitry Andric2) It will contain specific license and restriction terms at the top of every
2340b57cec5SDimitry Andric   file.
2350b57cec5SDimitry Andric
2360b57cec5SDimitry Andric==============================================================================
2370b57cec5SDimitry AndricLegacy LLVM License (https://llvm.org/docs/DeveloperPolicy.html#legacy):
2380b57cec5SDimitry Andric==============================================================================
2390b57cec5SDimitry Andric
2400b57cec5SDimitry AndricThe libunwind library is dual licensed under both the University of Illinois
2410b57cec5SDimitry Andric"BSD-Like" license and the MIT license.  As a user of this code you may choose
2420b57cec5SDimitry Andricto use it under either license.  As a contributor, you agree to allow your code
2430b57cec5SDimitry Andricto be used under both.
2440b57cec5SDimitry Andric
2450b57cec5SDimitry AndricFull text of the relevant licenses is included below.
2460b57cec5SDimitry Andric
2470b57cec5SDimitry Andric==============================================================================
2480b57cec5SDimitry Andric
2490b57cec5SDimitry AndricUniversity of Illinois/NCSA
2500b57cec5SDimitry AndricOpen Source License
2510b57cec5SDimitry Andric
2520b57cec5SDimitry AndricCopyright (c) 2009-2019 by the contributors listed in CREDITS.TXT
2530b57cec5SDimitry Andric
2540b57cec5SDimitry AndricAll rights reserved.
2550b57cec5SDimitry Andric
2560b57cec5SDimitry AndricDeveloped by:
2570b57cec5SDimitry Andric
2580b57cec5SDimitry Andric    LLVM Team
2590b57cec5SDimitry Andric
2600b57cec5SDimitry Andric    University of Illinois at Urbana-Champaign
2610b57cec5SDimitry Andric
2620b57cec5SDimitry Andric    http://llvm.org
2630b57cec5SDimitry Andric
2640b57cec5SDimitry AndricPermission is hereby granted, free of charge, to any person obtaining a copy of
2650b57cec5SDimitry Andricthis software and associated documentation files (the "Software"), to deal with
2660b57cec5SDimitry Andricthe Software without restriction, including without limitation the rights to
2670b57cec5SDimitry Andricuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
2680b57cec5SDimitry Andricof the Software, and to permit persons to whom the Software is furnished to do
2690b57cec5SDimitry Andricso, subject to the following conditions:
2700b57cec5SDimitry Andric
2710b57cec5SDimitry Andric    * Redistributions of source code must retain the above copyright notice,
2720b57cec5SDimitry Andric      this list of conditions and the following disclaimers.
2730b57cec5SDimitry Andric
2740b57cec5SDimitry Andric    * Redistributions in binary form must reproduce the above copyright notice,
2750b57cec5SDimitry Andric      this list of conditions and the following disclaimers in the
2760b57cec5SDimitry Andric      documentation and/or other materials provided with the distribution.
2770b57cec5SDimitry Andric
2780b57cec5SDimitry Andric    * Neither the names of the LLVM Team, University of Illinois at
2790b57cec5SDimitry Andric      Urbana-Champaign, nor the names of its contributors may be used to
2800b57cec5SDimitry Andric      endorse or promote products derived from this Software without specific
2810b57cec5SDimitry Andric      prior written permission.
2820b57cec5SDimitry Andric
2830b57cec5SDimitry AndricTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
2840b57cec5SDimitry AndricIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
2850b57cec5SDimitry AndricFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
2860b57cec5SDimitry AndricCONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
2870b57cec5SDimitry AndricLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2880b57cec5SDimitry AndricOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE
2890b57cec5SDimitry AndricSOFTWARE.
2900b57cec5SDimitry Andric
2910b57cec5SDimitry Andric==============================================================================
2920b57cec5SDimitry Andric
2930b57cec5SDimitry AndricCopyright (c) 2009-2014 by the contributors listed in CREDITS.TXT
2940b57cec5SDimitry Andric
2950b57cec5SDimitry AndricPermission is hereby granted, free of charge, to any person obtaining a copy
2960b57cec5SDimitry Andricof this software and associated documentation files (the "Software"), to deal
2970b57cec5SDimitry Andricin the Software without restriction, including without limitation the rights
2980b57cec5SDimitry Andricto use, copy, modify, merge, publish, distribute, sublicense, and/or sell
2990b57cec5SDimitry Andriccopies of the Software, and to permit persons to whom the Software is
3000b57cec5SDimitry Andricfurnished to do so, subject to the following conditions:
3010b57cec5SDimitry Andric
3020b57cec5SDimitry AndricThe above copyright notice and this permission notice shall be included in
3030b57cec5SDimitry Andricall copies or substantial portions of the Software.
3040b57cec5SDimitry Andric
3050b57cec5SDimitry AndricTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
3060b57cec5SDimitry AndricIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
3070b57cec5SDimitry AndricFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
3080b57cec5SDimitry AndricAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
3090b57cec5SDimitry AndricLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
3100b57cec5SDimitry AndricOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
3110b57cec5SDimitry AndricTHE SOFTWARE.
312