Skip to content

Commit 3546b37

Browse files
committed
[Doc][NFC] Fix Kaleidoscope links, typos and add blog posts for MCJIT
1 parent 3201274 commit 3546b37

File tree

20 files changed

+48
-58
lines changed

20 files changed

+48
-58
lines changed

llvm/docs/tutorial/LangImpl01.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
Kaleidoscope Tutorial
55
=====================
66

7-
The Kaleidoscope Tutorial has `moved to another location <MyFirstLanguageFrontend/index.html>`_ .
7+
The Kaleidoscope Tutorial has moved to :doc:`MyFirstLanguageFrontend/index`.

llvm/docs/tutorial/LangImpl02.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
Kaleidoscope Tutorial
55
=====================
66

7-
The Kaleidoscope Tutorial has `moved to another location <MyFirstLanguageFrontend/index.html>`_ .
7+
The Kaleidoscope Tutorial has moved to :doc:`MyFirstLanguageFrontend/index`.

llvm/docs/tutorial/LangImpl03.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
Kaleidoscope Tutorial
55
=====================
66

7-
The Kaleidoscope Tutorial has `moved to another location <MyFirstLanguageFrontend/index.html>`_ .
7+
The Kaleidoscope Tutorial has moved to :doc:`MyFirstLanguageFrontend/index`.

llvm/docs/tutorial/LangImpl04.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
Kaleidoscope Tutorial
55
=====================
66

7-
The Kaleidoscope Tutorial has `moved to another location <MyFirstLanguageFrontend/index.html>`_ .
7+
The Kaleidoscope Tutorial has moved to :doc:`MyFirstLanguageFrontend/index`.

llvm/docs/tutorial/LangImpl05.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
Kaleidoscope Tutorial
55
=====================
66

7-
The Kaleidoscope Tutorial has `moved to another location <MyFirstLanguageFrontend/index.html>`_ .
7+
The Kaleidoscope Tutorial has moved to :doc:`MyFirstLanguageFrontend/index`.

llvm/docs/tutorial/LangImpl06.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
Kaleidoscope Tutorial
55
=====================
66

7-
The Kaleidoscope Tutorial has `moved to another location <MyFirstLanguageFrontend/index.html>`_ .
7+
The Kaleidoscope Tutorial has moved to :doc:`MyFirstLanguageFrontend/index`.

llvm/docs/tutorial/LangImpl07.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
Kaleidoscope Tutorial
55
=====================
66

7-
The Kaleidoscope Tutorial has `moved to another location <MyFirstLanguageFrontend/index.html>`_ .
7+
The Kaleidoscope Tutorial has moved to :doc:`MyFirstLanguageFrontend/index`.

llvm/docs/tutorial/LangImpl08.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
Kaleidoscope Tutorial
55
=====================
66

7-
The Kaleidoscope Tutorial has `moved to another location <MyFirstLanguageFrontend/index.html>`_ .
7+
The Kaleidoscope Tutorial has moved to :doc:`MyFirstLanguageFrontend/index`.

llvm/docs/tutorial/LangImpl09.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
Kaleidoscope Tutorial
55
=====================
66

7-
The Kaleidoscope Tutorial has `moved to another location <MyFirstLanguageFrontend/index.html>`_ .
7+
The Kaleidoscope Tutorial has moved to :doc:`MyFirstLanguageFrontend/index`.

llvm/docs/tutorial/LangImpl10.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
Kaleidoscope Tutorial
55
=====================
66

7-
The Kaleidoscope Tutorial has `moved to another location <MyFirstLanguageFrontend/index.html>`_ .
7+
The Kaleidoscope Tutorial has moved to :doc:`MyFirstLanguageFrontend/index`.

llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl04.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ the LLVM JIT and optimizer. To build this example, use:
642642
.. code-block:: bash
643643
644644
# Compile
645-
clang++ -g toy.cpp `llvm-config --cxxflags --ldflags --system-libs --libs core mcjit native` -O3 -o toy
645+
clang++ -g toy.cpp `llvm-config --cxxflags --ldflags --system-libs --libs core orcjit native` -O3 -o toy
646646
# Run
647647
./toy
648648

llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl05.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -355,12 +355,12 @@ beginning of the block. :)
355355
Once the insertion point is set, we recursively codegen the "then"
356356
expression from the AST. To finish off the "then" block, we create an
357357
unconditional branch to the merge block. One interesting (and very
358-
important) aspect of the LLVM IR is that it `requires all basic blocks
359-
to be "terminated" <../LangRef.html#functionstructure>`_ with a `control
360-
flow instruction <../LangRef.html#terminators>`_ such as return or
361-
branch. This means that all control flow, *including fall throughs* must
362-
be made explicit in the LLVM IR. If you violate this rule, the verifier
363-
will emit an error.
358+
important) aspect of the LLVM IR is that it :ref:`requires all basic
359+
blocks to be "terminated" <functionstructure>` with a :ref:`control
360+
flow instruction <terminators>` such as return or branch. This means
361+
that all control flow, *including fall throughs* must be made explicit
362+
in the LLVM IR. If you violate this rule, the verifier will emit an
363+
error.
364364

365365
The final line here is quite subtle, but is very important. The basic
366366
issue is that when we create the Phi node in the merge block, we need to
@@ -801,7 +801,7 @@ the if/then/else and for expressions. To build this example, use:
801801
.. code-block:: bash
802802
803803
# Compile
804-
clang++ -g toy.cpp `llvm-config --cxxflags --ldflags --system-libs --libs core mcjit native` -O3 -o toy
804+
clang++ -g toy.cpp `llvm-config --cxxflags --ldflags --system-libs --libs core orcjit native` -O3 -o toy
805805
# Run
806806
./toy
807807

llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl06.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -747,7 +747,7 @@ the support for user-defined operators. To build this example, use:
747747
.. code-block:: bash
748748
749749
# Compile
750-
clang++ -g toy.cpp `llvm-config --cxxflags --ldflags --system-libs --libs core mcjit native` -O3 -o toy
750+
clang++ -g toy.cpp `llvm-config --cxxflags --ldflags --system-libs --libs core orcjit native` -O3 -o toy
751751
# Run
752752
./toy
753753

llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl07.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -870,7 +870,7 @@ mutable variables and var/in support. To build this example, use:
870870
.. code-block:: bash
871871
872872
# Compile
873-
clang++ -g toy.cpp `llvm-config --cxxflags --ldflags --system-libs --libs core mcjit native` -O3 -o toy
873+
clang++ -g toy.cpp `llvm-config --cxxflags --ldflags --system-libs --libs core orcjit native` -O3 -o toy
874874
# Run
875875
./toy
876876

llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl09.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ debug information. To build this example, use:
452452
.. code-block:: bash
453453
454454
# Compile
455-
clang++ -g toy.cpp `llvm-config --cxxflags --ldflags --system-libs --libs core mcjit native` -O3 -o toy
455+
clang++ -g toy.cpp `llvm-config --cxxflags --ldflags --system-libs --libs core orcjit native` -O3 -o toy
456456
# Run
457457
./toy
458458

llvm/examples/Kaleidoscope/MCJIT/README.txt

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,8 @@
22
// Kaleidoscope with MCJIT
33
//===----------------------------------------------------------------------===//
44

5-
The files in this directory are meant to accompany a series of blog posts
6-
that describe the process of porting the Kaleidoscope tutorial to use the MCJIT
7-
execution engine instead of the older JIT engine.
5+
The files in this directory are accompany a series of blog posts that describe
6+
the process of porting the Kaleidoscope tutorial to use the MCJIT execution
7+
engine instead of the older JIT engine.
88

9-
When the blog posts are ready this file will be updated with links to the posts.
109

11-
These directories contain Makefiles that allow the code to be built in a
12-
standalone manner, independent of the larger LLVM build infrastructure.

llvm/examples/Kaleidoscope/MCJIT/cached/README.txt

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22
// Kaleidoscope with MCJIT
33
//===----------------------------------------------------------------------===//
44

5-
The files in this directory are meant to accompany the first in a series of
5+
The files in this directory are meant to accompany the third blog in a series of
66
three blog posts that describe the process of porting the Kaleidoscope tutorial
77
to use the MCJIT execution engine instead of the older JIT engine.
88

9-
When the blog post is ready this file will be updated with a link to the post.
9+
The link of blog post-
10+
https://blog.llvm.org/posts/2013-08-02-object-caching-with-kaleidoscope/
1011

1112
The source code in this directory demonstrates the third version of the
1213
program, now modified to accept an input IR file on the command line and,
@@ -15,14 +16,12 @@ optionally, to use a basic caching mechanism to store generated object images.
1516
The toy-jit.cpp file contains a version of the original JIT-based source code
1617
that has been modified to support the input IR file command line option.
1718

18-
This directory contain a Makefile that allow the code to be built in a
19-
standalone manner, independent of the larger LLVM build infrastructure. To build
20-
the program you will need to have 'clang++' and 'llvm-config' in your path. If
21-
you attempt to build using the LLVM 3.3 release, some minor modifications will
22-
be required.
19+
To build the program you will need to have 'clang++' and 'llvm-config' in your
20+
path. If you attempt to build using the LLVM 3.3 release, some minor
21+
modifications will be required.
2322

2423
This directory also contains a Python script that may be used to generate random
2524
input for the program and test scripts to capture data for rough performance
2625
comparisons. Another Python script will split generated input files into
2726
definitions and function calls for the purpose of testing the IR input and
28-
caching facilities.
27+
caching facilities.

llvm/examples/Kaleidoscope/MCJIT/complete/README.txt

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,16 @@ The files in this directory are meant to accompany the first in a series of
66
three blog posts that describe the process of porting the Kaleidoscope tutorial
77
to use the MCJIT execution engine instead of the older JIT engine.
88

9-
When the blog post is ready this file will be updated with a link to the post.
10-
119
The source code in this directory combines all previous versions, including the
1210
old JIT-based implementation, into a single file for easy comparison with
1311
command line options to select between the various possibilities.
1412

15-
This directory contain a Makefile that allow the code to be built in a
16-
standalone manner, independent of the larger LLVM build infrastructure. To build
17-
the program you will need to have 'clang++' and 'llvm-config' in your path. If
18-
you attempt to build using the LLVM 3.3 release, some minor modifications will
19-
be required.
13+
To build the program you will need to have 'clang++' and 'llvm-config' in your
14+
path. If you attempt to build using the LLVM 3.3 release, some minor
15+
modifications will be required.
2016

2117
This directory also contains a Python script that may be used to generate random
2218
input for the program and test scripts to capture data for rough performance
2319
comparisons. Another Python script will split generated input files into
2420
definitions and function calls for the purpose of testing the IR input and
25-
caching facilities.
21+
caching facilities.

llvm/examples/Kaleidoscope/MCJIT/initial/README.txt

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,16 @@
22
// Kaleidoscope with MCJIT
33
//===----------------------------------------------------------------------===//
44

5-
The files in this directory are meant to accompany the first in a series of
5+
The files in this directory are meant to accompany the first blog in a series of
66
three blog posts that describe the process of porting the Kaleidoscope tutorial
77
to use the MCJIT execution engine instead of the older JIT engine.
88

9-
When the blog post is ready this file will be updated with a link to the post.
9+
The link of blog post-
10+
https://blog.llvm.org/posts/2013-07-22-using-mcjit-with-kaleidoscope-tutorial/
1011

1112
The source code in this directory demonstrates the initial working version of
1213
the program before subsequent performance improvements are applied.
1314

14-
This directory contain a Makefile that allow the code to be built in a
15-
standalone manner, independent of the larger LLVM build infrastructure. To build
16-
the program you will need to have 'clang++' and 'llvm-config' in your path. If
17-
you attempt to build using the LLVM 3.3 release, some minor modifications will
18-
be required, as mentioned in the blog posts.
15+
To build the program you will need to have 'clang++' and 'llvm-config' in your
16+
path. If you attempt to build using the LLVM 3.3 release, some minor
17+
modifications will be required, as mentioned in the blog posts.

llvm/examples/Kaleidoscope/MCJIT/lazy/README.txt

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,23 @@
22
// Kaleidoscope with MCJIT
33
//===----------------------------------------------------------------------===//
44

5-
The files in this directory are meant to accompany the first in a series of
5+
The files in this directory are meant to accompany the second blog in a series of
66
three blog posts that describe the process of porting the Kaleidoscope tutorial
77
to use the MCJIT execution engine instead of the older JIT engine.
88

9-
When the blog post is ready this file will be updated with a link to the post.
9+
The link of blog post-
10+
https://blog.llvm.org/posts/2013-07-29-kaleidoscope-performance-with-mcjit/
1011

1112
The source code in this directory demonstrates the second version of the
1213
program, now modified to implement a sort of 'lazy' compilation.
1314

1415
The toy-jit.cpp file contains a version of the original JIT-based source code
1516
that has been modified to disable most stderr output for timing purposes.
1617

17-
This directory contain a Makefile that allow the code to be built in a
18-
standalone manner, independent of the larger LLVM build infrastructure. To build
19-
the program you will need to have 'clang++' and 'llvm-config' in your path. If
20-
you attempt to build using the LLVM 3.3 release, some minor modifications will
21-
be required.
18+
To build the program you will need to have 'clang++' and 'llvm-config' in your
19+
path. If you attempt to build using the LLVM 3.3 release, some minor
20+
modifications will be required.
2221

2322
This directory also contains a Python script that may be used to generate random
2423
input for the program and test scripts to capture data for rough performance
25-
comparisons.
24+
comparisons.

0 commit comments

Comments
 (0)