mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-31 07:43:37 +00:00
Improving wording.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47503 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
58366820c4
commit
e5079051b9
@ -59,9 +59,9 @@
|
|||||||
<li><a href="#felangs">Source Languages</a>
|
<li><a href="#felangs">Source Languages</a>
|
||||||
<ol>
|
<ol>
|
||||||
<li><a href="#langs">What source languages are supported?</a></li>
|
<li><a href="#langs">What source languages are supported?</a></li>
|
||||||
<li><a href="#langirgen">I'd like to write an LLVM compiler for my language.
|
<li><a href="#langirgen">I'd like to write a self-hosting LLVM compiler. How
|
||||||
How should I interface with the LLVM middle-end optimizers and back-end
|
should I interface with the LLVM middle-end optimizers and back-end code
|
||||||
code generators?</a></div>
|
generators?</a></div>
|
||||||
<li><a href="#langhlsupp">What support is there for higher level source
|
<li><a href="#langhlsupp">What support is there for higher level source
|
||||||
language constructs for building a compiler?</a></li>
|
language constructs for building a compiler?</a></li>
|
||||||
<li><a href="GetElementPtr.html">I don't understand the GetElementPtr
|
<li><a href="GetElementPtr.html">I don't understand the GetElementPtr
|
||||||
@ -418,13 +418,14 @@ using <tt>llvm-gcc</tt> instead.</p>
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="question"><p><a name="langirgen">
|
<div class="question"><p><a name="langirgen">
|
||||||
I'd like to write an LLVM compiler for my language. How should I interface
|
I'd like to write a self-hosting LLVM compiler. How should I interface with
|
||||||
with the LLVM middle-end optimizers and back-end code generators?
|
the LLVM middle-end optimizers and back-end code generators?
|
||||||
</a></p></div>
|
</a></p></div>
|
||||||
<div class="answer">
|
<div class="answer">
|
||||||
<p>Your compiler front-end will communicate with LLVM by creating a module in
|
<p>Your compiler front-end will communicate with LLVM by creating a module in
|
||||||
the LLVM intermediate representation (IR) format. There are 3 major ways to
|
the LLVM intermediate representation (IR) format. Assuming you want to
|
||||||
tackle generating LLVM IR from a front-end:</p>
|
write your language's compiler in the language itself (rather than C++),
|
||||||
|
there are 3 major ways to tackle generating LLVM IR from a front-end:</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<strong>Call into the LLVM libraries code using your language's FFI
|
<strong>Call into the LLVM libraries code using your language's FFI
|
||||||
|
Loading…
x
Reference in New Issue
Block a user