1============================================================================== 2The LLVM Project is under the Apache License v2.0 with LLVM Exceptions: 3============================================================================== 4 5 Apache License 6 Version 2.0, January 2004 7 http://www.apache.org/licenses/ 8 9 TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 10 11 1. Definitions. 12 13 "License" shall mean the terms and conditions for use, reproduction, 14 and distribution as defined by Sections 1 through 9 of this document. 15 16 "Licensor" shall mean the copyright owner or entity authorized by 17 the copyright owner that is granting the License. 18 19 "Legal Entity" shall mean the union of the acting entity and all 20 other entities that control, are controlled by, or are under common 21 control with that entity. For the purposes of this definition, 22 "control" means (i) the power, direct or indirect, to cause the 23 direction or management of such entity, whether by contract or 24 otherwise, or (ii) ownership of fifty percent (50%) or more of the 25 outstanding shares, or (iii) beneficial ownership of such entity. 26 27 "You" (or "Your") shall mean an individual or Legal Entity 28 exercising permissions granted by this License. 29 30 "Source" form shall mean the preferred form for making modifications, 31 including but not limited to software source code, documentation 32 source, and configuration files. 33 34 "Object" form shall mean any form resulting from mechanical 35 transformation or translation of a Source form, including but 36 not limited to compiled object code, generated documentation, 37 and conversions to other media types. 38 39 "Work" shall mean the work of authorship, whether in Source or 40 Object form, made available under the License, as indicated by a 41 copyright notice that is included in or attached to the work 42 (an example is provided in the Appendix below). 43 44 "Derivative Works" shall mean any work, whether in Source or Object 45 form, that is based on (or derived from) the Work and for which the 46 editorial revisions, annotations, elaborations, or other modifications 47 represent, as a whole, an original work of authorship. For the purposes 48 of this License, Derivative Works shall not include works that remain 49 separable from, or merely link (or bind by name) to the interfaces of, 50 the Work and Derivative Works thereof. 51 52 "Contribution" shall mean any work of authorship, including 53 the original version of the Work and any modifications or additions 54 to that Work or Derivative Works thereof, that is intentionally 55 submitted to Licensor for inclusion in the Work by the copyright owner 56 or by an individual or Legal Entity authorized to submit on behalf of 57 the copyright owner. For the purposes of this definition, "submitted" 58 means any form of electronic, verbal, or written communication sent 59 to the Licensor or its representatives, including but not limited to 60 communication on electronic mailing lists, source code control systems, 61 and issue tracking systems that are managed by, or on behalf of, the 62 Licensor for the purpose of discussing and improving the Work, but 63 excluding communication that is conspicuously marked or otherwise 64 designated in writing by the copyright owner as "Not a Contribution." 65 66 "Contributor" shall mean Licensor and any individual or Legal Entity 67 on behalf of whom a Contribution has been received by Licensor and 68 subsequently incorporated within the Work. 69 70 2. Grant of Copyright License. Subject to the terms and conditions of 71 this License, each Contributor hereby grants to You a perpetual, 72 worldwide, non-exclusive, no-charge, royalty-free, irrevocable 73 copyright license to reproduce, prepare Derivative Works of, 74 publicly display, publicly perform, sublicense, and distribute the 75 Work and such Derivative Works in Source or Object form. 76 77 3. Grant of Patent License. Subject to the terms and conditions of 78 this License, each Contributor hereby grants to You a perpetual, 79 worldwide, non-exclusive, no-charge, royalty-free, irrevocable 80 (except as stated in this section) patent license to make, have made, 81 use, offer to sell, sell, import, and otherwise transfer the Work, 82 where such license applies only to those patent claims licensable 83 by such Contributor that are necessarily infringed by their 84 Contribution(s) alone or by combination of their Contribution(s) 85 with the Work to which such Contribution(s) was submitted. If You 86 institute patent litigation against any entity (including a 87 cross-claim or counterclaim in a lawsuit) alleging that the Work 88 or a Contribution incorporated within the Work constitutes direct 89 or contributory patent infringement, then any patent licenses 90 granted to You under this License for that Work shall terminate 91 as of the date such litigation is filed. 92 93 4. Redistribution. You may reproduce and distribute copies of the 94 Work or Derivative Works thereof in any medium, with or without 95 modifications, and in Source or Object form, provided that You 96 meet the following conditions: 97 98 (a) You must give any other recipients of the Work or 99 Derivative Works a copy of this License; and 100 101 (b) You must cause any modified files to carry prominent notices 102 stating that You changed the files; and 103 104 (c) You must retain, in the Source form of any Derivative Works 105 that You distribute, all copyright, patent, trademark, and 106 attribution notices from the Source form of the Work, 107 excluding those notices that do not pertain to any part of 108 the Derivative Works; and 109 110 (d) If the Work includes a "NOTICE" text file as part of its 111 distribution, then any Derivative Works that You distribute must 112 include a readable copy of the attribution notices contained 113 within such NOTICE file, excluding those notices that do not 114 pertain to any part of the Derivative Works, in at least one 115 of the following places: within a NOTICE text file distributed 116 as part of the Derivative Works; within the Source form or 117 documentation, if provided along with the Derivative Works; or, 118 within a display generated by the Derivative Works, if and 119 wherever such third-party notices normally appear. The contents 120 of the NOTICE file are for informational purposes only and 121 do not modify the License. You may add Your own attribution 122 notices within Derivative Works that You distribute, alongside 123 or as an addendum to the NOTICE text from the Work, provided 124 that such additional attribution notices cannot be construed 125 as modifying the License. 126 127 You may add Your own copyright statement to Your modifications and 128 may provide additional or different license terms and conditions 129 for use, reproduction, or distribution of Your modifications, or 130 for any such Derivative Works as a whole, provided Your use, 131 reproduction, and distribution of the Work otherwise complies with 132 the conditions stated in this License. 133 134 5. Submission of Contributions. Unless You explicitly state otherwise, 135 any Contribution intentionally submitted for inclusion in the Work 136 by You to the Licensor shall be under the terms and conditions of 137 this License, without any additional terms or conditions. 138 Notwithstanding the above, nothing herein shall supersede or modify 139 the terms of any separate license agreement you may have executed 140 with Licensor regarding such Contributions. 141 142 6. Trademarks. This License does not grant permission to use the trade 143 names, trademarks, service marks, or product names of the Licensor, 144 except as required for reasonable and customary use in describing the 145 origin of the Work and reproducing the content of the NOTICE file. 146 147 7. Disclaimer of Warranty. Unless required by applicable law or 148 agreed to in writing, Licensor provides the Work (and each 149 Contributor provides its Contributions) on an "AS IS" BASIS, 150 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 151 implied, including, without limitation, any warranties or conditions 152 of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 153 PARTICULAR PURPOSE. You are solely responsible for determining the 154 appropriateness of using or redistributing the Work and assume any 155 risks associated with Your exercise of permissions under this License. 156 157 8. Limitation of Liability. In no event and under no legal theory, 158 whether in tort (including negligence), contract, or otherwise, 159 unless required by applicable law (such as deliberate and grossly 160 negligent acts) or agreed to in writing, shall any Contributor be 161 liable to You for damages, including any direct, indirect, special, 162 incidental, or consequential damages of any character arising as a 163 result of this License or out of the use or inability to use the 164 Work (including but not limited to damages for loss of goodwill, 165 work stoppage, computer failure or malfunction, or any and all 166 other commercial damages or losses), even if such Contributor 167 has been advised of the possibility of such damages. 168 169 9. Accepting Warranty or Additional Liability. While redistributing 170 the Work or Derivative Works thereof, You may choose to offer, 171 and charge a fee for, acceptance of support, warranty, indemnity, 172 or other liability obligations and/or rights consistent with this 173 License. However, in accepting such obligations, You may act only 174 on Your own behalf and on Your sole responsibility, not on behalf 175 of any other Contributor, and only if You agree to indemnify, 176 defend, and hold each Contributor harmless for any liability 177 incurred by, or claims asserted against, such Contributor by reason 178 of your accepting any such warranty or additional liability. 179 180 END OF TERMS AND CONDITIONS 181 182 APPENDIX: How to apply the Apache License to your work. 183 184 To apply the Apache License to your work, attach the following 185 boilerplate notice, with the fields enclosed by brackets "[]" 186 replaced with your own identifying information. (Don't include 187 the brackets!) The text should be enclosed in the appropriate 188 comment syntax for the file format. We also recommend that a 189 file or class name and description of purpose be included on the 190 same "printed page" as the copyright notice for easier 191 identification within third-party archives. 192 193 Copyright [yyyy] [name of copyright owner] 194 195 Licensed under the Apache License, Version 2.0 (the "License"); 196 you may not use this file except in compliance with the License. 197 You may obtain a copy of the License at 198 199 http://www.apache.org/licenses/LICENSE-2.0 200 201 Unless required by applicable law or agreed to in writing, software 202 distributed under the License is distributed on an "AS IS" BASIS, 203 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 204 See the License for the specific language governing permissions and 205 limitations under the License. 206 207 208---- LLVM Exceptions to the Apache 2.0 License ---- 209 210As an exception, if, as a result of your compiling your source code, portions 211of this Software are embedded into an Object form of such source code, you 212may redistribute such embedded portions in such Object form without complying 213with the conditions of Sections 4(a), 4(b) and 4(d) of the License. 214 215In addition, if you combine or link compiled forms of this Software with 216software that is licensed under the GPLv2 ("Combined Software") and if a 217court of competent jurisdiction determines that the patent provision (Section 2183), the indemnity provision (Section 9) or other Section of the License 219conflicts with the conditions of the GPLv2, you may retroactively and 220prospectively choose to deem waived or otherwise exclude such Section(s) of 221the License, but only in their entirety and only with respect to the Combined 222Software. 223 224============================================================================== 225Software from third parties included in the LLVM Project: 226============================================================================== 227The LLVM Project contains third party software which is under different license 228terms. All such code will be identified clearly using at least one of two 229mechanisms: 2301) It will be in a separate directory tree with its own `LICENSE.txt` or 231 `LICENSE` file at the top containing the specific license and restrictions 232 which apply to that software, or 2332) It will contain specific license and restriction terms at the top of every 234 file. 235 236============================================================================== 237Legacy LLVM License (https://llvm.org/docs/DeveloperPolicy.html#legacy): 238============================================================================== 239University of Illinois/NCSA 240Open Source License 241 242Copyright (c) 2003-2019 University of Illinois at Urbana-Champaign. 243All rights reserved. 244 245Developed by: 246 247 LLVM Team 248 249 University of Illinois at Urbana-Champaign 250 251 http://llvm.org 252 253Permission is hereby granted, free of charge, to any person obtaining a copy of 254this software and associated documentation files (the "Software"), to deal with 255the Software without restriction, including without limitation the rights to 256use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 257of the Software, and to permit persons to whom the Software is furnished to do 258so, subject to the following conditions: 259 260 * Redistributions of source code must retain the above copyright notice, 261 this list of conditions and the following disclaimers. 262 263 * Redistributions in binary form must reproduce the above copyright notice, 264 this list of conditions and the following disclaimers in the 265 documentation and/or other materials provided with the distribution. 266 267 * Neither the names of the LLVM Team, University of Illinois at 268 Urbana-Champaign, nor the names of its contributors may be used to 269 endorse or promote products derived from this Software without specific 270 prior written permission. 271 272THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 273IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 274FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 275CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 276LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 277OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE 278SOFTWARE. 279 280 281============================================================================== 282The LLVM Project is under the Apache License v2.0 with LLVM Exceptions: 283============================================================================== 284 285 Apache License 286 Version 2.0, January 2004 287 http://www.apache.org/licenses/ 288 289 TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 290 291 1. Definitions. 292 293 "License" shall mean the terms and conditions for use, reproduction, 294 and distribution as defined by Sections 1 through 9 of this document. 295 296 "Licensor" shall mean the copyright owner or entity authorized by 297 the copyright owner that is granting the License. 298 299 "Legal Entity" shall mean the union of the acting entity and all 300 other entities that control, are controlled by, or are under common 301 control with that entity. For the purposes of this definition, 302 "control" means (i) the power, direct or indirect, to cause the 303 direction or management of such entity, whether by contract or 304 otherwise, or (ii) ownership of fifty percent (50%) or more of the 305 outstanding shares, or (iii) beneficial ownership of such entity. 306 307 "You" (or "Your") shall mean an individual or Legal Entity 308 exercising permissions granted by this License. 309 310 "Source" form shall mean the preferred form for making modifications, 311 including but not limited to software source code, documentation 312 source, and configuration files. 313 314 "Object" form shall mean any form resulting from mechanical 315 transformation or translation of a Source form, including but 316 not limited to compiled object code, generated documentation, 317 and conversions to other media types. 318 319 "Work" shall mean the work of authorship, whether in Source or 320 Object form, made available under the License, as indicated by a 321 copyright notice that is included in or attached to the work 322 (an example is provided in the Appendix below). 323 324 "Derivative Works" shall mean any work, whether in Source or Object 325 form, that is based on (or derived from) the Work and for which the 326 editorial revisions, annotations, elaborations, or other modifications 327 represent, as a whole, an original work of authorship. For the purposes 328 of this License, Derivative Works shall not include works that remain 329 separable from, or merely link (or bind by name) to the interfaces of, 330 the Work and Derivative Works thereof. 331 332 "Contribution" shall mean any work of authorship, including 333 the original version of the Work and any modifications or additions 334 to that Work or Derivative Works thereof, that is intentionally 335 submitted to Licensor for inclusion in the Work by the copyright owner 336 or by an individual or Legal Entity authorized to submit on behalf of 337 the copyright owner. For the purposes of this definition, "submitted" 338 means any form of electronic, verbal, or written communication sent 339 to the Licensor or its representatives, including but not limited to 340 communication on electronic mailing lists, source code control systems, 341 and issue tracking systems that are managed by, or on behalf of, the 342 Licensor for the purpose of discussing and improving the Work, but 343 excluding communication that is conspicuously marked or otherwise 344 designated in writing by the copyright owner as "Not a Contribution." 345 346 "Contributor" shall mean Licensor and any individual or Legal Entity 347 on behalf of whom a Contribution has been received by Licensor and 348 subsequently incorporated within the Work. 349 350 2. Grant of Copyright License. Subject to the terms and conditions of 351 this License, each Contributor hereby grants to You a perpetual, 352 worldwide, non-exclusive, no-charge, royalty-free, irrevocable 353 copyright license to reproduce, prepare Derivative Works of, 354 publicly display, publicly perform, sublicense, and distribute the 355 Work and such Derivative Works in Source or Object form. 356 357 3. Grant of Patent License. Subject to the terms and conditions of 358 this License, each Contributor hereby grants to You a perpetual, 359 worldwide, non-exclusive, no-charge, royalty-free, irrevocable 360 (except as stated in this section) patent license to make, have made, 361 use, offer to sell, sell, import, and otherwise transfer the Work, 362 where such license applies only to those patent claims licensable 363 by such Contributor that are necessarily infringed by their 364 Contribution(s) alone or by combination of their Contribution(s) 365 with the Work to which such Contribution(s) was submitted. If You 366 institute patent litigation against any entity (including a 367 cross-claim or counterclaim in a lawsuit) alleging that the Work 368 or a Contribution incorporated within the Work constitutes direct 369 or contributory patent infringement, then any patent licenses 370 granted to You under this License for that Work shall terminate 371 as of the date such litigation is filed. 372 373 4. Redistribution. You may reproduce and distribute copies of the 374 Work or Derivative Works thereof in any medium, with or without 375 modifications, and in Source or Object form, provided that You 376 meet the following conditions: 377 378 (a) You must give any other recipients of the Work or 379 Derivative Works a copy of this License; and 380 381 (b) You must cause any modified files to carry prominent notices 382 stating that You changed the files; and 383 384 (c) You must retain, in the Source form of any Derivative Works 385 that You distribute, all copyright, patent, trademark, and 386 attribution notices from the Source form of the Work, 387 excluding those notices that do not pertain to any part of 388 the Derivative Works; and 389 390 (d) If the Work includes a "NOTICE" text file as part of its 391 distribution, then any Derivative Works that You distribute must 392 include a readable copy of the attribution notices contained 393 within such NOTICE file, excluding those notices that do not 394 pertain to any part of the Derivative Works, in at least one 395 of the following places: within a NOTICE text file distributed 396 as part of the Derivative Works; within the Source form or 397 documentation, if provided along with the Derivative Works; or, 398 within a display generated by the Derivative Works, if and 399 wherever such third-party notices normally appear. The contents 400 of the NOTICE file are for informational purposes only and 401 do not modify the License. You may add Your own attribution 402 notices within Derivative Works that You distribute, alongside 403 or as an addendum to the NOTICE text from the Work, provided 404 that such additional attribution notices cannot be construed 405 as modifying the License. 406 407 You may add Your own copyright statement to Your modifications and 408 may provide additional or different license terms and conditions 409 for use, reproduction, or distribution of Your modifications, or 410 for any such Derivative Works as a whole, provided Your use, 411 reproduction, and distribution of the Work otherwise complies with 412 the conditions stated in this License. 413 414 5. Submission of Contributions. Unless You explicitly state otherwise, 415 any Contribution intentionally submitted for inclusion in the Work 416 by You to the Licensor shall be under the terms and conditions of 417 this License, without any additional terms or conditions. 418 Notwithstanding the above, nothing herein shall supersede or modify 419 the terms of any separate license agreement you may have executed 420 with Licensor regarding such Contributions. 421 422 6. Trademarks. This License does not grant permission to use the trade 423 names, trademarks, service marks, or product names of the Licensor, 424 except as required for reasonable and customary use in describing the 425 origin of the Work and reproducing the content of the NOTICE file. 426 427 7. Disclaimer of Warranty. Unless required by applicable law or 428 agreed to in writing, Licensor provides the Work (and each 429 Contributor provides its Contributions) on an "AS IS" BASIS, 430 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 431 implied, including, without limitation, any warranties or conditions 432 of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 433 PARTICULAR PURPOSE. You are solely responsible for determining the 434 appropriateness of using or redistributing the Work and assume any 435 risks associated with Your exercise of permissions under this License. 436 437 8. Limitation of Liability. In no event and under no legal theory, 438 whether in tort (including negligence), contract, or otherwise, 439 unless required by applicable law (such as deliberate and grossly 440 negligent acts) or agreed to in writing, shall any Contributor be 441 liable to You for damages, including any direct, indirect, special, 442 incidental, or consequential damages of any character arising as a 443 result of this License or out of the use or inability to use the 444 Work (including but not limited to damages for loss of goodwill, 445 work stoppage, computer failure or malfunction, or any and all 446 other commercial damages or losses), even if such Contributor 447 has been advised of the possibility of such damages. 448 449 9. Accepting Warranty or Additional Liability. While redistributing 450 the Work or Derivative Works thereof, You may choose to offer, 451 and charge a fee for, acceptance of support, warranty, indemnity, 452 or other liability obligations and/or rights consistent with this 453 License. However, in accepting such obligations, You may act only 454 on Your own behalf and on Your sole responsibility, not on behalf 455 of any other Contributor, and only if You agree to indemnify, 456 defend, and hold each Contributor harmless for any liability 457 incurred by, or claims asserted against, such Contributor by reason 458 of your accepting any such warranty or additional liability. 459 460 END OF TERMS AND CONDITIONS 461 462 APPENDIX: How to apply the Apache License to your work. 463 464 To apply the Apache License to your work, attach the following 465 boilerplate notice, with the fields enclosed by brackets "[]" 466 replaced with your own identifying information. (Don't include 467 the brackets!) The text should be enclosed in the appropriate 468 comment syntax for the file format. We also recommend that a 469 file or class name and description of purpose be included on the 470 same "printed page" as the copyright notice for easier 471 identification within third-party archives. 472 473 Copyright [yyyy] [name of copyright owner] 474 475 Licensed under the Apache License, Version 2.0 (the "License"); 476 you may not use this file except in compliance with the License. 477 You may obtain a copy of the License at 478 479 http://www.apache.org/licenses/LICENSE-2.0 480 481 Unless required by applicable law or agreed to in writing, software 482 distributed under the License is distributed on an "AS IS" BASIS, 483 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 484 See the License for the specific language governing permissions and 485 limitations under the License. 486 487 488---- LLVM Exceptions to the Apache 2.0 License ---- 489 490As an exception, if, as a result of your compiling your source code, portions 491of this Software are embedded into an Object form of such source code, you 492may redistribute such embedded portions in such Object form without complying 493with the conditions of Sections 4(a), 4(b) and 4(d) of the License. 494 495In addition, if you combine or link compiled forms of this Software with 496software that is licensed under the GPLv2 ("Combined Software") and if a 497court of competent jurisdiction determines that the patent provision (Section 4983), the indemnity provision (Section 9) or other Section of the License 499conflicts with the conditions of the GPLv2, you may retroactively and 500prospectively choose to deem waived or otherwise exclude such Section(s) of 501the License, but only in their entirety and only with respect to the Combined 502Software. 503 504============================================================================== 505Software from third parties included in the LLVM Project: 506============================================================================== 507The LLVM Project contains third party software which is under different license 508terms. All such code will be identified clearly using at least one of two 509mechanisms: 5101) It will be in a separate directory tree with its own `LICENSE.txt` or 511 `LICENSE` file at the top containing the specific license and restrictions 512 which apply to that software, or 5132) It will contain specific license and restriction terms at the top of every 514 file. 515 516============================================================================== 517Legacy LLVM License (https://llvm.org/docs/DeveloperPolicy.html#legacy): 518============================================================================== 519 520The compiler_rt library is dual licensed under both the University of Illinois 521"BSD-Like" license and the MIT license. As a user of this code you may choose 522to use it under either license. As a contributor, you agree to allow your code 523to be used under both. 524 525Full text of the relevant licenses is included below. 526 527============================================================================== 528 529University of Illinois/NCSA 530Open Source License 531 532Copyright (c) 2009-2019 by the contributors listed in CREDITS.TXT 533 534All rights reserved. 535 536Developed by: 537 538 LLVM Team 539 540 University of Illinois at Urbana-Champaign 541 542 http://llvm.org 543 544Permission is hereby granted, free of charge, to any person obtaining a copy of 545this software and associated documentation files (the "Software"), to deal with 546the Software without restriction, including without limitation the rights to 547use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 548of the Software, and to permit persons to whom the Software is furnished to do 549so, subject to the following conditions: 550 551 * Redistributions of source code must retain the above copyright notice, 552 this list of conditions and the following disclaimers. 553 554 * Redistributions in binary form must reproduce the above copyright notice, 555 this list of conditions and the following disclaimers in the 556 documentation and/or other materials provided with the distribution. 557 558 * Neither the names of the LLVM Team, University of Illinois at 559 Urbana-Champaign, nor the names of its contributors may be used to 560 endorse or promote products derived from this Software without specific 561 prior written permission. 562 563THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 564IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 565FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 566CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 567LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 568OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE 569SOFTWARE. 570 571============================================================================== 572 573Copyright (c) 2009-2015 by the contributors listed in CREDITS.TXT 574 575Permission is hereby granted, free of charge, to any person obtaining a copy 576of this software and associated documentation files (the "Software"), to deal 577in the Software without restriction, including without limitation the rights 578to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 579copies of the Software, and to permit persons to whom the Software is 580furnished to do so, subject to the following conditions: 581 582The above copyright notice and this permission notice shall be included in 583all copies or substantial portions of the Software. 584 585THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 586IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 587FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 588AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 589LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 590OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 591THE SOFTWARE. 592 593============================================================================== 594The LLVM Project is under the Apache License v2.0 with LLVM Exceptions: 595============================================================================== 596 597 Apache License 598 Version 2.0, January 2004 599 http://www.apache.org/licenses/ 600 601 TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 602 603 1. Definitions. 604 605 "License" shall mean the terms and conditions for use, reproduction, 606 and distribution as defined by Sections 1 through 9 of this document. 607 608 "Licensor" shall mean the copyright owner or entity authorized by 609 the copyright owner that is granting the License. 610 611 "Legal Entity" shall mean the union of the acting entity and all 612 other entities that control, are controlled by, or are under common 613 control with that entity. For the purposes of this definition, 614 "control" means (i) the power, direct or indirect, to cause the 615 direction or management of such entity, whether by contract or 616 otherwise, or (ii) ownership of fifty percent (50%) or more of the 617 outstanding shares, or (iii) beneficial ownership of such entity. 618 619 "You" (or "Your") shall mean an individual or Legal Entity 620 exercising permissions granted by this License. 621 622 "Source" form shall mean the preferred form for making modifications, 623 including but not limited to software source code, documentation 624 source, and configuration files. 625 626 "Object" form shall mean any form resulting from mechanical 627 transformation or translation of a Source form, including but 628 not limited to compiled object code, generated documentation, 629 and conversions to other media types. 630 631 "Work" shall mean the work of authorship, whether in Source or 632 Object form, made available under the License, as indicated by a 633 copyright notice that is included in or attached to the work 634 (an example is provided in the Appendix below). 635 636 "Derivative Works" shall mean any work, whether in Source or Object 637 form, that is based on (or derived from) the Work and for which the 638 editorial revisions, annotations, elaborations, or other modifications 639 represent, as a whole, an original work of authorship. For the purposes 640 of this License, Derivative Works shall not include works that remain 641 separable from, or merely link (or bind by name) to the interfaces of, 642 the Work and Derivative Works thereof. 643 644 "Contribution" shall mean any work of authorship, including 645 the original version of the Work and any modifications or additions 646 to that Work or Derivative Works thereof, that is intentionally 647 submitted to Licensor for inclusion in the Work by the copyright owner 648 or by an individual or Legal Entity authorized to submit on behalf of 649 the copyright owner. For the purposes of this definition, "submitted" 650 means any form of electronic, verbal, or written communication sent 651 to the Licensor or its representatives, including but not limited to 652 communication on electronic mailing lists, source code control systems, 653 and issue tracking systems that are managed by, or on behalf of, the 654 Licensor for the purpose of discussing and improving the Work, but 655 excluding communication that is conspicuously marked or otherwise 656 designated in writing by the copyright owner as "Not a Contribution." 657 658 "Contributor" shall mean Licensor and any individual or Legal Entity 659 on behalf of whom a Contribution has been received by Licensor and 660 subsequently incorporated within the Work. 661 662 2. Grant of Copyright License. Subject to the terms and conditions of 663 this License, each Contributor hereby grants to You a perpetual, 664 worldwide, non-exclusive, no-charge, royalty-free, irrevocable 665 copyright license to reproduce, prepare Derivative Works of, 666 publicly display, publicly perform, sublicense, and distribute the 667 Work and such Derivative Works in Source or Object form. 668 669 3. Grant of Patent License. Subject to the terms and conditions of 670 this License, each Contributor hereby grants to You a perpetual, 671 worldwide, non-exclusive, no-charge, royalty-free, irrevocable 672 (except as stated in this section) patent license to make, have made, 673 use, offer to sell, sell, import, and otherwise transfer the Work, 674 where such license applies only to those patent claims licensable 675 by such Contributor that are necessarily infringed by their 676 Contribution(s) alone or by combination of their Contribution(s) 677 with the Work to which such Contribution(s) was submitted. If You 678 institute patent litigation against any entity (including a 679 cross-claim or counterclaim in a lawsuit) alleging that the Work 680 or a Contribution incorporated within the Work constitutes direct 681 or contributory patent infringement, then any patent licenses 682 granted to You under this License for that Work shall terminate 683 as of the date such litigation is filed. 684 685 4. Redistribution. You may reproduce and distribute copies of the 686 Work or Derivative Works thereof in any medium, with or without 687 modifications, and in Source or Object form, provided that You 688 meet the following conditions: 689 690 (a) You must give any other recipients of the Work or 691 Derivative Works a copy of this License; and 692 693 (b) You must cause any modified files to carry prominent notices 694 stating that You changed the files; and 695 696 (c) You must retain, in the Source form of any Derivative Works 697 that You distribute, all copyright, patent, trademark, and 698 attribution notices from the Source form of the Work, 699 excluding those notices that do not pertain to any part of 700 the Derivative Works; and 701 702 (d) If the Work includes a "NOTICE" text file as part of its 703 distribution, then any Derivative Works that You distribute must 704 include a readable copy of the attribution notices contained 705 within such NOTICE file, excluding those notices that do not 706 pertain to any part of the Derivative Works, in at least one 707 of the following places: within a NOTICE text file distributed 708 as part of the Derivative Works; within the Source form or 709 documentation, if provided along with the Derivative Works; or, 710 within a display generated by the Derivative Works, if and 711 wherever such third-party notices normally appear. The contents 712 of the NOTICE file are for informational purposes only and 713 do not modify the License. You may add Your own attribution 714 notices within Derivative Works that You distribute, alongside 715 or as an addendum to the NOTICE text from the Work, provided 716 that such additional attribution notices cannot be construed 717 as modifying the License. 718 719 You may add Your own copyright statement to Your modifications and 720 may provide additional or different license terms and conditions 721 for use, reproduction, or distribution of Your modifications, or 722 for any such Derivative Works as a whole, provided Your use, 723 reproduction, and distribution of the Work otherwise complies with 724 the conditions stated in this License. 725 726 5. Submission of Contributions. Unless You explicitly state otherwise, 727 any Contribution intentionally submitted for inclusion in the Work 728 by You to the Licensor shall be under the terms and conditions of 729 this License, without any additional terms or conditions. 730 Notwithstanding the above, nothing herein shall supersede or modify 731 the terms of any separate license agreement you may have executed 732 with Licensor regarding such Contributions. 733 734 6. Trademarks. This License does not grant permission to use the trade 735 names, trademarks, service marks, or product names of the Licensor, 736 except as required for reasonable and customary use in describing the 737 origin of the Work and reproducing the content of the NOTICE file. 738 739 7. Disclaimer of Warranty. Unless required by applicable law or 740 agreed to in writing, Licensor provides the Work (and each 741 Contributor provides its Contributions) on an "AS IS" BASIS, 742 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 743 implied, including, without limitation, any warranties or conditions 744 of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 745 PARTICULAR PURPOSE. You are solely responsible for determining the 746 appropriateness of using or redistributing the Work and assume any 747 risks associated with Your exercise of permissions under this License. 748 749 8. Limitation of Liability. In no event and under no legal theory, 750 whether in tort (including negligence), contract, or otherwise, 751 unless required by applicable law (such as deliberate and grossly 752 negligent acts) or agreed to in writing, shall any Contributor be 753 liable to You for damages, including any direct, indirect, special, 754 incidental, or consequential damages of any character arising as a 755 result of this License or out of the use or inability to use the 756 Work (including but not limited to damages for loss of goodwill, 757 work stoppage, computer failure or malfunction, or any and all 758 other commercial damages or losses), even if such Contributor 759 has been advised of the possibility of such damages. 760 761 9. Accepting Warranty or Additional Liability. While redistributing 762 the Work or Derivative Works thereof, You may choose to offer, 763 and charge a fee for, acceptance of support, warranty, indemnity, 764 or other liability obligations and/or rights consistent with this 765 License. However, in accepting such obligations, You may act only 766 on Your own behalf and on Your sole responsibility, not on behalf 767 of any other Contributor, and only if You agree to indemnify, 768 defend, and hold each Contributor harmless for any liability 769 incurred by, or claims asserted against, such Contributor by reason 770 of your accepting any such warranty or additional liability. 771 772 END OF TERMS AND CONDITIONS 773 774 APPENDIX: How to apply the Apache License to your work. 775 776 To apply the Apache License to your work, attach the following 777 boilerplate notice, with the fields enclosed by brackets "[]" 778 replaced with your own identifying information. (Don't include 779 the brackets!) The text should be enclosed in the appropriate 780 comment syntax for the file format. We also recommend that a 781 file or class name and description of purpose be included on the 782 same "printed page" as the copyright notice for easier 783 identification within third-party archives. 784 785 Copyright [yyyy] [name of copyright owner] 786 787 Licensed under the Apache License, Version 2.0 (the "License"); 788 you may not use this file except in compliance with the License. 789 You may obtain a copy of the License at 790 791 http://www.apache.org/licenses/LICENSE-2.0 792 793 Unless required by applicable law or agreed to in writing, software 794 distributed under the License is distributed on an "AS IS" BASIS, 795 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 796 See the License for the specific language governing permissions and 797 limitations under the License. 798 799 800---- LLVM Exceptions to the Apache 2.0 License ---- 801 802As an exception, if, as a result of your compiling your source code, portions 803of this Software are embedded into an Object form of such source code, you 804may redistribute such embedded portions in such Object form without complying 805with the conditions of Sections 4(a), 4(b) and 4(d) of the License. 806 807In addition, if you combine or link compiled forms of this Software with 808software that is licensed under the GPLv2 ("Combined Software") and if a 809court of competent jurisdiction determines that the patent provision (Section 8103), the indemnity provision (Section 9) or other Section of the License 811conflicts with the conditions of the GPLv2, you may retroactively and 812prospectively choose to deem waived or otherwise exclude such Section(s) of 813the License, but only in their entirety and only with respect to the Combined 814Software. 815 816============================================================================== 817Software from third parties included in the LLVM Project: 818============================================================================== 819The LLVM Project contains third party software which is under different license 820terms. All such code will be identified clearly using at least one of two 821mechanisms: 8221) It will be in a separate directory tree with its own `LICENSE.txt` or 823 `LICENSE` file at the top containing the specific license and restrictions 824 which apply to that software, or 8252) It will contain specific license and restriction terms at the top of every 826 file. 827 828============================================================================== 829Legacy LLVM License (https://llvm.org/docs/DeveloperPolicy.html#legacy): 830============================================================================== 831 832The libc++ library is dual licensed under both the University of Illinois 833"BSD-Like" license and the MIT license. As a user of this code you may choose 834to use it under either license. As a contributor, you agree to allow your code 835to be used under both. 836 837Full text of the relevant licenses is included below. 838 839============================================================================== 840 841University of Illinois/NCSA 842Open Source License 843 844Copyright (c) 2009-2019 by the contributors listed in CREDITS.TXT 845 846All rights reserved. 847 848Developed by: 849 850 LLVM Team 851 852 University of Illinois at Urbana-Champaign 853 854 http://llvm.org 855 856Permission is hereby granted, free of charge, to any person obtaining a copy of 857this software and associated documentation files (the "Software"), to deal with 858the Software without restriction, including without limitation the rights to 859use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 860of the Software, and to permit persons to whom the Software is furnished to do 861so, subject to the following conditions: 862 863 * Redistributions of source code must retain the above copyright notice, 864 this list of conditions and the following disclaimers. 865 866 * Redistributions in binary form must reproduce the above copyright notice, 867 this list of conditions and the following disclaimers in the 868 documentation and/or other materials provided with the distribution. 869 870 * Neither the names of the LLVM Team, University of Illinois at 871 Urbana-Champaign, nor the names of its contributors may be used to 872 endorse or promote products derived from this Software without specific 873 prior written permission. 874 875THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 876IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 877FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 878CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 879LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 880OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE 881SOFTWARE. 882 883============================================================================== 884 885Copyright (c) 2009-2014 by the contributors listed in CREDITS.TXT 886 887Permission is hereby granted, free of charge, to any person obtaining a copy 888of this software and associated documentation files (the "Software"), to deal 889in the Software without restriction, including without limitation the rights 890to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 891copies of the Software, and to permit persons to whom the Software is 892furnished to do so, subject to the following conditions: 893 894The above copyright notice and this permission notice shall be included in 895all copies or substantial portions of the Software. 896 897THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 898IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 899FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 900AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 901LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 902OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 903THE SOFTWARE. 904 905============================================================================== 906The LLVM Project is under the Apache License v2.0 with LLVM Exceptions: 907============================================================================== 908 909 Apache License 910 Version 2.0, January 2004 911 http://www.apache.org/licenses/ 912 913 TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 914 915 1. Definitions. 916 917 "License" shall mean the terms and conditions for use, reproduction, 918 and distribution as defined by Sections 1 through 9 of this document. 919 920 "Licensor" shall mean the copyright owner or entity authorized by 921 the copyright owner that is granting the License. 922 923 "Legal Entity" shall mean the union of the acting entity and all 924 other entities that control, are controlled by, or are under common 925 control with that entity. For the purposes of this definition, 926 "control" means (i) the power, direct or indirect, to cause the 927 direction or management of such entity, whether by contract or 928 otherwise, or (ii) ownership of fifty percent (50%) or more of the 929 outstanding shares, or (iii) beneficial ownership of such entity. 930 931 "You" (or "Your") shall mean an individual or Legal Entity 932 exercising permissions granted by this License. 933 934 "Source" form shall mean the preferred form for making modifications, 935 including but not limited to software source code, documentation 936 source, and configuration files. 937 938 "Object" form shall mean any form resulting from mechanical 939 transformation or translation of a Source form, including but 940 not limited to compiled object code, generated documentation, 941 and conversions to other media types. 942 943 "Work" shall mean the work of authorship, whether in Source or 944 Object form, made available under the License, as indicated by a 945 copyright notice that is included in or attached to the work 946 (an example is provided in the Appendix below). 947 948 "Derivative Works" shall mean any work, whether in Source or Object 949 form, that is based on (or derived from) the Work and for which the 950 editorial revisions, annotations, elaborations, or other modifications 951 represent, as a whole, an original work of authorship. For the purposes 952 of this License, Derivative Works shall not include works that remain 953 separable from, or merely link (or bind by name) to the interfaces of, 954 the Work and Derivative Works thereof. 955 956 "Contribution" shall mean any work of authorship, including 957 the original version of the Work and any modifications or additions 958 to that Work or Derivative Works thereof, that is intentionally 959 submitted to Licensor for inclusion in the Work by the copyright owner 960 or by an individual or Legal Entity authorized to submit on behalf of 961 the copyright owner. For the purposes of this definition, "submitted" 962 means any form of electronic, verbal, or written communication sent 963 to the Licensor or its representatives, including but not limited to 964 communication on electronic mailing lists, source code control systems, 965 and issue tracking systems that are managed by, or on behalf of, the 966 Licensor for the purpose of discussing and improving the Work, but 967 excluding communication that is conspicuously marked or otherwise 968 designated in writing by the copyright owner as "Not a Contribution." 969 970 "Contributor" shall mean Licensor and any individual or Legal Entity 971 on behalf of whom a Contribution has been received by Licensor and 972 subsequently incorporated within the Work. 973 974 2. Grant of Copyright License. Subject to the terms and conditions of 975 this License, each Contributor hereby grants to You a perpetual, 976 worldwide, non-exclusive, no-charge, royalty-free, irrevocable 977 copyright license to reproduce, prepare Derivative Works of, 978 publicly display, publicly perform, sublicense, and distribute the 979 Work and such Derivative Works in Source or Object form. 980 981 3. Grant of Patent License. Subject to the terms and conditions of 982 this License, each Contributor hereby grants to You a perpetual, 983 worldwide, non-exclusive, no-charge, royalty-free, irrevocable 984 (except as stated in this section) patent license to make, have made, 985 use, offer to sell, sell, import, and otherwise transfer the Work, 986 where such license applies only to those patent claims licensable 987 by such Contributor that are necessarily infringed by their 988 Contribution(s) alone or by combination of their Contribution(s) 989 with the Work to which such Contribution(s) was submitted. If You 990 institute patent litigation against any entity (including a 991 cross-claim or counterclaim in a lawsuit) alleging that the Work 992 or a Contribution incorporated within the Work constitutes direct 993 or contributory patent infringement, then any patent licenses 994 granted to You under this License for that Work shall terminate 995 as of the date such litigation is filed. 996 997 4. Redistribution. You may reproduce and distribute copies of the 998 Work or Derivative Works thereof in any medium, with or without 999 modifications, and in Source or Object form, provided that You 1000 meet the following conditions: 1001 1002 (a) You must give any other recipients of the Work or 1003 Derivative Works a copy of this License; and 1004 1005 (b) You must cause any modified files to carry prominent notices 1006 stating that You changed the files; and 1007 1008 (c) You must retain, in the Source form of any Derivative Works 1009 that You distribute, all copyright, patent, trademark, and 1010 attribution notices from the Source form of the Work, 1011 excluding those notices that do not pertain to any part of 1012 the Derivative Works; and 1013 1014 (d) If the Work includes a "NOTICE" text file as part of its 1015 distribution, then any Derivative Works that You distribute must 1016 include a readable copy of the attribution notices contained 1017 within such NOTICE file, excluding those notices that do not 1018 pertain to any part of the Derivative Works, in at least one 1019 of the following places: within a NOTICE text file distributed 1020 as part of the Derivative Works; within the Source form or 1021 documentation, if provided along with the Derivative Works; or, 1022 within a display generated by the Derivative Works, if and 1023 wherever such third-party notices normally appear. The contents 1024 of the NOTICE file are for informational purposes only and 1025 do not modify the License. You may add Your own attribution 1026 notices within Derivative Works that You distribute, alongside 1027 or as an addendum to the NOTICE text from the Work, provided 1028 that such additional attribution notices cannot be construed 1029 as modifying the License. 1030 1031 You may add Your own copyright statement to Your modifications and 1032 may provide additional or different license terms and conditions 1033 for use, reproduction, or distribution of Your modifications, or 1034 for any such Derivative Works as a whole, provided Your use, 1035 reproduction, and distribution of the Work otherwise complies with 1036 the conditions stated in this License. 1037 1038 5. Submission of Contributions. Unless You explicitly state otherwise, 1039 any Contribution intentionally submitted for inclusion in the Work 1040 by You to the Licensor shall be under the terms and conditions of 1041 this License, without any additional terms or conditions. 1042 Notwithstanding the above, nothing herein shall supersede or modify 1043 the terms of any separate license agreement you may have executed 1044 with Licensor regarding such Contributions. 1045 1046 6. Trademarks. This License does not grant permission to use the trade 1047 names, trademarks, service marks, or product names of the Licensor, 1048 except as required for reasonable and customary use in describing the 1049 origin of the Work and reproducing the content of the NOTICE file. 1050 1051 7. Disclaimer of Warranty. Unless required by applicable law or 1052 agreed to in writing, Licensor provides the Work (and each 1053 Contributor provides its Contributions) on an "AS IS" BASIS, 1054 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 1055 implied, including, without limitation, any warranties or conditions 1056 of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 1057 PARTICULAR PURPOSE. You are solely responsible for determining the 1058 appropriateness of using or redistributing the Work and assume any 1059 risks associated with Your exercise of permissions under this License. 1060 1061 8. Limitation of Liability. In no event and under no legal theory, 1062 whether in tort (including negligence), contract, or otherwise, 1063 unless required by applicable law (such as deliberate and grossly 1064 negligent acts) or agreed to in writing, shall any Contributor be 1065 liable to You for damages, including any direct, indirect, special, 1066 incidental, or consequential damages of any character arising as a 1067 result of this License or out of the use or inability to use the 1068 Work (including but not limited to damages for loss of goodwill, 1069 work stoppage, computer failure or malfunction, or any and all 1070 other commercial damages or losses), even if such Contributor 1071 has been advised of the possibility of such damages. 1072 1073 9. Accepting Warranty or Additional Liability. While redistributing 1074 the Work or Derivative Works thereof, You may choose to offer, 1075 and charge a fee for, acceptance of support, warranty, indemnity, 1076 or other liability obligations and/or rights consistent with this 1077 License. However, in accepting such obligations, You may act only 1078 on Your own behalf and on Your sole responsibility, not on behalf 1079 of any other Contributor, and only if You agree to indemnify, 1080 defend, and hold each Contributor harmless for any liability 1081 incurred by, or claims asserted against, such Contributor by reason 1082 of your accepting any such warranty or additional liability. 1083 1084 END OF TERMS AND CONDITIONS 1085 1086 APPENDIX: How to apply the Apache License to your work. 1087 1088 To apply the Apache License to your work, attach the following 1089 boilerplate notice, with the fields enclosed by brackets "[]" 1090 replaced with your own identifying information. (Don't include 1091 the brackets!) The text should be enclosed in the appropriate 1092 comment syntax for the file format. We also recommend that a 1093 file or class name and description of purpose be included on the 1094 same "printed page" as the copyright notice for easier 1095 identification within third-party archives. 1096 1097 Copyright [yyyy] [name of copyright owner] 1098 1099 Licensed under the Apache License, Version 2.0 (the "License"); 1100 you may not use this file except in compliance with the License. 1101 You may obtain a copy of the License at 1102 1103 http://www.apache.org/licenses/LICENSE-2.0 1104 1105 Unless required by applicable law or agreed to in writing, software 1106 distributed under the License is distributed on an "AS IS" BASIS, 1107 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1108 See the License for the specific language governing permissions and 1109 limitations under the License. 1110 1111 1112---- LLVM Exceptions to the Apache 2.0 License ---- 1113 1114As an exception, if, as a result of your compiling your source code, portions 1115of this Software are embedded into an Object form of such source code, you 1116may redistribute such embedded portions in such Object form without complying 1117with the conditions of Sections 4(a), 4(b) and 4(d) of the License. 1118 1119In addition, if you combine or link compiled forms of this Software with 1120software that is licensed under the GPLv2 ("Combined Software") and if a 1121court of competent jurisdiction determines that the patent provision (Section 11223), the indemnity provision (Section 9) or other Section of the License 1123conflicts with the conditions of the GPLv2, you may retroactively and 1124prospectively choose to deem waived or otherwise exclude such Section(s) of 1125the License, but only in their entirety and only with respect to the Combined 1126Software. 1127 1128============================================================================== 1129Software from third parties included in the LLVM Project: 1130============================================================================== 1131The LLVM Project contains third party software which is under different license 1132terms. All such code will be identified clearly using at least one of two 1133mechanisms: 11341) It will be in a separate directory tree with its own `LICENSE.txt` or 1135 `LICENSE` file at the top containing the specific license and restrictions 1136 which apply to that software, or 11372) It will contain specific license and restriction terms at the top of every 1138 file. 1139 1140============================================================================== 1141Legacy LLVM License (https://llvm.org/docs/DeveloperPolicy.html#legacy): 1142============================================================================== 1143 1144The libc++abi library is dual licensed under both the University of Illinois 1145"BSD-Like" license and the MIT license. As a user of this code you may choose 1146to use it under either license. As a contributor, you agree to allow your code 1147to be used under both. 1148 1149Full text of the relevant licenses is included below. 1150 1151============================================================================== 1152 1153University of Illinois/NCSA 1154Open Source License 1155 1156Copyright (c) 2009-2019 by the contributors listed in CREDITS.TXT 1157 1158All rights reserved. 1159 1160Developed by: 1161 1162 LLVM Team 1163 1164 University of Illinois at Urbana-Champaign 1165 1166 http://llvm.org 1167 1168Permission is hereby granted, free of charge, to any person obtaining a copy of 1169this software and associated documentation files (the "Software"), to deal with 1170the Software without restriction, including without limitation the rights to 1171use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 1172of the Software, and to permit persons to whom the Software is furnished to do 1173so, subject to the following conditions: 1174 1175 * Redistributions of source code must retain the above copyright notice, 1176 this list of conditions and the following disclaimers. 1177 1178 * Redistributions in binary form must reproduce the above copyright notice, 1179 this list of conditions and the following disclaimers in the 1180 documentation and/or other materials provided with the distribution. 1181 1182 * Neither the names of the LLVM Team, University of Illinois at 1183 Urbana-Champaign, nor the names of its contributors may be used to 1184 endorse or promote products derived from this Software without specific 1185 prior written permission. 1186 1187THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 1188IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 1189FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 1190CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 1191LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 1192OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE 1193SOFTWARE. 1194 1195============================================================================== 1196 1197Copyright (c) 2009-2014 by the contributors listed in CREDITS.TXT 1198 1199Permission is hereby granted, free of charge, to any person obtaining a copy 1200of this software and associated documentation files (the "Software"), to deal 1201in the Software without restriction, including without limitation the rights 1202to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 1203copies of the Software, and to permit persons to whom the Software is 1204furnished to do so, subject to the following conditions: 1205 1206The above copyright notice and this permission notice shall be included in 1207all copies or substantial portions of the Software. 1208 1209THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 1210IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 1211FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 1212AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 1213LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 1214OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 1215THE SOFTWARE. 1216 1217============================================================================== 1218The LLVM Project is under the Apache License v2.0 with LLVM Exceptions: 1219============================================================================== 1220 1221 Apache License 1222 Version 2.0, January 2004 1223 http://www.apache.org/licenses/ 1224 1225 TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1226 1227 1. Definitions. 1228 1229 "License" shall mean the terms and conditions for use, reproduction, 1230 and distribution as defined by Sections 1 through 9 of this document. 1231 1232 "Licensor" shall mean the copyright owner or entity authorized by 1233 the copyright owner that is granting the License. 1234 1235 "Legal Entity" shall mean the union of the acting entity and all 1236 other entities that control, are controlled by, or are under common 1237 control with that entity. For the purposes of this definition, 1238 "control" means (i) the power, direct or indirect, to cause the 1239 direction or management of such entity, whether by contract or 1240 otherwise, or (ii) ownership of fifty percent (50%) or more of the 1241 outstanding shares, or (iii) beneficial ownership of such entity. 1242 1243 "You" (or "Your") shall mean an individual or Legal Entity 1244 exercising permissions granted by this License. 1245 1246 "Source" form shall mean the preferred form for making modifications, 1247 including but not limited to software source code, documentation 1248 source, and configuration files. 1249 1250 "Object" form shall mean any form resulting from mechanical 1251 transformation or translation of a Source form, including but 1252 not limited to compiled object code, generated documentation, 1253 and conversions to other media types. 1254 1255 "Work" shall mean the work of authorship, whether in Source or 1256 Object form, made available under the License, as indicated by a 1257 copyright notice that is included in or attached to the work 1258 (an example is provided in the Appendix below). 1259 1260 "Derivative Works" shall mean any work, whether in Source or Object 1261 form, that is based on (or derived from) the Work and for which the 1262 editorial revisions, annotations, elaborations, or other modifications 1263 represent, as a whole, an original work of authorship. For the purposes 1264 of this License, Derivative Works shall not include works that remain 1265 separable from, or merely link (or bind by name) to the interfaces of, 1266 the Work and Derivative Works thereof. 1267 1268 "Contribution" shall mean any work of authorship, including 1269 the original version of the Work and any modifications or additions 1270 to that Work or Derivative Works thereof, that is intentionally 1271 submitted to Licensor for inclusion in the Work by the copyright owner 1272 or by an individual or Legal Entity authorized to submit on behalf of 1273 the copyright owner. For the purposes of this definition, "submitted" 1274 means any form of electronic, verbal, or written communication sent 1275 to the Licensor or its representatives, including but not limited to 1276 communication on electronic mailing lists, source code control systems, 1277 and issue tracking systems that are managed by, or on behalf of, the 1278 Licensor for the purpose of discussing and improving the Work, but 1279 excluding communication that is conspicuously marked or otherwise 1280 designated in writing by the copyright owner as "Not a Contribution." 1281 1282 "Contributor" shall mean Licensor and any individual or Legal Entity 1283 on behalf of whom a Contribution has been received by Licensor and 1284 subsequently incorporated within the Work. 1285 1286 2. Grant of Copyright License. Subject to the terms and conditions of 1287 this License, each Contributor hereby grants to You a perpetual, 1288 worldwide, non-exclusive, no-charge, royalty-free, irrevocable 1289 copyright license to reproduce, prepare Derivative Works of, 1290 publicly display, publicly perform, sublicense, and distribute the 1291 Work and such Derivative Works in Source or Object form. 1292 1293 3. Grant of Patent License. Subject to the terms and conditions of 1294 this License, each Contributor hereby grants to You a perpetual, 1295 worldwide, non-exclusive, no-charge, royalty-free, irrevocable 1296 (except as stated in this section) patent license to make, have made, 1297 use, offer to sell, sell, import, and otherwise transfer the Work, 1298 where such license applies only to those patent claims licensable 1299 by such Contributor that are necessarily infringed by their 1300 Contribution(s) alone or by combination of their Contribution(s) 1301 with the Work to which such Contribution(s) was submitted. If You 1302 institute patent litigation against any entity (including a 1303 cross-claim or counterclaim in a lawsuit) alleging that the Work 1304 or a Contribution incorporated within the Work constitutes direct 1305 or contributory patent infringement, then any patent licenses 1306 granted to You under this License for that Work shall terminate 1307 as of the date such litigation is filed. 1308 1309 4. Redistribution. You may reproduce and distribute copies of the 1310 Work or Derivative Works thereof in any medium, with or without 1311 modifications, and in Source or Object form, provided that You 1312 meet the following conditions: 1313 1314 (a) You must give any other recipients of the Work or 1315 Derivative Works a copy of this License; and 1316 1317 (b) You must cause any modified files to carry prominent notices 1318 stating that You changed the files; and 1319 1320 (c) You must retain, in the Source form of any Derivative Works 1321 that You distribute, all copyright, patent, trademark, and 1322 attribution notices from the Source form of the Work, 1323 excluding those notices that do not pertain to any part of 1324 the Derivative Works; and 1325 1326 (d) If the Work includes a "NOTICE" text file as part of its 1327 distribution, then any Derivative Works that You distribute must 1328 include a readable copy of the attribution notices contained 1329 within such NOTICE file, excluding those notices that do not 1330 pertain to any part of the Derivative Works, in at least one 1331 of the following places: within a NOTICE text file distributed 1332 as part of the Derivative Works; within the Source form or 1333 documentation, if provided along with the Derivative Works; or, 1334 within a display generated by the Derivative Works, if and 1335 wherever such third-party notices normally appear. The contents 1336 of the NOTICE file are for informational purposes only and 1337 do not modify the License. You may add Your own attribution 1338 notices within Derivative Works that You distribute, alongside 1339 or as an addendum to the NOTICE text from the Work, provided 1340 that such additional attribution notices cannot be construed 1341 as modifying the License. 1342 1343 You may add Your own copyright statement to Your modifications and 1344 may provide additional or different license terms and conditions 1345 for use, reproduction, or distribution of Your modifications, or 1346 for any such Derivative Works as a whole, provided Your use, 1347 reproduction, and distribution of the Work otherwise complies with 1348 the conditions stated in this License. 1349 1350 5. Submission of Contributions. Unless You explicitly state otherwise, 1351 any Contribution intentionally submitted for inclusion in the Work 1352 by You to the Licensor shall be under the terms and conditions of 1353 this License, without any additional terms or conditions. 1354 Notwithstanding the above, nothing herein shall supersede or modify 1355 the terms of any separate license agreement you may have executed 1356 with Licensor regarding such Contributions. 1357 1358 6. Trademarks. This License does not grant permission to use the trade 1359 names, trademarks, service marks, or product names of the Licensor, 1360 except as required for reasonable and customary use in describing the 1361 origin of the Work and reproducing the content of the NOTICE file. 1362 1363 7. Disclaimer of Warranty. Unless required by applicable law or 1364 agreed to in writing, Licensor provides the Work (and each 1365 Contributor provides its Contributions) on an "AS IS" BASIS, 1366 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 1367 implied, including, without limitation, any warranties or conditions 1368 of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 1369 PARTICULAR PURPOSE. You are solely responsible for determining the 1370 appropriateness of using or redistributing the Work and assume any 1371 risks associated with Your exercise of permissions under this License. 1372 1373 8. Limitation of Liability. In no event and under no legal theory, 1374 whether in tort (including negligence), contract, or otherwise, 1375 unless required by applicable law (such as deliberate and grossly 1376 negligent acts) or agreed to in writing, shall any Contributor be 1377 liable to You for damages, including any direct, indirect, special, 1378 incidental, or consequential damages of any character arising as a 1379 result of this License or out of the use or inability to use the 1380 Work (including but not limited to damages for loss of goodwill, 1381 work stoppage, computer failure or malfunction, or any and all 1382 other commercial damages or losses), even if such Contributor 1383 has been advised of the possibility of such damages. 1384 1385 9. Accepting Warranty or Additional Liability. While redistributing 1386 the Work or Derivative Works thereof, You may choose to offer, 1387 and charge a fee for, acceptance of support, warranty, indemnity, 1388 or other liability obligations and/or rights consistent with this 1389 License. However, in accepting such obligations, You may act only 1390 on Your own behalf and on Your sole responsibility, not on behalf 1391 of any other Contributor, and only if You agree to indemnify, 1392 defend, and hold each Contributor harmless for any liability 1393 incurred by, or claims asserted against, such Contributor by reason 1394 of your accepting any such warranty or additional liability. 1395 1396 END OF TERMS AND CONDITIONS 1397 1398 APPENDIX: How to apply the Apache License to your work. 1399 1400 To apply the Apache License to your work, attach the following 1401 boilerplate notice, with the fields enclosed by brackets "[]" 1402 replaced with your own identifying information. (Don't include 1403 the brackets!) The text should be enclosed in the appropriate 1404 comment syntax for the file format. We also recommend that a 1405 file or class name and description of purpose be included on the 1406 same "printed page" as the copyright notice for easier 1407 identification within third-party archives. 1408 1409 Copyright [yyyy] [name of copyright owner] 1410 1411 Licensed under the Apache License, Version 2.0 (the "License"); 1412 you may not use this file except in compliance with the License. 1413 You may obtain a copy of the License at 1414 1415 http://www.apache.org/licenses/LICENSE-2.0 1416 1417 Unless required by applicable law or agreed to in writing, software 1418 distributed under the License is distributed on an "AS IS" BASIS, 1419 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1420 See the License for the specific language governing permissions and 1421 limitations under the License. 1422 1423 1424---- LLVM Exceptions to the Apache 2.0 License ---- 1425 1426As an exception, if, as a result of your compiling your source code, portions 1427of this Software are embedded into an Object form of such source code, you 1428may redistribute such embedded portions in such Object form without complying 1429with the conditions of Sections 4(a), 4(b) and 4(d) of the License. 1430 1431In addition, if you combine or link compiled forms of this Software with 1432software that is licensed under the GPLv2 ("Combined Software") and if a 1433court of competent jurisdiction determines that the patent provision (Section 14343), the indemnity provision (Section 9) or other Section of the License 1435conflicts with the conditions of the GPLv2, you may retroactively and 1436prospectively choose to deem waived or otherwise exclude such Section(s) of 1437the License, but only in their entirety and only with respect to the Combined 1438Software. 1439 1440============================================================================== 1441Software from third parties included in the LLVM Project: 1442============================================================================== 1443The LLVM Project contains third party software which is under different license 1444terms. All such code will be identified clearly using at least one of two 1445mechanisms: 14461) It will be in a separate directory tree with its own `LICENSE.txt` or 1447 `LICENSE` file at the top containing the specific license and restrictions 1448 which apply to that software, or 14492) It will contain specific license and restriction terms at the top of every 1450 file. 1451 1452============================================================================== 1453Legacy LLVM License (https://llvm.org/docs/DeveloperPolicy.html#legacy): 1454============================================================================== 1455 1456The software contained in this directory tree is dual licensed under both the 1457University of Illinois "BSD-Like" license and the MIT license. As a user of 1458this code you may choose to use it under either license. As a contributor, 1459you agree to allow your code to be used under both. The full text of the 1460relevant licenses is included below. 1461 1462In addition, a license agreement from the copyright/patent holders of the 1463software contained in this directory tree is included below. 1464 1465============================================================================== 1466 1467University of Illinois/NCSA 1468Open Source License 1469 1470Copyright (c) 1997-2019 Intel Corporation 1471 1472All rights reserved. 1473 1474Developed by: 1475 OpenMP Runtime Team 1476 Intel Corporation 1477 http://www.openmprtl.org 1478 1479Permission is hereby granted, free of charge, to any person obtaining a copy of 1480this software and associated documentation files (the "Software"), to deal with 1481the Software without restriction, including without limitation the rights to 1482use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 1483of the Software, and to permit persons to whom the Software is furnished to do 1484so, subject to the following conditions: 1485 1486 * Redistributions of source code must retain the above copyright notice, 1487 this list of conditions and the following disclaimers. 1488 1489 * Redistributions in binary form must reproduce the above copyright notice, 1490 this list of conditions and the following disclaimers in the 1491 documentation and/or other materials provided with the distribution. 1492 1493 * Neither the names of Intel Corporation OpenMP Runtime Team nor the 1494 names of its contributors may be used to endorse or promote products 1495 derived from this Software without specific prior written permission. 1496 1497THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 1498IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 1499FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 1500CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 1501LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 1502OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE 1503SOFTWARE. 1504 1505============================================================================== 1506 1507Copyright (c) 1997-2019 Intel Corporation 1508 1509Permission is hereby granted, free of charge, to any person obtaining a copy 1510of this software and associated documentation files (the "Software"), to deal 1511in the Software without restriction, including without limitation the rights 1512to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 1513copies of the Software, and to permit persons to whom the Software is 1514furnished to do so, subject to the following conditions: 1515 1516The above copyright notice and this permission notice shall be included in 1517all copies or substantial portions of the Software. 1518 1519THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 1520IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 1521FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 1522AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 1523LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 1524OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 1525THE SOFTWARE. 1526 1527============================================================================== 1528 1529Intel Corporation 1530 1531Software Grant License Agreement ("Agreement") 1532 1533Except for the license granted herein to you, Intel Corporation ("Intel") reserves 1534all right, title, and interest in and to the Software (defined below). 1535 1536Definition 1537 1538"Software" means the code and documentation as well as any original work of 1539authorship, including any modifications or additions to an existing work, that 1540is intentionally submitted by Intel to llvm.org (http://llvm.org) ("LLVM") for 1541inclusion in, or documentation of, any of the products owned or managed by LLVM 1542(the "Work"). For the purposes of this definition, "submitted" means any form of 1543electronic, verbal, or written communication sent to LLVM or its 1544representatives, including but not limited to communication on electronic 1545mailing lists, source code control systems, and issue tracking systems that are 1546managed by, or on behalf of, LLVM for the purpose of discussing and improving 1547the Work, but excluding communication that is conspicuously marked otherwise. 1548 15491. Grant of Copyright License. Subject to the terms and conditions of this 1550 Agreement, Intel hereby grants to you and to recipients of the Software 1551 distributed by LLVM a perpetual, worldwide, non-exclusive, no-charge, 1552 royalty-free, irrevocable copyright license to reproduce, prepare derivative 1553 works of, publicly display, publicly perform, sublicense, and distribute the 1554 Software and such derivative works. 1555 15562. Grant of Patent License. Subject to the terms and conditions of this 1557 Agreement, Intel hereby grants you and to recipients of the Software 1558 distributed by LLVM a perpetual, worldwide, non-exclusive, no-charge, 1559 royalty-free, irrevocable (except as stated in this section) patent license 1560 to make, have made, use, offer to sell, sell, import, and otherwise transfer 1561 the Work, where such license applies only to those patent claims licensable 1562 by Intel that are necessarily infringed by Intel's Software alone or by 1563 combination of the Software with the Work to which such Software was 1564 submitted. If any entity institutes patent litigation against Intel or any 1565 other entity (including a cross-claim or counterclaim in a lawsuit) alleging 1566 that Intel's Software, or the Work to which Intel has contributed constitutes 1567 direct or contributory patent infringement, then any patent licenses granted 1568 to that entity under this Agreement for the Software or Work shall terminate 1569 as of the date such litigation is filed. 1570 1571Unless required by applicable law or agreed to in writing, the software is 1572provided on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, 1573either express or implied, including, without limitation, any warranties or 1574conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 1575PARTICULAR PURPOSE. 1576 1577============================================================================== 1578 1579============================================================================== 1580The LLVM Project is under the Apache License v2.0 with LLVM Exceptions: 1581============================================================================== 1582 1583 Apache License 1584 Version 2.0, January 2004 1585 http://www.apache.org/licenses/ 1586 1587 TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1588 1589 1. Definitions. 1590 1591 "License" shall mean the terms and conditions for use, reproduction, 1592 and distribution as defined by Sections 1 through 9 of this document. 1593 1594 "Licensor" shall mean the copyright owner or entity authorized by 1595 the copyright owner that is granting the License. 1596 1597 "Legal Entity" shall mean the union of the acting entity and all 1598 other entities that control, are controlled by, or are under common 1599 control with that entity. For the purposes of this definition, 1600 "control" means (i) the power, direct or indirect, to cause the 1601 direction or management of such entity, whether by contract or 1602 otherwise, or (ii) ownership of fifty percent (50%) or more of the 1603 outstanding shares, or (iii) beneficial ownership of such entity. 1604 1605 "You" (or "Your") shall mean an individual or Legal Entity 1606 exercising permissions granted by this License. 1607 1608 "Source" form shall mean the preferred form for making modifications, 1609 including but not limited to software source code, documentation 1610 source, and configuration files. 1611 1612 "Object" form shall mean any form resulting from mechanical 1613 transformation or translation of a Source form, including but 1614 not limited to compiled object code, generated documentation, 1615 and conversions to other media types. 1616 1617 "Work" shall mean the work of authorship, whether in Source or 1618 Object form, made available under the License, as indicated by a 1619 copyright notice that is included in or attached to the work 1620 (an example is provided in the Appendix below). 1621 1622 "Derivative Works" shall mean any work, whether in Source or Object 1623 form, that is based on (or derived from) the Work and for which the 1624 editorial revisions, annotations, elaborations, or other modifications 1625 represent, as a whole, an original work of authorship. For the purposes 1626 of this License, Derivative Works shall not include works that remain 1627 separable from, or merely link (or bind by name) to the interfaces of, 1628 the Work and Derivative Works thereof. 1629 1630 "Contribution" shall mean any work of authorship, including 1631 the original version of the Work and any modifications or additions 1632 to that Work or Derivative Works thereof, that is intentionally 1633 submitted to Licensor for inclusion in the Work by the copyright owner 1634 or by an individual or Legal Entity authorized to submit on behalf of 1635 the copyright owner. For the purposes of this definition, "submitted" 1636 means any form of electronic, verbal, or written communication sent 1637 to the Licensor or its representatives, including but not limited to 1638 communication on electronic mailing lists, source code control systems, 1639 and issue tracking systems that are managed by, or on behalf of, the 1640 Licensor for the purpose of discussing and improving the Work, but 1641 excluding communication that is conspicuously marked or otherwise 1642 designated in writing by the copyright owner as "Not a Contribution." 1643 1644 "Contributor" shall mean Licensor and any individual or Legal Entity 1645 on behalf of whom a Contribution has been received by Licensor and 1646 subsequently incorporated within the Work. 1647 1648 2. Grant of Copyright License. Subject to the terms and conditions of 1649 this License, each Contributor hereby grants to You a perpetual, 1650 worldwide, non-exclusive, no-charge, royalty-free, irrevocable 1651 copyright license to reproduce, prepare Derivative Works of, 1652 publicly display, publicly perform, sublicense, and distribute the 1653 Work and such Derivative Works in Source or Object form. 1654 1655 3. Grant of Patent License. Subject to the terms and conditions of 1656 this License, each Contributor hereby grants to You a perpetual, 1657 worldwide, non-exclusive, no-charge, royalty-free, irrevocable 1658 (except as stated in this section) patent license to make, have made, 1659 use, offer to sell, sell, import, and otherwise transfer the Work, 1660 where such license applies only to those patent claims licensable 1661 by such Contributor that are necessarily infringed by their 1662 Contribution(s) alone or by combination of their Contribution(s) 1663 with the Work to which such Contribution(s) was submitted. If You 1664 institute patent litigation against any entity (including a 1665 cross-claim or counterclaim in a lawsuit) alleging that the Work 1666 or a Contribution incorporated within the Work constitutes direct 1667 or contributory patent infringement, then any patent licenses 1668 granted to You under this License for that Work shall terminate 1669 as of the date such litigation is filed. 1670 1671 4. Redistribution. You may reproduce and distribute copies of the 1672 Work or Derivative Works thereof in any medium, with or without 1673 modifications, and in Source or Object form, provided that You 1674 meet the following conditions: 1675 1676 (a) You must give any other recipients of the Work or 1677 Derivative Works a copy of this License; and 1678 1679 (b) You must cause any modified files to carry prominent notices 1680 stating that You changed the files; and 1681 1682 (c) You must retain, in the Source form of any Derivative Works 1683 that You distribute, all copyright, patent, trademark, and 1684 attribution notices from the Source form of the Work, 1685 excluding those notices that do not pertain to any part of 1686 the Derivative Works; and 1687 1688 (d) If the Work includes a "NOTICE" text file as part of its 1689 distribution, then any Derivative Works that You distribute must 1690 include a readable copy of the attribution notices contained 1691 within such NOTICE file, excluding those notices that do not 1692 pertain to any part of the Derivative Works, in at least one 1693 of the following places: within a NOTICE text file distributed 1694 as part of the Derivative Works; within the Source form or 1695 documentation, if provided along with the Derivative Works; or, 1696 within a display generated by the Derivative Works, if and 1697 wherever such third-party notices normally appear. The contents 1698 of the NOTICE file are for informational purposes only and 1699 do not modify the License. You may add Your own attribution 1700 notices within Derivative Works that You distribute, alongside 1701 or as an addendum to the NOTICE text from the Work, provided 1702 that such additional attribution notices cannot be construed 1703 as modifying the License. 1704 1705 You may add Your own copyright statement to Your modifications and 1706 may provide additional or different license terms and conditions 1707 for use, reproduction, or distribution of Your modifications, or 1708 for any such Derivative Works as a whole, provided Your use, 1709 reproduction, and distribution of the Work otherwise complies with 1710 the conditions stated in this License. 1711 1712 5. Submission of Contributions. Unless You explicitly state otherwise, 1713 any Contribution intentionally submitted for inclusion in the Work 1714 by You to the Licensor shall be under the terms and conditions of 1715 this License, without any additional terms or conditions. 1716 Notwithstanding the above, nothing herein shall supersede or modify 1717 the terms of any separate license agreement you may have executed 1718 with Licensor regarding such Contributions. 1719 1720 6. Trademarks. This License does not grant permission to use the trade 1721 names, trademarks, service marks, or product names of the Licensor, 1722 except as required for reasonable and customary use in describing the 1723 origin of the Work and reproducing the content of the NOTICE file. 1724 1725 7. Disclaimer of Warranty. Unless required by applicable law or 1726 agreed to in writing, Licensor provides the Work (and each 1727 Contributor provides its Contributions) on an "AS IS" BASIS, 1728 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 1729 implied, including, without limitation, any warranties or conditions 1730 of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 1731 PARTICULAR PURPOSE. You are solely responsible for determining the 1732 appropriateness of using or redistributing the Work and assume any 1733 risks associated with Your exercise of permissions under this License. 1734 1735 8. Limitation of Liability. In no event and under no legal theory, 1736 whether in tort (including negligence), contract, or otherwise, 1737 unless required by applicable law (such as deliberate and grossly 1738 negligent acts) or agreed to in writing, shall any Contributor be 1739 liable to You for damages, including any direct, indirect, special, 1740 incidental, or consequential damages of any character arising as a 1741 result of this License or out of the use or inability to use the 1742 Work (including but not limited to damages for loss of goodwill, 1743 work stoppage, computer failure or malfunction, or any and all 1744 other commercial damages or losses), even if such Contributor 1745 has been advised of the possibility of such damages. 1746 1747 9. Accepting Warranty or Additional Liability. While redistributing 1748 the Work or Derivative Works thereof, You may choose to offer, 1749 and charge a fee for, acceptance of support, warranty, indemnity, 1750 or other liability obligations and/or rights consistent with this 1751 License. However, in accepting such obligations, You may act only 1752 on Your own behalf and on Your sole responsibility, not on behalf 1753 of any other Contributor, and only if You agree to indemnify, 1754 defend, and hold each Contributor harmless for any liability 1755 incurred by, or claims asserted against, such Contributor by reason 1756 of your accepting any such warranty or additional liability. 1757 1758 END OF TERMS AND CONDITIONS 1759 1760 APPENDIX: How to apply the Apache License to your work. 1761 1762 To apply the Apache License to your work, attach the following 1763 boilerplate notice, with the fields enclosed by brackets "[]" 1764 replaced with your own identifying information. (Don't include 1765 the brackets!) The text should be enclosed in the appropriate 1766 comment syntax for the file format. We also recommend that a 1767 file or class name and description of purpose be included on the 1768 same "printed page" as the copyright notice for easier 1769 identification within third-party archives. 1770 1771 Copyright [yyyy] [name of copyright owner] 1772 1773 Licensed under the Apache License, Version 2.0 (the "License"); 1774 you may not use this file except in compliance with the License. 1775 You may obtain a copy of the License at 1776 1777 http://www.apache.org/licenses/LICENSE-2.0 1778 1779 Unless required by applicable law or agreed to in writing, software 1780 distributed under the License is distributed on an "AS IS" BASIS, 1781 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1782 See the License for the specific language governing permissions and 1783 limitations under the License. 1784 1785 1786---- LLVM Exceptions to the Apache 2.0 License ---- 1787 1788As an exception, if, as a result of your compiling your source code, portions 1789of this Software are embedded into an Object form of such source code, you 1790may redistribute such embedded portions in such Object form without complying 1791with the conditions of Sections 4(a), 4(b) and 4(d) of the License. 1792 1793In addition, if you combine or link compiled forms of this Software with 1794software that is licensed under the GPLv2 ("Combined Software") and if a 1795court of competent jurisdiction determines that the patent provision (Section 17963), the indemnity provision (Section 9) or other Section of the License 1797conflicts with the conditions of the GPLv2, you may retroactively and 1798prospectively choose to deem waived or otherwise exclude such Section(s) of 1799the License, but only in their entirety and only with respect to the Combined 1800Software. 1801 1802============================================================================== 1803Software from third parties included in the LLVM Project: 1804============================================================================== 1805The LLVM Project contains third party software which is under different license 1806terms. All such code will be identified clearly using at least one of two 1807mechanisms: 18081) It will be in a separate directory tree with its own `LICENSE.txt` or 1809 `LICENSE` file at the top containing the specific license and restrictions 1810 which apply to that software, or 18112) It will contain specific license and restriction terms at the top of every 1812 file. 1813 1814============================================================================== 1815Legacy LLVM License (https://llvm.org/docs/DeveloperPolicy.html#legacy): 1816============================================================================== 1817University of Illinois/NCSA 1818Open Source License 1819 1820Copyright (c) 2007-2019 University of Illinois at Urbana-Champaign. 1821All rights reserved. 1822 1823Developed by: 1824 1825 LLVM Team 1826 1827 University of Illinois at Urbana-Champaign 1828 1829 http://llvm.org 1830 1831Permission is hereby granted, free of charge, to any person obtaining a copy of 1832this software and associated documentation files (the "Software"), to deal with 1833the Software without restriction, including without limitation the rights to 1834use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 1835of the Software, and to permit persons to whom the Software is furnished to do 1836so, subject to the following conditions: 1837 1838 * Redistributions of source code must retain the above copyright notice, 1839 this list of conditions and the following disclaimers. 1840 1841 * Redistributions in binary form must reproduce the above copyright notice, 1842 this list of conditions and the following disclaimers in the 1843 documentation and/or other materials provided with the distribution. 1844 1845 * Neither the names of the LLVM Team, University of Illinois at 1846 Urbana-Champaign, nor the names of its contributors may be used to 1847 endorse or promote products derived from this Software without specific 1848 prior written permission. 1849 1850THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 1851IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 1852FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 1853CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 1854LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 1855OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE 1856SOFTWARE. 1857 1858============================================================================== 1859The LLVM Project is under the Apache License v2.0 with LLVM Exceptions: 1860============================================================================== 1861 1862 Apache License 1863 Version 2.0, January 2004 1864 http://www.apache.org/licenses/ 1865 1866 TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1867 1868 1. Definitions. 1869 1870 "License" shall mean the terms and conditions for use, reproduction, 1871 and distribution as defined by Sections 1 through 9 of this document. 1872 1873 "Licensor" shall mean the copyright owner or entity authorized by 1874 the copyright owner that is granting the License. 1875 1876 "Legal Entity" shall mean the union of the acting entity and all 1877 other entities that control, are controlled by, or are under common 1878 control with that entity. For the purposes of this definition, 1879 "control" means (i) the power, direct or indirect, to cause the 1880 direction or management of such entity, whether by contract or 1881 otherwise, or (ii) ownership of fifty percent (50%) or more of the 1882 outstanding shares, or (iii) beneficial ownership of such entity. 1883 1884 "You" (or "Your") shall mean an individual or Legal Entity 1885 exercising permissions granted by this License. 1886 1887 "Source" form shall mean the preferred form for making modifications, 1888 including but not limited to software source code, documentation 1889 source, and configuration files. 1890 1891 "Object" form shall mean any form resulting from mechanical 1892 transformation or translation of a Source form, including but 1893 not limited to compiled object code, generated documentation, 1894 and conversions to other media types. 1895 1896 "Work" shall mean the work of authorship, whether in Source or 1897 Object form, made available under the License, as indicated by a 1898 copyright notice that is included in or attached to the work 1899 (an example is provided in the Appendix below). 1900 1901 "Derivative Works" shall mean any work, whether in Source or Object 1902 form, that is based on (or derived from) the Work and for which the 1903 editorial revisions, annotations, elaborations, or other modifications 1904 represent, as a whole, an original work of authorship. For the purposes 1905 of this License, Derivative Works shall not include works that remain 1906 separable from, or merely link (or bind by name) to the interfaces of, 1907 the Work and Derivative Works thereof. 1908 1909 "Contribution" shall mean any work of authorship, including 1910 the original version of the Work and any modifications or additions 1911 to that Work or Derivative Works thereof, that is intentionally 1912 submitted to Licensor for inclusion in the Work by the copyright owner 1913 or by an individual or Legal Entity authorized to submit on behalf of 1914 the copyright owner. For the purposes of this definition, "submitted" 1915 means any form of electronic, verbal, or written communication sent 1916 to the Licensor or its representatives, including but not limited to 1917 communication on electronic mailing lists, source code control systems, 1918 and issue tracking systems that are managed by, or on behalf of, the 1919 Licensor for the purpose of discussing and improving the Work, but 1920 excluding communication that is conspicuously marked or otherwise 1921 designated in writing by the copyright owner as "Not a Contribution." 1922 1923 "Contributor" shall mean Licensor and any individual or Legal Entity 1924 on behalf of whom a Contribution has been received by Licensor and 1925 subsequently incorporated within the Work. 1926 1927 2. Grant of Copyright License. Subject to the terms and conditions of 1928 this License, each Contributor hereby grants to You a perpetual, 1929 worldwide, non-exclusive, no-charge, royalty-free, irrevocable 1930 copyright license to reproduce, prepare Derivative Works of, 1931 publicly display, publicly perform, sublicense, and distribute the 1932 Work and such Derivative Works in Source or Object form. 1933 1934 3. Grant of Patent License. Subject to the terms and conditions of 1935 this License, each Contributor hereby grants to You a perpetual, 1936 worldwide, non-exclusive, no-charge, royalty-free, irrevocable 1937 (except as stated in this section) patent license to make, have made, 1938 use, offer to sell, sell, import, and otherwise transfer the Work, 1939 where such license applies only to those patent claims licensable 1940 by such Contributor that are necessarily infringed by their 1941 Contribution(s) alone or by combination of their Contribution(s) 1942 with the Work to which such Contribution(s) was submitted. If You 1943 institute patent litigation against any entity (including a 1944 cross-claim or counterclaim in a lawsuit) alleging that the Work 1945 or a Contribution incorporated within the Work constitutes direct 1946 or contributory patent infringement, then any patent licenses 1947 granted to You under this License for that Work shall terminate 1948 as of the date such litigation is filed. 1949 1950 4. Redistribution. You may reproduce and distribute copies of the 1951 Work or Derivative Works thereof in any medium, with or without 1952 modifications, and in Source or Object form, provided that You 1953 meet the following conditions: 1954 1955 (a) You must give any other recipients of the Work or 1956 Derivative Works a copy of this License; and 1957 1958 (b) You must cause any modified files to carry prominent notices 1959 stating that You changed the files; and 1960 1961 (c) You must retain, in the Source form of any Derivative Works 1962 that You distribute, all copyright, patent, trademark, and 1963 attribution notices from the Source form of the Work, 1964 excluding those notices that do not pertain to any part of 1965 the Derivative Works; and 1966 1967 (d) If the Work includes a "NOTICE" text file as part of its 1968 distribution, then any Derivative Works that You distribute must 1969 include a readable copy of the attribution notices contained 1970 within such NOTICE file, excluding those notices that do not 1971 pertain to any part of the Derivative Works, in at least one 1972 of the following places: within a NOTICE text file distributed 1973 as part of the Derivative Works; within the Source form or 1974 documentation, if provided along with the Derivative Works; or, 1975 within a display generated by the Derivative Works, if and 1976 wherever such third-party notices normally appear. The contents 1977 of the NOTICE file are for informational purposes only and 1978 do not modify the License. You may add Your own attribution 1979 notices within Derivative Works that You distribute, alongside 1980 or as an addendum to the NOTICE text from the Work, provided 1981 that such additional attribution notices cannot be construed 1982 as modifying the License. 1983 1984 You may add Your own copyright statement to Your modifications and 1985 may provide additional or different license terms and conditions 1986 for use, reproduction, or distribution of Your modifications, or 1987 for any such Derivative Works as a whole, provided Your use, 1988 reproduction, and distribution of the Work otherwise complies with 1989 the conditions stated in this License. 1990 1991 5. Submission of Contributions. Unless You explicitly state otherwise, 1992 any Contribution intentionally submitted for inclusion in the Work 1993 by You to the Licensor shall be under the terms and conditions of 1994 this License, without any additional terms or conditions. 1995 Notwithstanding the above, nothing herein shall supersede or modify 1996 the terms of any separate license agreement you may have executed 1997 with Licensor regarding such Contributions. 1998 1999 6. Trademarks. This License does not grant permission to use the trade 2000 names, trademarks, service marks, or product names of the Licensor, 2001 except as required for reasonable and customary use in describing the 2002 origin of the Work and reproducing the content of the NOTICE file. 2003 2004 7. Disclaimer of Warranty. Unless required by applicable law or 2005 agreed to in writing, Licensor provides the Work (and each 2006 Contributor provides its Contributions) on an "AS IS" BASIS, 2007 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 2008 implied, including, without limitation, any warranties or conditions 2009 of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 2010 PARTICULAR PURPOSE. You are solely responsible for determining the 2011 appropriateness of using or redistributing the Work and assume any 2012 risks associated with Your exercise of permissions under this License. 2013 2014 8. Limitation of Liability. In no event and under no legal theory, 2015 whether in tort (including negligence), contract, or otherwise, 2016 unless required by applicable law (such as deliberate and grossly 2017 negligent acts) or agreed to in writing, shall any Contributor be 2018 liable to You for damages, including any direct, indirect, special, 2019 incidental, or consequential damages of any character arising as a 2020 result of this License or out of the use or inability to use the 2021 Work (including but not limited to damages for loss of goodwill, 2022 work stoppage, computer failure or malfunction, or any and all 2023 other commercial damages or losses), even if such Contributor 2024 has been advised of the possibility of such damages. 2025 2026 9. Accepting Warranty or Additional Liability. While redistributing 2027 the Work or Derivative Works thereof, You may choose to offer, 2028 and charge a fee for, acceptance of support, warranty, indemnity, 2029 or other liability obligations and/or rights consistent with this 2030 License. However, in accepting such obligations, You may act only 2031 on Your own behalf and on Your sole responsibility, not on behalf 2032 of any other Contributor, and only if You agree to indemnify, 2033 defend, and hold each Contributor harmless for any liability 2034 incurred by, or claims asserted against, such Contributor by reason 2035 of your accepting any such warranty or additional liability. 2036 2037 END OF TERMS AND CONDITIONS 2038 2039 APPENDIX: How to apply the Apache License to your work. 2040 2041 To apply the Apache License to your work, attach the following 2042 boilerplate notice, with the fields enclosed by brackets "[]" 2043 replaced with your own identifying information. (Don't include 2044 the brackets!) The text should be enclosed in the appropriate 2045 comment syntax for the file format. We also recommend that a 2046 file or class name and description of purpose be included on the 2047 same "printed page" as the copyright notice for easier 2048 identification within third-party archives. 2049 2050 Copyright [yyyy] [name of copyright owner] 2051 2052 Licensed under the Apache License, Version 2.0 (the "License"); 2053 you may not use this file except in compliance with the License. 2054 You may obtain a copy of the License at 2055 2056 http://www.apache.org/licenses/LICENSE-2.0 2057 2058 Unless required by applicable law or agreed to in writing, software 2059 distributed under the License is distributed on an "AS IS" BASIS, 2060 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2061 See the License for the specific language governing permissions and 2062 limitations under the License. 2063 2064 2065---- LLVM Exceptions to the Apache 2.0 License ---- 2066 2067As an exception, if, as a result of your compiling your source code, portions 2068of this Software are embedded into an Object form of such source code, you 2069may redistribute such embedded portions in such Object form without complying 2070with the conditions of Sections 4(a), 4(b) and 4(d) of the License. 2071 2072In addition, if you combine or link compiled forms of this Software with 2073software that is licensed under the GPLv2 ("Combined Software") and if a 2074court of competent jurisdiction determines that the patent provision (Section 20753), the indemnity provision (Section 9) or other Section of the License 2076conflicts with the conditions of the GPLv2, you may retroactively and 2077prospectively choose to deem waived or otherwise exclude such Section(s) of 2078the License, but only in their entirety and only with respect to the Combined 2079Software. 2080 2081============================================================================== 2082Software from third parties included in the LLVM Project: 2083============================================================================== 2084The LLVM Project contains third party software which is under different license 2085terms. All such code will be identified clearly using at least one of two 2086mechanisms: 20871) It will be in a separate directory tree with its own `LICENSE.txt` or 2088 `LICENSE` file at the top containing the specific license and restrictions 2089 which apply to that software, or 20902) It will contain specific license and restriction terms at the top of every 2091 file. 2092 2093============================================================================== 2094Legacy LLVM License (https://llvm.org/docs/DeveloperPolicy.html#legacy): 2095============================================================================== 2096University of Illinois/NCSA 2097Open Source License 2098 2099Copyright (c) 2007-2019 University of Illinois at Urbana-Champaign. 2100All rights reserved. 2101 2102Developed by: 2103 2104 LLVM Team 2105 2106 University of Illinois at Urbana-Champaign 2107 2108 http://llvm.org 2109 2110Permission is hereby granted, free of charge, to any person obtaining a copy of 2111this software and associated documentation files (the "Software"), to deal with 2112the Software without restriction, including without limitation the rights to 2113use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 2114of the Software, and to permit persons to whom the Software is furnished to do 2115so, subject to the following conditions: 2116 2117 * Redistributions of source code must retain the above copyright notice, 2118 this list of conditions and the following disclaimers. 2119 2120 * Redistributions in binary form must reproduce the above copyright notice, 2121 this list of conditions and the following disclaimers in the 2122 documentation and/or other materials provided with the distribution. 2123 2124 * Neither the names of the LLVM Team, University of Illinois at 2125 Urbana-Champaign, nor the names of its contributors may be used to 2126 endorse or promote products derived from this Software without specific 2127 prior written permission. 2128 2129THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 2130IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 2131FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 2132CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 2133LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 2134OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE 2135SOFTWARE. 2136 2137============================================================================== 2138The LLVM Project is under the Apache License v2.0 with LLVM Exceptions: 2139============================================================================== 2140 2141 Apache License 2142 Version 2.0, January 2004 2143 http://www.apache.org/licenses/ 2144 2145 TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 2146 2147 1. Definitions. 2148 2149 "License" shall mean the terms and conditions for use, reproduction, 2150 and distribution as defined by Sections 1 through 9 of this document. 2151 2152 "Licensor" shall mean the copyright owner or entity authorized by 2153 the copyright owner that is granting the License. 2154 2155 "Legal Entity" shall mean the union of the acting entity and all 2156 other entities that control, are controlled by, or are under common 2157 control with that entity. For the purposes of this definition, 2158 "control" means (i) the power, direct or indirect, to cause the 2159 direction or management of such entity, whether by contract or 2160 otherwise, or (ii) ownership of fifty percent (50%) or more of the 2161 outstanding shares, or (iii) beneficial ownership of such entity. 2162 2163 "You" (or "Your") shall mean an individual or Legal Entity 2164 exercising permissions granted by this License. 2165 2166 "Source" form shall mean the preferred form for making modifications, 2167 including but not limited to software source code, documentation 2168 source, and configuration files. 2169 2170 "Object" form shall mean any form resulting from mechanical 2171 transformation or translation of a Source form, including but 2172 not limited to compiled object code, generated documentation, 2173 and conversions to other media types. 2174 2175 "Work" shall mean the work of authorship, whether in Source or 2176 Object form, made available under the License, as indicated by a 2177 copyright notice that is included in or attached to the work 2178 (an example is provided in the Appendix below). 2179 2180 "Derivative Works" shall mean any work, whether in Source or Object 2181 form, that is based on (or derived from) the Work and for which the 2182 editorial revisions, annotations, elaborations, or other modifications 2183 represent, as a whole, an original work of authorship. For the purposes 2184 of this License, Derivative Works shall not include works that remain 2185 separable from, or merely link (or bind by name) to the interfaces of, 2186 the Work and Derivative Works thereof. 2187 2188 "Contribution" shall mean any work of authorship, including 2189 the original version of the Work and any modifications or additions 2190 to that Work or Derivative Works thereof, that is intentionally 2191 submitted to Licensor for inclusion in the Work by the copyright owner 2192 or by an individual or Legal Entity authorized to submit on behalf of 2193 the copyright owner. For the purposes of this definition, "submitted" 2194 means any form of electronic, verbal, or written communication sent 2195 to the Licensor or its representatives, including but not limited to 2196 communication on electronic mailing lists, source code control systems, 2197 and issue tracking systems that are managed by, or on behalf of, the 2198 Licensor for the purpose of discussing and improving the Work, but 2199 excluding communication that is conspicuously marked or otherwise 2200 designated in writing by the copyright owner as "Not a Contribution." 2201 2202 "Contributor" shall mean Licensor and any individual or Legal Entity 2203 on behalf of whom a Contribution has been received by Licensor and 2204 subsequently incorporated within the Work. 2205 2206 2. Grant of Copyright License. Subject to the terms and conditions of 2207 this License, each Contributor hereby grants to You a perpetual, 2208 worldwide, non-exclusive, no-charge, royalty-free, irrevocable 2209 copyright license to reproduce, prepare Derivative Works of, 2210 publicly display, publicly perform, sublicense, and distribute the 2211 Work and such Derivative Works in Source or Object form. 2212 2213 3. Grant of Patent License. Subject to the terms and conditions of 2214 this License, each Contributor hereby grants to You a perpetual, 2215 worldwide, non-exclusive, no-charge, royalty-free, irrevocable 2216 (except as stated in this section) patent license to make, have made, 2217 use, offer to sell, sell, import, and otherwise transfer the Work, 2218 where such license applies only to those patent claims licensable 2219 by such Contributor that are necessarily infringed by their 2220 Contribution(s) alone or by combination of their Contribution(s) 2221 with the Work to which such Contribution(s) was submitted. If You 2222 institute patent litigation against any entity (including a 2223 cross-claim or counterclaim in a lawsuit) alleging that the Work 2224 or a Contribution incorporated within the Work constitutes direct 2225 or contributory patent infringement, then any patent licenses 2226 granted to You under this License for that Work shall terminate 2227 as of the date such litigation is filed. 2228 2229 4. Redistribution. You may reproduce and distribute copies of the 2230 Work or Derivative Works thereof in any medium, with or without 2231 modifications, and in Source or Object form, provided that You 2232 meet the following conditions: 2233 2234 (a) You must give any other recipients of the Work or 2235 Derivative Works a copy of this License; and 2236 2237 (b) You must cause any modified files to carry prominent notices 2238 stating that You changed the files; and 2239 2240 (c) You must retain, in the Source form of any Derivative Works 2241 that You distribute, all copyright, patent, trademark, and 2242 attribution notices from the Source form of the Work, 2243 excluding those notices that do not pertain to any part of 2244 the Derivative Works; and 2245 2246 (d) If the Work includes a "NOTICE" text file as part of its 2247 distribution, then any Derivative Works that You distribute must 2248 include a readable copy of the attribution notices contained 2249 within such NOTICE file, excluding those notices that do not 2250 pertain to any part of the Derivative Works, in at least one 2251 of the following places: within a NOTICE text file distributed 2252 as part of the Derivative Works; within the Source form or 2253 documentation, if provided along with the Derivative Works; or, 2254 within a display generated by the Derivative Works, if and 2255 wherever such third-party notices normally appear. The contents 2256 of the NOTICE file are for informational purposes only and 2257 do not modify the License. You may add Your own attribution 2258 notices within Derivative Works that You distribute, alongside 2259 or as an addendum to the NOTICE text from the Work, provided 2260 that such additional attribution notices cannot be construed 2261 as modifying the License. 2262 2263 You may add Your own copyright statement to Your modifications and 2264 may provide additional or different license terms and conditions 2265 for use, reproduction, or distribution of Your modifications, or 2266 for any such Derivative Works as a whole, provided Your use, 2267 reproduction, and distribution of the Work otherwise complies with 2268 the conditions stated in this License. 2269 2270 5. Submission of Contributions. Unless You explicitly state otherwise, 2271 any Contribution intentionally submitted for inclusion in the Work 2272 by You to the Licensor shall be under the terms and conditions of 2273 this License, without any additional terms or conditions. 2274 Notwithstanding the above, nothing herein shall supersede or modify 2275 the terms of any separate license agreement you may have executed 2276 with Licensor regarding such Contributions. 2277 2278 6. Trademarks. This License does not grant permission to use the trade 2279 names, trademarks, service marks, or product names of the Licensor, 2280 except as required for reasonable and customary use in describing the 2281 origin of the Work and reproducing the content of the NOTICE file. 2282 2283 7. Disclaimer of Warranty. Unless required by applicable law or 2284 agreed to in writing, Licensor provides the Work (and each 2285 Contributor provides its Contributions) on an "AS IS" BASIS, 2286 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 2287 implied, including, without limitation, any warranties or conditions 2288 of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 2289 PARTICULAR PURPOSE. You are solely responsible for determining the 2290 appropriateness of using or redistributing the Work and assume any 2291 risks associated with Your exercise of permissions under this License. 2292 2293 8. Limitation of Liability. In no event and under no legal theory, 2294 whether in tort (including negligence), contract, or otherwise, 2295 unless required by applicable law (such as deliberate and grossly 2296 negligent acts) or agreed to in writing, shall any Contributor be 2297 liable to You for damages, including any direct, indirect, special, 2298 incidental, or consequential damages of any character arising as a 2299 result of this License or out of the use or inability to use the 2300 Work (including but not limited to damages for loss of goodwill, 2301 work stoppage, computer failure or malfunction, or any and all 2302 other commercial damages or losses), even if such Contributor 2303 has been advised of the possibility of such damages. 2304 2305 9. Accepting Warranty or Additional Liability. While redistributing 2306 the Work or Derivative Works thereof, You may choose to offer, 2307 and charge a fee for, acceptance of support, warranty, indemnity, 2308 or other liability obligations and/or rights consistent with this 2309 License. However, in accepting such obligations, You may act only 2310 on Your own behalf and on Your sole responsibility, not on behalf 2311 of any other Contributor, and only if You agree to indemnify, 2312 defend, and hold each Contributor harmless for any liability 2313 incurred by, or claims asserted against, such Contributor by reason 2314 of your accepting any such warranty or additional liability. 2315 2316 END OF TERMS AND CONDITIONS 2317 2318 APPENDIX: How to apply the Apache License to your work. 2319 2320 To apply the Apache License to your work, attach the following 2321 boilerplate notice, with the fields enclosed by brackets "[]" 2322 replaced with your own identifying information. (Don't include 2323 the brackets!) The text should be enclosed in the appropriate 2324 comment syntax for the file format. We also recommend that a 2325 file or class name and description of purpose be included on the 2326 same "printed page" as the copyright notice for easier 2327 identification within third-party archives. 2328 2329 Copyright [yyyy] [name of copyright owner] 2330 2331 Licensed under the Apache License, Version 2.0 (the "License"); 2332 you may not use this file except in compliance with the License. 2333 You may obtain a copy of the License at 2334 2335 http://www.apache.org/licenses/LICENSE-2.0 2336 2337 Unless required by applicable law or agreed to in writing, software 2338 distributed under the License is distributed on an "AS IS" BASIS, 2339 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2340 See the License for the specific language governing permissions and 2341 limitations under the License. 2342 2343 2344---- LLVM Exceptions to the Apache 2.0 License ---- 2345 2346As an exception, if, as a result of your compiling your source code, portions 2347of this Software are embedded into an Object form of such source code, you 2348may redistribute such embedded portions in such Object form without complying 2349with the conditions of Sections 4(a), 4(b) and 4(d) of the License. 2350 2351In addition, if you combine or link compiled forms of this Software with 2352software that is licensed under the GPLv2 ("Combined Software") and if a 2353court of competent jurisdiction determines that the patent provision (Section 23543), the indemnity provision (Section 9) or other Section of the License 2355conflicts with the conditions of the GPLv2, you may retroactively and 2356prospectively choose to deem waived or otherwise exclude such Section(s) of 2357the License, but only in their entirety and only with respect to the Combined 2358Software. 2359 2360============================================================================== 2361Software from third parties included in the LLVM Project: 2362============================================================================== 2363The LLVM Project contains third party software which is under different license 2364terms. All such code will be identified clearly using at least one of two 2365mechanisms: 23661) It will be in a separate directory tree with its own `LICENSE.txt` or 2367 `LICENSE` file at the top containing the specific license and restrictions 2368 which apply to that software, or 23692) It will contain specific license and restriction terms at the top of every 2370 file. 2371 2372============================================================================== 2373Legacy LLVM License (https://llvm.org/docs/DeveloperPolicy.html#legacy): 2374============================================================================== 2375University of Illinois/NCSA 2376Open Source License 2377 2378Copyright (c) 2011-2019 by the contributors listed in CREDITS.TXT 2379All rights reserved. 2380 2381Developed by: 2382 2383 LLVM Team 2384 2385 University of Illinois at Urbana-Champaign 2386 2387 http://llvm.org 2388 2389Permission is hereby granted, free of charge, to any person obtaining a copy of 2390this software and associated documentation files (the "Software"), to deal with 2391the Software without restriction, including without limitation the rights to 2392use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 2393of the Software, and to permit persons to whom the Software is furnished to do 2394so, subject to the following conditions: 2395 2396 * Redistributions of source code must retain the above copyright notice, 2397 this list of conditions and the following disclaimers. 2398 2399 * Redistributions in binary form must reproduce the above copyright notice, 2400 this list of conditions and the following disclaimers in the 2401 documentation and/or other materials provided with the distribution. 2402 2403 * Neither the names of the LLVM Team, University of Illinois at 2404 Urbana-Champaign, nor the names of its contributors may be used to 2405 endorse or promote products derived from this Software without specific 2406 prior written permission. 2407 2408THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 2409IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 2410FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 2411CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 2412LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 2413OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE 2414SOFTWARE. 2415