diff --git a/llvm/docs/tutorial/LangImpl01.rst b/llvm/docs/tutorial/LangImpl01.rst --- a/llvm/docs/tutorial/LangImpl01.rst +++ b/llvm/docs/tutorial/LangImpl01.rst @@ -4,4 +4,4 @@ Kaleidoscope Tutorial ===================== -The Kaleidoscope Tutorial has `moved to another location `_ . +The Kaleidoscope Tutorial has moved to :doc:`MyFirstLanguageFrontend/index`. diff --git a/llvm/docs/tutorial/LangImpl02.rst b/llvm/docs/tutorial/LangImpl02.rst --- a/llvm/docs/tutorial/LangImpl02.rst +++ b/llvm/docs/tutorial/LangImpl02.rst @@ -4,4 +4,4 @@ Kaleidoscope Tutorial ===================== -The Kaleidoscope Tutorial has `moved to another location `_ . +The Kaleidoscope Tutorial has moved to :doc:`MyFirstLanguageFrontend/index`. diff --git a/llvm/docs/tutorial/LangImpl03.rst b/llvm/docs/tutorial/LangImpl03.rst --- a/llvm/docs/tutorial/LangImpl03.rst +++ b/llvm/docs/tutorial/LangImpl03.rst @@ -4,4 +4,4 @@ Kaleidoscope Tutorial ===================== -The Kaleidoscope Tutorial has `moved to another location `_ . +The Kaleidoscope Tutorial has moved to :doc:`MyFirstLanguageFrontend/index`. diff --git a/llvm/docs/tutorial/LangImpl04.rst b/llvm/docs/tutorial/LangImpl04.rst --- a/llvm/docs/tutorial/LangImpl04.rst +++ b/llvm/docs/tutorial/LangImpl04.rst @@ -4,4 +4,4 @@ Kaleidoscope Tutorial ===================== -The Kaleidoscope Tutorial has `moved to another location `_ . +The Kaleidoscope Tutorial has moved to :doc:`MyFirstLanguageFrontend/index`. diff --git a/llvm/docs/tutorial/LangImpl05.rst b/llvm/docs/tutorial/LangImpl05.rst --- a/llvm/docs/tutorial/LangImpl05.rst +++ b/llvm/docs/tutorial/LangImpl05.rst @@ -4,4 +4,4 @@ Kaleidoscope Tutorial ===================== -The Kaleidoscope Tutorial has `moved to another location `_ . +The Kaleidoscope Tutorial has moved to :doc:`MyFirstLanguageFrontend/index`. diff --git a/llvm/docs/tutorial/LangImpl06.rst b/llvm/docs/tutorial/LangImpl06.rst --- a/llvm/docs/tutorial/LangImpl06.rst +++ b/llvm/docs/tutorial/LangImpl06.rst @@ -4,4 +4,4 @@ Kaleidoscope Tutorial ===================== -The Kaleidoscope Tutorial has `moved to another location `_ . +The Kaleidoscope Tutorial has moved to :doc:`MyFirstLanguageFrontend/index`. diff --git a/llvm/docs/tutorial/LangImpl07.rst b/llvm/docs/tutorial/LangImpl07.rst --- a/llvm/docs/tutorial/LangImpl07.rst +++ b/llvm/docs/tutorial/LangImpl07.rst @@ -4,4 +4,4 @@ Kaleidoscope Tutorial ===================== -The Kaleidoscope Tutorial has `moved to another location `_ . +The Kaleidoscope Tutorial has moved to :doc:`MyFirstLanguageFrontend/index`. diff --git a/llvm/docs/tutorial/LangImpl08.rst b/llvm/docs/tutorial/LangImpl08.rst --- a/llvm/docs/tutorial/LangImpl08.rst +++ b/llvm/docs/tutorial/LangImpl08.rst @@ -4,4 +4,4 @@ Kaleidoscope Tutorial ===================== -The Kaleidoscope Tutorial has `moved to another location `_ . +The Kaleidoscope Tutorial has moved to :doc:`MyFirstLanguageFrontend/index`. diff --git a/llvm/docs/tutorial/LangImpl09.rst b/llvm/docs/tutorial/LangImpl09.rst --- a/llvm/docs/tutorial/LangImpl09.rst +++ b/llvm/docs/tutorial/LangImpl09.rst @@ -4,4 +4,4 @@ Kaleidoscope Tutorial ===================== -The Kaleidoscope Tutorial has `moved to another location `_ . +The Kaleidoscope Tutorial has moved to :doc:`MyFirstLanguageFrontend/index`. diff --git a/llvm/docs/tutorial/LangImpl10.rst b/llvm/docs/tutorial/LangImpl10.rst --- a/llvm/docs/tutorial/LangImpl10.rst +++ b/llvm/docs/tutorial/LangImpl10.rst @@ -4,4 +4,4 @@ Kaleidoscope Tutorial ===================== -The Kaleidoscope Tutorial has `moved to another location `_ . +The Kaleidoscope Tutorial has moved to :doc:`MyFirstLanguageFrontend/index`. diff --git a/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl04.rst b/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl04.rst --- a/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl04.rst +++ b/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl04.rst @@ -642,7 +642,7 @@ .. code-block:: bash # Compile - clang++ -g toy.cpp `llvm-config --cxxflags --ldflags --system-libs --libs core mcjit native` -O3 -o toy + clang++ -g toy.cpp `llvm-config --cxxflags --ldflags --system-libs --libs core orcjit native` -O3 -o toy # Run ./toy diff --git a/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl05.rst b/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl05.rst --- a/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl05.rst +++ b/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl05.rst @@ -355,12 +355,12 @@ Once the insertion point is set, we recursively codegen the "then" expression from the AST. To finish off the "then" block, we create an unconditional branch to the merge block. One interesting (and very -important) aspect of the LLVM IR is that it `requires all basic blocks -to be "terminated" <../LangRef.html#functionstructure>`_ with a `control -flow instruction <../LangRef.html#terminators>`_ such as return or -branch. This means that all control flow, *including fall throughs* must -be made explicit in the LLVM IR. If you violate this rule, the verifier -will emit an error. +important) aspect of the LLVM IR is that it :ref:`requires all basic +blocks to be "terminated" ` with a :ref:`control +flow instruction ` such as return or branch. This means +that all control flow, *including fall throughs* must be made explicit +in the LLVM IR. If you violate this rule, the verifier will emit an +error. The final line here is quite subtle, but is very important. The basic issue is that when we create the Phi node in the merge block, we need to @@ -801,7 +801,7 @@ .. code-block:: bash # Compile - clang++ -g toy.cpp `llvm-config --cxxflags --ldflags --system-libs --libs core mcjit native` -O3 -o toy + clang++ -g toy.cpp `llvm-config --cxxflags --ldflags --system-libs --libs core orcjit native` -O3 -o toy # Run ./toy diff --git a/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl06.rst b/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl06.rst --- a/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl06.rst +++ b/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl06.rst @@ -747,7 +747,7 @@ .. code-block:: bash # Compile - clang++ -g toy.cpp `llvm-config --cxxflags --ldflags --system-libs --libs core mcjit native` -O3 -o toy + clang++ -g toy.cpp `llvm-config --cxxflags --ldflags --system-libs --libs core orcjit native` -O3 -o toy # Run ./toy diff --git a/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl07.rst b/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl07.rst --- a/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl07.rst +++ b/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl07.rst @@ -870,7 +870,7 @@ .. code-block:: bash # Compile - clang++ -g toy.cpp `llvm-config --cxxflags --ldflags --system-libs --libs core mcjit native` -O3 -o toy + clang++ -g toy.cpp `llvm-config --cxxflags --ldflags --system-libs --libs core orcjit native` -O3 -o toy # Run ./toy diff --git a/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl09.rst b/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl09.rst --- a/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl09.rst +++ b/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl09.rst @@ -452,7 +452,7 @@ .. code-block:: bash # Compile - clang++ -g toy.cpp `llvm-config --cxxflags --ldflags --system-libs --libs core mcjit native` -O3 -o toy + clang++ -g toy.cpp `llvm-config --cxxflags --ldflags --system-libs --libs core orcjit native` -O3 -o toy # Run ./toy diff --git a/llvm/examples/Kaleidoscope/MCJIT/README.txt b/llvm/examples/Kaleidoscope/MCJIT/README.txt --- a/llvm/examples/Kaleidoscope/MCJIT/README.txt +++ b/llvm/examples/Kaleidoscope/MCJIT/README.txt @@ -2,11 +2,8 @@ // Kaleidoscope with MCJIT //===----------------------------------------------------------------------===// -The files in this directory are meant to accompany a series of blog posts -that describe the process of porting the Kaleidoscope tutorial to use the MCJIT -execution engine instead of the older JIT engine. +The files in this directory are accompany a series of blog posts that describe +the process of porting the Kaleidoscope tutorial to use the MCJIT execution +engine instead of the older JIT engine. -When the blog posts are ready this file will be updated with links to the posts. -These directories contain Makefiles that allow the code to be built in a -standalone manner, independent of the larger LLVM build infrastructure. \ No newline at end of file diff --git a/llvm/examples/Kaleidoscope/MCJIT/cached/README.txt b/llvm/examples/Kaleidoscope/MCJIT/cached/README.txt --- a/llvm/examples/Kaleidoscope/MCJIT/cached/README.txt +++ b/llvm/examples/Kaleidoscope/MCJIT/cached/README.txt @@ -2,11 +2,12 @@ // Kaleidoscope with MCJIT //===----------------------------------------------------------------------===// -The files in this directory are meant to accompany the first in a series of +The files in this directory are meant to accompany the third blog in a series of three blog posts that describe the process of porting the Kaleidoscope tutorial to use the MCJIT execution engine instead of the older JIT engine. -When the blog post is ready this file will be updated with a link to the post. +The link of blog post- +https://blog.llvm.org/posts/2013-08-02-object-caching-with-kaleidoscope/ The source code in this directory demonstrates the third version of the program, now modified to accept an input IR file on the command line and, @@ -15,14 +16,12 @@ The toy-jit.cpp file contains a version of the original JIT-based source code that has been modified to support the input IR file command line option. -This directory contain a Makefile that allow the code to be built in a -standalone manner, independent of the larger LLVM build infrastructure. To build -the program you will need to have 'clang++' and 'llvm-config' in your path. If -you attempt to build using the LLVM 3.3 release, some minor modifications will -be required. +To build the program you will need to have 'clang++' and 'llvm-config' in your +path. If you attempt to build using the LLVM 3.3 release, some minor +modifications will be required. This directory also contains a Python script that may be used to generate random input for the program and test scripts to capture data for rough performance comparisons. Another Python script will split generated input files into definitions and function calls for the purpose of testing the IR input and -caching facilities. \ No newline at end of file +caching facilities. diff --git a/llvm/examples/Kaleidoscope/MCJIT/complete/README.txt b/llvm/examples/Kaleidoscope/MCJIT/complete/README.txt --- a/llvm/examples/Kaleidoscope/MCJIT/complete/README.txt +++ b/llvm/examples/Kaleidoscope/MCJIT/complete/README.txt @@ -6,20 +6,16 @@ three blog posts that describe the process of porting the Kaleidoscope tutorial to use the MCJIT execution engine instead of the older JIT engine. -When the blog post is ready this file will be updated with a link to the post. - The source code in this directory combines all previous versions, including the old JIT-based implementation, into a single file for easy comparison with command line options to select between the various possibilities. -This directory contain a Makefile that allow the code to be built in a -standalone manner, independent of the larger LLVM build infrastructure. To build -the program you will need to have 'clang++' and 'llvm-config' in your path. If -you attempt to build using the LLVM 3.3 release, some minor modifications will -be required. +To build the program you will need to have 'clang++' and 'llvm-config' in your +path. If you attempt to build using the LLVM 3.3 release, some minor +modifications will be required. This directory also contains a Python script that may be used to generate random input for the program and test scripts to capture data for rough performance comparisons. Another Python script will split generated input files into definitions and function calls for the purpose of testing the IR input and -caching facilities. \ No newline at end of file +caching facilities. diff --git a/llvm/examples/Kaleidoscope/MCJIT/initial/README.txt b/llvm/examples/Kaleidoscope/MCJIT/initial/README.txt --- a/llvm/examples/Kaleidoscope/MCJIT/initial/README.txt +++ b/llvm/examples/Kaleidoscope/MCJIT/initial/README.txt @@ -2,17 +2,16 @@ // Kaleidoscope with MCJIT //===----------------------------------------------------------------------===// -The files in this directory are meant to accompany the first in a series of +The files in this directory are meant to accompany the first blog in a series of three blog posts that describe the process of porting the Kaleidoscope tutorial to use the MCJIT execution engine instead of the older JIT engine. -When the blog post is ready this file will be updated with a link to the post. +The link of blog post- +https://blog.llvm.org/posts/2013-07-22-using-mcjit-with-kaleidoscope-tutorial/ The source code in this directory demonstrates the initial working version of the program before subsequent performance improvements are applied. -This directory contain a Makefile that allow the code to be built in a -standalone manner, independent of the larger LLVM build infrastructure. To build -the program you will need to have 'clang++' and 'llvm-config' in your path. If -you attempt to build using the LLVM 3.3 release, some minor modifications will -be required, as mentioned in the blog posts. \ No newline at end of file +To build the program you will need to have 'clang++' and 'llvm-config' in your +path. If you attempt to build using the LLVM 3.3 release, some minor +modifications will be required, as mentioned in the blog posts. diff --git a/llvm/examples/Kaleidoscope/MCJIT/lazy/README.txt b/llvm/examples/Kaleidoscope/MCJIT/lazy/README.txt --- a/llvm/examples/Kaleidoscope/MCJIT/lazy/README.txt +++ b/llvm/examples/Kaleidoscope/MCJIT/lazy/README.txt @@ -2,11 +2,12 @@ // Kaleidoscope with MCJIT //===----------------------------------------------------------------------===// -The files in this directory are meant to accompany the first in a series of +The files in this directory are meant to accompany the second blog in a series of three blog posts that describe the process of porting the Kaleidoscope tutorial to use the MCJIT execution engine instead of the older JIT engine. -When the blog post is ready this file will be updated with a link to the post. +The link of blog post- +https://blog.llvm.org/posts/2013-07-29-kaleidoscope-performance-with-mcjit/ The source code in this directory demonstrates the second version of the program, now modified to implement a sort of 'lazy' compilation. @@ -14,12 +15,10 @@ The toy-jit.cpp file contains a version of the original JIT-based source code that has been modified to disable most stderr output for timing purposes. -This directory contain a Makefile that allow the code to be built in a -standalone manner, independent of the larger LLVM build infrastructure. To build -the program you will need to have 'clang++' and 'llvm-config' in your path. If -you attempt to build using the LLVM 3.3 release, some minor modifications will -be required. +To build the program you will need to have 'clang++' and 'llvm-config' in your +path. If you attempt to build using the LLVM 3.3 release, some minor +modifications will be required. This directory also contains a Python script that may be used to generate random input for the program and test scripts to capture data for rough performance -comparisons. \ No newline at end of file +comparisons.