1*e5dd7070Spatrick============================================================================== 2*e5dd7070SpatrickThe LLVM Project is under the Apache License v2.0 with LLVM Exceptions: 3*e5dd7070Spatrick============================================================================== 4*e5dd7070Spatrick 5*e5dd7070Spatrick Apache License 6*e5dd7070Spatrick Version 2.0, January 2004 7*e5dd7070Spatrick http://www.apache.org/licenses/ 8*e5dd7070Spatrick 9*e5dd7070Spatrick TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 10*e5dd7070Spatrick 11*e5dd7070Spatrick 1. Definitions. 12*e5dd7070Spatrick 13*e5dd7070Spatrick "License" shall mean the terms and conditions for use, reproduction, 14*e5dd7070Spatrick and distribution as defined by Sections 1 through 9 of this document. 15*e5dd7070Spatrick 16*e5dd7070Spatrick "Licensor" shall mean the copyright owner or entity authorized by 17*e5dd7070Spatrick the copyright owner that is granting the License. 18*e5dd7070Spatrick 19*e5dd7070Spatrick "Legal Entity" shall mean the union of the acting entity and all 20*e5dd7070Spatrick other entities that control, are controlled by, or are under common 21*e5dd7070Spatrick control with that entity. For the purposes of this definition, 22*e5dd7070Spatrick "control" means (i) the power, direct or indirect, to cause the 23*e5dd7070Spatrick direction or management of such entity, whether by contract or 24*e5dd7070Spatrick otherwise, or (ii) ownership of fifty percent (50%) or more of the 25*e5dd7070Spatrick outstanding shares, or (iii) beneficial ownership of such entity. 26*e5dd7070Spatrick 27*e5dd7070Spatrick "You" (or "Your") shall mean an individual or Legal Entity 28*e5dd7070Spatrick exercising permissions granted by this License. 29*e5dd7070Spatrick 30*e5dd7070Spatrick "Source" form shall mean the preferred form for making modifications, 31*e5dd7070Spatrick including but not limited to software source code, documentation 32*e5dd7070Spatrick source, and configuration files. 33*e5dd7070Spatrick 34*e5dd7070Spatrick "Object" form shall mean any form resulting from mechanical 35*e5dd7070Spatrick transformation or translation of a Source form, including but 36*e5dd7070Spatrick not limited to compiled object code, generated documentation, 37*e5dd7070Spatrick and conversions to other media types. 38*e5dd7070Spatrick 39*e5dd7070Spatrick "Work" shall mean the work of authorship, whether in Source or 40*e5dd7070Spatrick Object form, made available under the License, as indicated by a 41*e5dd7070Spatrick copyright notice that is included in or attached to the work 42*e5dd7070Spatrick (an example is provided in the Appendix below). 43*e5dd7070Spatrick 44*e5dd7070Spatrick "Derivative Works" shall mean any work, whether in Source or Object 45*e5dd7070Spatrick form, that is based on (or derived from) the Work and for which the 46*e5dd7070Spatrick editorial revisions, annotations, elaborations, or other modifications 47*e5dd7070Spatrick represent, as a whole, an original work of authorship. For the purposes 48*e5dd7070Spatrick of this License, Derivative Works shall not include works that remain 49*e5dd7070Spatrick separable from, or merely link (or bind by name) to the interfaces of, 50*e5dd7070Spatrick the Work and Derivative Works thereof. 51*e5dd7070Spatrick 52*e5dd7070Spatrick "Contribution" shall mean any work of authorship, including 53*e5dd7070Spatrick the original version of the Work and any modifications or additions 54*e5dd7070Spatrick to that Work or Derivative Works thereof, that is intentionally 55*e5dd7070Spatrick submitted to Licensor for inclusion in the Work by the copyright owner 56*e5dd7070Spatrick or by an individual or Legal Entity authorized to submit on behalf of 57*e5dd7070Spatrick the copyright owner. For the purposes of this definition, "submitted" 58*e5dd7070Spatrick means any form of electronic, verbal, or written communication sent 59*e5dd7070Spatrick to the Licensor or its representatives, including but not limited to 60*e5dd7070Spatrick communication on electronic mailing lists, source code control systems, 61*e5dd7070Spatrick and issue tracking systems that are managed by, or on behalf of, the 62*e5dd7070Spatrick Licensor for the purpose of discussing and improving the Work, but 63*e5dd7070Spatrick excluding communication that is conspicuously marked or otherwise 64*e5dd7070Spatrick designated in writing by the copyright owner as "Not a Contribution." 65*e5dd7070Spatrick 66*e5dd7070Spatrick "Contributor" shall mean Licensor and any individual or Legal Entity 67*e5dd7070Spatrick on behalf of whom a Contribution has been received by Licensor and 68*e5dd7070Spatrick subsequently incorporated within the Work. 69*e5dd7070Spatrick 70*e5dd7070Spatrick 2. Grant of Copyright License. Subject to the terms and conditions of 71*e5dd7070Spatrick this License, each Contributor hereby grants to You a perpetual, 72*e5dd7070Spatrick worldwide, non-exclusive, no-charge, royalty-free, irrevocable 73*e5dd7070Spatrick copyright license to reproduce, prepare Derivative Works of, 74*e5dd7070Spatrick publicly display, publicly perform, sublicense, and distribute the 75*e5dd7070Spatrick Work and such Derivative Works in Source or Object form. 76*e5dd7070Spatrick 77*e5dd7070Spatrick 3. Grant of Patent License. Subject to the terms and conditions of 78*e5dd7070Spatrick this License, each Contributor hereby grants to You a perpetual, 79*e5dd7070Spatrick worldwide, non-exclusive, no-charge, royalty-free, irrevocable 80*e5dd7070Spatrick (except as stated in this section) patent license to make, have made, 81*e5dd7070Spatrick use, offer to sell, sell, import, and otherwise transfer the Work, 82*e5dd7070Spatrick where such license applies only to those patent claims licensable 83*e5dd7070Spatrick by such Contributor that are necessarily infringed by their 84*e5dd7070Spatrick Contribution(s) alone or by combination of their Contribution(s) 85*e5dd7070Spatrick with the Work to which such Contribution(s) was submitted. If You 86*e5dd7070Spatrick institute patent litigation against any entity (including a 87*e5dd7070Spatrick cross-claim or counterclaim in a lawsuit) alleging that the Work 88*e5dd7070Spatrick or a Contribution incorporated within the Work constitutes direct 89*e5dd7070Spatrick or contributory patent infringement, then any patent licenses 90*e5dd7070Spatrick granted to You under this License for that Work shall terminate 91*e5dd7070Spatrick as of the date such litigation is filed. 92*e5dd7070Spatrick 93*e5dd7070Spatrick 4. Redistribution. You may reproduce and distribute copies of the 94*e5dd7070Spatrick Work or Derivative Works thereof in any medium, with or without 95*e5dd7070Spatrick modifications, and in Source or Object form, provided that You 96*e5dd7070Spatrick meet the following conditions: 97*e5dd7070Spatrick 98*e5dd7070Spatrick (a) You must give any other recipients of the Work or 99*e5dd7070Spatrick Derivative Works a copy of this License; and 100*e5dd7070Spatrick 101*e5dd7070Spatrick (b) You must cause any modified files to carry prominent notices 102*e5dd7070Spatrick stating that You changed the files; and 103*e5dd7070Spatrick 104*e5dd7070Spatrick (c) You must retain, in the Source form of any Derivative Works 105*e5dd7070Spatrick that You distribute, all copyright, patent, trademark, and 106*e5dd7070Spatrick attribution notices from the Source form of the Work, 107*e5dd7070Spatrick excluding those notices that do not pertain to any part of 108*e5dd7070Spatrick the Derivative Works; and 109*e5dd7070Spatrick 110*e5dd7070Spatrick (d) If the Work includes a "NOTICE" text file as part of its 111*e5dd7070Spatrick distribution, then any Derivative Works that You distribute must 112*e5dd7070Spatrick include a readable copy of the attribution notices contained 113*e5dd7070Spatrick within such NOTICE file, excluding those notices that do not 114*e5dd7070Spatrick pertain to any part of the Derivative Works, in at least one 115*e5dd7070Spatrick of the following places: within a NOTICE text file distributed 116*e5dd7070Spatrick as part of the Derivative Works; within the Source form or 117*e5dd7070Spatrick documentation, if provided along with the Derivative Works; or, 118*e5dd7070Spatrick within a display generated by the Derivative Works, if and 119*e5dd7070Spatrick wherever such third-party notices normally appear. The contents 120*e5dd7070Spatrick of the NOTICE file are for informational purposes only and 121*e5dd7070Spatrick do not modify the License. You may add Your own attribution 122*e5dd7070Spatrick notices within Derivative Works that You distribute, alongside 123*e5dd7070Spatrick or as an addendum to the NOTICE text from the Work, provided 124*e5dd7070Spatrick that such additional attribution notices cannot be construed 125*e5dd7070Spatrick as modifying the License. 126*e5dd7070Spatrick 127*e5dd7070Spatrick You may add Your own copyright statement to Your modifications and 128*e5dd7070Spatrick may provide additional or different license terms and conditions 129*e5dd7070Spatrick for use, reproduction, or distribution of Your modifications, or 130*e5dd7070Spatrick for any such Derivative Works as a whole, provided Your use, 131*e5dd7070Spatrick reproduction, and distribution of the Work otherwise complies with 132*e5dd7070Spatrick the conditions stated in this License. 133*e5dd7070Spatrick 134*e5dd7070Spatrick 5. Submission of Contributions. Unless You explicitly state otherwise, 135*e5dd7070Spatrick any Contribution intentionally submitted for inclusion in the Work 136*e5dd7070Spatrick by You to the Licensor shall be under the terms and conditions of 137*e5dd7070Spatrick this License, without any additional terms or conditions. 138*e5dd7070Spatrick Notwithstanding the above, nothing herein shall supersede or modify 139*e5dd7070Spatrick the terms of any separate license agreement you may have executed 140*e5dd7070Spatrick with Licensor regarding such Contributions. 141*e5dd7070Spatrick 142*e5dd7070Spatrick 6. Trademarks. This License does not grant permission to use the trade 143*e5dd7070Spatrick names, trademarks, service marks, or product names of the Licensor, 144*e5dd7070Spatrick except as required for reasonable and customary use in describing the 145*e5dd7070Spatrick origin of the Work and reproducing the content of the NOTICE file. 146*e5dd7070Spatrick 147*e5dd7070Spatrick 7. Disclaimer of Warranty. Unless required by applicable law or 148*e5dd7070Spatrick agreed to in writing, Licensor provides the Work (and each 149*e5dd7070Spatrick Contributor provides its Contributions) on an "AS IS" BASIS, 150*e5dd7070Spatrick WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 151*e5dd7070Spatrick implied, including, without limitation, any warranties or conditions 152*e5dd7070Spatrick of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 153*e5dd7070Spatrick PARTICULAR PURPOSE. You are solely responsible for determining the 154*e5dd7070Spatrick appropriateness of using or redistributing the Work and assume any 155*e5dd7070Spatrick risks associated with Your exercise of permissions under this License. 156*e5dd7070Spatrick 157*e5dd7070Spatrick 8. Limitation of Liability. In no event and under no legal theory, 158*e5dd7070Spatrick whether in tort (including negligence), contract, or otherwise, 159*e5dd7070Spatrick unless required by applicable law (such as deliberate and grossly 160*e5dd7070Spatrick negligent acts) or agreed to in writing, shall any Contributor be 161*e5dd7070Spatrick liable to You for damages, including any direct, indirect, special, 162*e5dd7070Spatrick incidental, or consequential damages of any character arising as a 163*e5dd7070Spatrick result of this License or out of the use or inability to use the 164*e5dd7070Spatrick Work (including but not limited to damages for loss of goodwill, 165*e5dd7070Spatrick work stoppage, computer failure or malfunction, or any and all 166*e5dd7070Spatrick other commercial damages or losses), even if such Contributor 167*e5dd7070Spatrick has been advised of the possibility of such damages. 168*e5dd7070Spatrick 169*e5dd7070Spatrick 9. Accepting Warranty or Additional Liability. While redistributing 170*e5dd7070Spatrick the Work or Derivative Works thereof, You may choose to offer, 171*e5dd7070Spatrick and charge a fee for, acceptance of support, warranty, indemnity, 172*e5dd7070Spatrick or other liability obligations and/or rights consistent with this 173*e5dd7070Spatrick License. However, in accepting such obligations, You may act only 174*e5dd7070Spatrick on Your own behalf and on Your sole responsibility, not on behalf 175*e5dd7070Spatrick of any other Contributor, and only if You agree to indemnify, 176*e5dd7070Spatrick defend, and hold each Contributor harmless for any liability 177*e5dd7070Spatrick incurred by, or claims asserted against, such Contributor by reason 178*e5dd7070Spatrick of your accepting any such warranty or additional liability. 179*e5dd7070Spatrick 180*e5dd7070Spatrick END OF TERMS AND CONDITIONS 181*e5dd7070Spatrick 182*e5dd7070Spatrick APPENDIX: How to apply the Apache License to your work. 183*e5dd7070Spatrick 184*e5dd7070Spatrick To apply the Apache License to your work, attach the following 185*e5dd7070Spatrick boilerplate notice, with the fields enclosed by brackets "[]" 186*e5dd7070Spatrick replaced with your own identifying information. (Don't include 187*e5dd7070Spatrick the brackets!) The text should be enclosed in the appropriate 188*e5dd7070Spatrick comment syntax for the file format. We also recommend that a 189*e5dd7070Spatrick file or class name and description of purpose be included on the 190*e5dd7070Spatrick same "printed page" as the copyright notice for easier 191*e5dd7070Spatrick identification within third-party archives. 192*e5dd7070Spatrick 193*e5dd7070Spatrick Copyright [yyyy] [name of copyright owner] 194*e5dd7070Spatrick 195*e5dd7070Spatrick Licensed under the Apache License, Version 2.0 (the "License"); 196*e5dd7070Spatrick you may not use this file except in compliance with the License. 197*e5dd7070Spatrick You may obtain a copy of the License at 198*e5dd7070Spatrick 199*e5dd7070Spatrick http://www.apache.org/licenses/LICENSE-2.0 200*e5dd7070Spatrick 201*e5dd7070Spatrick Unless required by applicable law or agreed to in writing, software 202*e5dd7070Spatrick distributed under the License is distributed on an "AS IS" BASIS, 203*e5dd7070Spatrick WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 204*e5dd7070Spatrick See the License for the specific language governing permissions and 205*e5dd7070Spatrick limitations under the License. 206*e5dd7070Spatrick 207*e5dd7070Spatrick 208*e5dd7070Spatrick---- LLVM Exceptions to the Apache 2.0 License ---- 209*e5dd7070Spatrick 210*e5dd7070SpatrickAs an exception, if, as a result of your compiling your source code, portions 211*e5dd7070Spatrickof this Software are embedded into an Object form of such source code, you 212*e5dd7070Spatrickmay redistribute such embedded portions in such Object form without complying 213*e5dd7070Spatrickwith the conditions of Sections 4(a), 4(b) and 4(d) of the License. 214*e5dd7070Spatrick 215*e5dd7070SpatrickIn addition, if you combine or link compiled forms of this Software with 216*e5dd7070Spatricksoftware that is licensed under the GPLv2 ("Combined Software") and if a 217*e5dd7070Spatrickcourt of competent jurisdiction determines that the patent provision (Section 218*e5dd7070Spatrick3), the indemnity provision (Section 9) or other Section of the License 219*e5dd7070Spatrickconflicts with the conditions of the GPLv2, you may retroactively and 220*e5dd7070Spatrickprospectively choose to deem waived or otherwise exclude such Section(s) of 221*e5dd7070Spatrickthe License, but only in their entirety and only with respect to the Combined 222*e5dd7070SpatrickSoftware. 223*e5dd7070Spatrick 224*e5dd7070Spatrick============================================================================== 225*e5dd7070SpatrickSoftware from third parties included in the LLVM Project: 226*e5dd7070Spatrick============================================================================== 227*e5dd7070SpatrickThe LLVM Project contains third party software which is under different license 228*e5dd7070Spatrickterms. All such code will be identified clearly using at least one of two 229*e5dd7070Spatrickmechanisms: 230*e5dd7070Spatrick1) It will be in a separate directory tree with its own `LICENSE.txt` or 231*e5dd7070Spatrick `LICENSE` file at the top containing the specific license and restrictions 232*e5dd7070Spatrick which apply to that software, or 233*e5dd7070Spatrick2) It will contain specific license and restriction terms at the top of every 234*e5dd7070Spatrick file. 235*e5dd7070Spatrick 236*e5dd7070Spatrick============================================================================== 237*e5dd7070SpatrickLegacy LLVM License (https://llvm.org/docs/DeveloperPolicy.html#legacy): 238*e5dd7070Spatrick============================================================================== 239*e5dd7070SpatrickUniversity of Illinois/NCSA 240*e5dd7070SpatrickOpen Source License 241*e5dd7070Spatrick 242*e5dd7070SpatrickCopyright (c) 2007-2018 University of Illinois at Urbana-Champaign. 243*e5dd7070SpatrickAll rights reserved. 244*e5dd7070Spatrick 245*e5dd7070SpatrickDeveloped by: 246*e5dd7070Spatrick 247*e5dd7070Spatrick LLVM Team 248*e5dd7070Spatrick 249*e5dd7070Spatrick University of Illinois at Urbana-Champaign 250*e5dd7070Spatrick 251*e5dd7070Spatrick http://llvm.org 252*e5dd7070Spatrick 253*e5dd7070SpatrickPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal with the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 254*e5dd7070Spatrick 255*e5dd7070Spatrick * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimers. 256*e5dd7070Spatrick 257*e5dd7070Spatrick * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimers in the documentation and/or other materials provided with the distribution. 258*e5dd7070Spatrick 259*e5dd7070Spatrick * Neither the names of the LLVM Team, University of Illinois at Urbana-Champaign, nor the names of its contributors may be used to endorse or promote products derived from this Software without specific prior written permission. 260*e5dd7070Spatrick 261*e5dd7070SpatrickTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE SOFTWARE. 262