1280461Sdim==============================================================================
2353358SdimThe LLVM Project is under the Apache License v2.0 with LLVM Exceptions:
3280461Sdim==============================================================================
4353358Sdim
5353358Sdim                                 Apache License
6353358Sdim                           Version 2.0, January 2004
7353358Sdim                        http://www.apache.org/licenses/
8353358Sdim
9353358Sdim    TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
10353358Sdim
11353358Sdim    1. Definitions.
12353358Sdim
13353358Sdim      "License" shall mean the terms and conditions for use, reproduction,
14353358Sdim      and distribution as defined by Sections 1 through 9 of this document.
15353358Sdim
16353358Sdim      "Licensor" shall mean the copyright owner or entity authorized by
17353358Sdim      the copyright owner that is granting the License.
18353358Sdim
19353358Sdim      "Legal Entity" shall mean the union of the acting entity and all
20353358Sdim      other entities that control, are controlled by, or are under common
21353358Sdim      control with that entity. For the purposes of this definition,
22353358Sdim      "control" means (i) the power, direct or indirect, to cause the
23353358Sdim      direction or management of such entity, whether by contract or
24353358Sdim      otherwise, or (ii) ownership of fifty percent (50%) or more of the
25353358Sdim      outstanding shares, or (iii) beneficial ownership of such entity.
26353358Sdim
27353358Sdim      "You" (or "Your") shall mean an individual or Legal Entity
28353358Sdim      exercising permissions granted by this License.
29353358Sdim
30353358Sdim      "Source" form shall mean the preferred form for making modifications,
31353358Sdim      including but not limited to software source code, documentation
32353358Sdim      source, and configuration files.
33353358Sdim
34353358Sdim      "Object" form shall mean any form resulting from mechanical
35353358Sdim      transformation or translation of a Source form, including but
36353358Sdim      not limited to compiled object code, generated documentation,
37353358Sdim      and conversions to other media types.
38353358Sdim
39353358Sdim      "Work" shall mean the work of authorship, whether in Source or
40353358Sdim      Object form, made available under the License, as indicated by a
41353358Sdim      copyright notice that is included in or attached to the work
42353358Sdim      (an example is provided in the Appendix below).
43353358Sdim
44353358Sdim      "Derivative Works" shall mean any work, whether in Source or Object
45353358Sdim      form, that is based on (or derived from) the Work and for which the
46353358Sdim      editorial revisions, annotations, elaborations, or other modifications
47353358Sdim      represent, as a whole, an original work of authorship. For the purposes
48353358Sdim      of this License, Derivative Works shall not include works that remain
49353358Sdim      separable from, or merely link (or bind by name) to the interfaces of,
50353358Sdim      the Work and Derivative Works thereof.
51353358Sdim
52353358Sdim      "Contribution" shall mean any work of authorship, including
53353358Sdim      the original version of the Work and any modifications or additions
54353358Sdim      to that Work or Derivative Works thereof, that is intentionally
55353358Sdim      submitted to Licensor for inclusion in the Work by the copyright owner
56353358Sdim      or by an individual or Legal Entity authorized to submit on behalf of
57353358Sdim      the copyright owner. For the purposes of this definition, "submitted"
58353358Sdim      means any form of electronic, verbal, or written communication sent
59353358Sdim      to the Licensor or its representatives, including but not limited to
60353358Sdim      communication on electronic mailing lists, source code control systems,
61353358Sdim      and issue tracking systems that are managed by, or on behalf of, the
62353358Sdim      Licensor for the purpose of discussing and improving the Work, but
63353358Sdim      excluding communication that is conspicuously marked or otherwise
64353358Sdim      designated in writing by the copyright owner as "Not a Contribution."
65353358Sdim
66353358Sdim      "Contributor" shall mean Licensor and any individual or Legal Entity
67353358Sdim      on behalf of whom a Contribution has been received by Licensor and
68353358Sdim      subsequently incorporated within the Work.
69353358Sdim
70353358Sdim    2. Grant of Copyright License. Subject to the terms and conditions of
71353358Sdim      this License, each Contributor hereby grants to You a perpetual,
72353358Sdim      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
73353358Sdim      copyright license to reproduce, prepare Derivative Works of,
74353358Sdim      publicly display, publicly perform, sublicense, and distribute the
75353358Sdim      Work and such Derivative Works in Source or Object form.
76353358Sdim
77353358Sdim    3. Grant of Patent License. Subject to the terms and conditions of
78353358Sdim      this License, each Contributor hereby grants to You a perpetual,
79353358Sdim      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
80353358Sdim      (except as stated in this section) patent license to make, have made,
81353358Sdim      use, offer to sell, sell, import, and otherwise transfer the Work,
82353358Sdim      where such license applies only to those patent claims licensable
83353358Sdim      by such Contributor that are necessarily infringed by their
84353358Sdim      Contribution(s) alone or by combination of their Contribution(s)
85353358Sdim      with the Work to which such Contribution(s) was submitted. If You
86353358Sdim      institute patent litigation against any entity (including a
87353358Sdim      cross-claim or counterclaim in a lawsuit) alleging that the Work
88353358Sdim      or a Contribution incorporated within the Work constitutes direct
89353358Sdim      or contributory patent infringement, then any patent licenses
90353358Sdim      granted to You under this License for that Work shall terminate
91353358Sdim      as of the date such litigation is filed.
92353358Sdim
93353358Sdim    4. Redistribution. You may reproduce and distribute copies of the
94353358Sdim      Work or Derivative Works thereof in any medium, with or without
95353358Sdim      modifications, and in Source or Object form, provided that You
96353358Sdim      meet the following conditions:
97353358Sdim
98353358Sdim      (a) You must give any other recipients of the Work or
99353358Sdim          Derivative Works a copy of this License; and
100353358Sdim
101353358Sdim      (b) You must cause any modified files to carry prominent notices
102353358Sdim          stating that You changed the files; and
103353358Sdim
104353358Sdim      (c) You must retain, in the Source form of any Derivative Works
105353358Sdim          that You distribute, all copyright, patent, trademark, and
106353358Sdim          attribution notices from the Source form of the Work,
107353358Sdim          excluding those notices that do not pertain to any part of
108353358Sdim          the Derivative Works; and
109353358Sdim
110353358Sdim      (d) If the Work includes a "NOTICE" text file as part of its
111353358Sdim          distribution, then any Derivative Works that You distribute must
112353358Sdim          include a readable copy of the attribution notices contained
113353358Sdim          within such NOTICE file, excluding those notices that do not
114353358Sdim          pertain to any part of the Derivative Works, in at least one
115353358Sdim          of the following places: within a NOTICE text file distributed
116353358Sdim          as part of the Derivative Works; within the Source form or
117353358Sdim          documentation, if provided along with the Derivative Works; or,
118353358Sdim          within a display generated by the Derivative Works, if and
119353358Sdim          wherever such third-party notices normally appear. The contents
120353358Sdim          of the NOTICE file are for informational purposes only and
121353358Sdim          do not modify the License. You may add Your own attribution
122353358Sdim          notices within Derivative Works that You distribute, alongside
123353358Sdim          or as an addendum to the NOTICE text from the Work, provided
124353358Sdim          that such additional attribution notices cannot be construed
125353358Sdim          as modifying the License.
126353358Sdim
127353358Sdim      You may add Your own copyright statement to Your modifications and
128353358Sdim      may provide additional or different license terms and conditions
129353358Sdim      for use, reproduction, or distribution of Your modifications, or
130353358Sdim      for any such Derivative Works as a whole, provided Your use,
131353358Sdim      reproduction, and distribution of the Work otherwise complies with
132353358Sdim      the conditions stated in this License.
133353358Sdim
134353358Sdim    5. Submission of Contributions. Unless You explicitly state otherwise,
135353358Sdim      any Contribution intentionally submitted for inclusion in the Work
136353358Sdim      by You to the Licensor shall be under the terms and conditions of
137353358Sdim      this License, without any additional terms or conditions.
138353358Sdim      Notwithstanding the above, nothing herein shall supersede or modify
139353358Sdim      the terms of any separate license agreement you may have executed
140353358Sdim      with Licensor regarding such Contributions.
141353358Sdim
142353358Sdim    6. Trademarks. This License does not grant permission to use the trade
143353358Sdim      names, trademarks, service marks, or product names of the Licensor,
144353358Sdim      except as required for reasonable and customary use in describing the
145353358Sdim      origin of the Work and reproducing the content of the NOTICE file.
146353358Sdim
147353358Sdim    7. Disclaimer of Warranty. Unless required by applicable law or
148353358Sdim      agreed to in writing, Licensor provides the Work (and each
149353358Sdim      Contributor provides its Contributions) on an "AS IS" BASIS,
150353358Sdim      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
151353358Sdim      implied, including, without limitation, any warranties or conditions
152353358Sdim      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
153353358Sdim      PARTICULAR PURPOSE. You are solely responsible for determining the
154353358Sdim      appropriateness of using or redistributing the Work and assume any
155353358Sdim      risks associated with Your exercise of permissions under this License.
156353358Sdim
157353358Sdim    8. Limitation of Liability. In no event and under no legal theory,
158353358Sdim      whether in tort (including negligence), contract, or otherwise,
159353358Sdim      unless required by applicable law (such as deliberate and grossly
160353358Sdim      negligent acts) or agreed to in writing, shall any Contributor be
161353358Sdim      liable to You for damages, including any direct, indirect, special,
162353358Sdim      incidental, or consequential damages of any character arising as a
163353358Sdim      result of this License or out of the use or inability to use the
164353358Sdim      Work (including but not limited to damages for loss of goodwill,
165353358Sdim      work stoppage, computer failure or malfunction, or any and all
166353358Sdim      other commercial damages or losses), even if such Contributor
167353358Sdim      has been advised of the possibility of such damages.
168353358Sdim
169353358Sdim    9. Accepting Warranty or Additional Liability. While redistributing
170353358Sdim      the Work or Derivative Works thereof, You may choose to offer,
171353358Sdim      and charge a fee for, acceptance of support, warranty, indemnity,
172353358Sdim      or other liability obligations and/or rights consistent with this
173353358Sdim      License. However, in accepting such obligations, You may act only
174353358Sdim      on Your own behalf and on Your sole responsibility, not on behalf
175353358Sdim      of any other Contributor, and only if You agree to indemnify,
176353358Sdim      defend, and hold each Contributor harmless for any liability
177353358Sdim      incurred by, or claims asserted against, such Contributor by reason
178353358Sdim      of your accepting any such warranty or additional liability.
179353358Sdim
180353358Sdim    END OF TERMS AND CONDITIONS
181353358Sdim
182353358Sdim    APPENDIX: How to apply the Apache License to your work.
183353358Sdim
184353358Sdim      To apply the Apache License to your work, attach the following
185353358Sdim      boilerplate notice, with the fields enclosed by brackets "[]"
186353358Sdim      replaced with your own identifying information. (Don't include
187353358Sdim      the brackets!)  The text should be enclosed in the appropriate
188353358Sdim      comment syntax for the file format. We also recommend that a
189353358Sdim      file or class name and description of purpose be included on the
190353358Sdim      same "printed page" as the copyright notice for easier
191353358Sdim      identification within third-party archives.
192353358Sdim
193353358Sdim    Copyright [yyyy] [name of copyright owner]
194353358Sdim
195353358Sdim    Licensed under the Apache License, Version 2.0 (the "License");
196353358Sdim    you may not use this file except in compliance with the License.
197353358Sdim    You may obtain a copy of the License at
198353358Sdim
199353358Sdim       http://www.apache.org/licenses/LICENSE-2.0
200353358Sdim
201353358Sdim    Unless required by applicable law or agreed to in writing, software
202353358Sdim    distributed under the License is distributed on an "AS IS" BASIS,
203353358Sdim    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
204353358Sdim    See the License for the specific language governing permissions and
205353358Sdim    limitations under the License.
206353358Sdim
207353358Sdim
208353358Sdim---- LLVM Exceptions to the Apache 2.0 License ----
209353358Sdim
210353358SdimAs an exception, if, as a result of your compiling your source code, portions
211353358Sdimof this Software are embedded into an Object form of such source code, you
212353358Sdimmay redistribute such embedded portions in such Object form without complying
213353358Sdimwith the conditions of Sections 4(a), 4(b) and 4(d) of the License.
214353358Sdim
215353358SdimIn addition, if you combine or link compiled forms of this Software with
216353358Sdimsoftware that is licensed under the GPLv2 ("Combined Software") and if a
217353358Sdimcourt of competent jurisdiction determines that the patent provision (Section
218353358Sdim3), the indemnity provision (Section 9) or other Section of the License
219353358Sdimconflicts with the conditions of the GPLv2, you may retroactively and
220353358Sdimprospectively choose to deem waived or otherwise exclude such Section(s) of
221353358Sdimthe License, but only in their entirety and only with respect to the Combined
222353358SdimSoftware.
223353358Sdim
224353358Sdim==============================================================================
225353358SdimSoftware from third parties included in the LLVM Project:
226353358Sdim==============================================================================
227353358SdimThe LLVM Project contains third party software which is under different license
228353358Sdimterms. All such code will be identified clearly using at least one of two
229353358Sdimmechanisms:
230353358Sdim1) It will be in a separate directory tree with its own `LICENSE.txt` or
231353358Sdim   `LICENSE` file at the top containing the specific license and restrictions
232353358Sdim   which apply to that software, or
233353358Sdim2) It will contain specific license and restriction terms at the top of every
234353358Sdim   file.
235353358Sdim
236353358Sdim==============================================================================
237353358SdimLegacy LLVM License (https://llvm.org/docs/DeveloperPolicy.html#legacy):
238353358Sdim==============================================================================
239280461SdimUniversity of Illinois/NCSA
240280461SdimOpen Source License
241280461Sdim
242344779SdimCopyright (c) 2011-2019 by the contributors listed in CREDITS.TXT
243280461SdimAll rights reserved.
244280461Sdim
245280461SdimDeveloped by:
246280461Sdim
247280461Sdim    LLVM Team
248280461Sdim
249280461Sdim    University of Illinois at Urbana-Champaign
250280461Sdim
251280461Sdim    http://llvm.org
252280461Sdim
253280461SdimPermission is hereby granted, free of charge, to any person obtaining a copy of
254280461Sdimthis software and associated documentation files (the "Software"), to deal with
255280461Sdimthe Software without restriction, including without limitation the rights to
256280461Sdimuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
257280461Sdimof the Software, and to permit persons to whom the Software is furnished to do
258280461Sdimso, subject to the following conditions:
259280461Sdim
260280461Sdim    * Redistributions of source code must retain the above copyright notice,
261280461Sdim      this list of conditions and the following disclaimers.
262280461Sdim
263280461Sdim    * Redistributions in binary form must reproduce the above copyright notice,
264280461Sdim      this list of conditions and the following disclaimers in the
265280461Sdim      documentation and/or other materials provided with the distribution.
266280461Sdim
267280461Sdim    * Neither the names of the LLVM Team, University of Illinois at
268280461Sdim      Urbana-Champaign, nor the names of its contributors may be used to
269280461Sdim      endorse or promote products derived from this Software without specific
270280461Sdim      prior written permission.
271280461Sdim
272280461SdimTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
273280461SdimIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
274280461SdimFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
275280461SdimCONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
276280461SdimLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
277280461SdimOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE
278280461SdimSOFTWARE.
279