<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p><font size="-1">I understand that the Apache 2.0 license is about
code on which the license is applied and not on code that may
use, for example, in this instance the LLVM compiler to compile
that separate code.</font></p>
<font size="-1">
</font>
<p><font size="-1">If you were to include licensed code within your
own code, you would then need to account for that included code
by giving the Apache license. You may be able to license the
non-Apache code separately but mixing code this way can make it
hard to see how the code is separately licensed. Separating code
through libraries and include files would be recommended.<br>
</font>
</p>
<font size="-1">
</font>
<p><font size="-1">I do not think APIs, the interfaces, can be
licensed. The use of licensed tools would not require your code
using those tools to have the same license.</font></p>
<p><font size="-1">Neil Nelson</font></p>
<div class="moz-cite-prefix">On 5/31/21 5:13 AM, Muhammad Ali via
llvm-dev wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CA+iq2D2x4Cf_A3zJO=UuQ0XHcTBP09tiAAH3f2VKmR0XmBYY=w@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">Hello Sir/Madam,
<div><br>
</div>
<div>I am unclear about the use of LLVM with regards to what I
need to do to obey the Apache 2.0 license listed on the LLVM
website. Here are the questions I have listed out for your
convenience:</div>
<div><br>
</div>
<div>1. If I'm writing code that I compile using Clang as my
compiler of choice, will that require me to include a license
file that includes the copyright details mentioned on
LLVM's website?</div>
<div><br>
</div>
<div>2. If I'm working on a programming language of my own that
may later use LLVM's api or tools to generate LLVM IR code,
will I also need to include a license file that details the
copyright details mentioned in question 1?</div>
<div><br>
</div>
<div>3. Since LLVM is open source, does that imply that the code
I write (that doesn't modify LLVM source code in any way
instead uses LLVM tools) is also open source under any license
of my choosing, or is it bound by the Apache 2.0 license as
well?</div>
<div><br>
</div>
<div>4. If I'm simply planning on using LLVM's tools (Clang and
LLVM IR generation) to implement a compiler/interpreter for my
own programming language, would the same scenarios in
questions 1-3 apply.</div>
<div><br>
</div>
<div>Forgive me for the many questions, I'm certainly no lawyer
and would like to know the proper methods to handle licenses
for open source software. I'm a university student majoring in
Computer Engineering and most of my focus is on the
engineering end for creating things rather than legal IP
licensing, etc. I would appreciate any help I can receive.</div>
<div><br>
</div>
<div>- Muhammad</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
LLVM Developers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>
<a class="moz-txt-link-freetext" href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a>
</pre>
</blockquote>
</body>
</html>