diff options
author | xgupta <shivam98.tkg@gmail.com> | 2021-01-25 19:58:03 +0530 |
---|---|---|
committer | xgupta <shivam98.tkg@gmail.com> | 2021-01-25 19:59:36 +0530 |
commit | 3546b372219db5c5f4004da6a0066bb9860d3d37 (patch) | |
tree | c6c9d05cc4cb424528dce40648afab87625687ba /llvm/docs/tutorial/MyFirstLanguageFrontend | |
parent | 3201274dea63abbac5467f3f992f0280cbf3b100 (diff) | |
download | llvm-3546b372219db5c5f4004da6a0066bb9860d3d37.zip llvm-3546b372219db5c5f4004da6a0066bb9860d3d37.tar.gz llvm-3546b372219db5c5f4004da6a0066bb9860d3d37.tar.bz2 |
[Doc][NFC] Fix Kaleidoscope links, typos and add blog posts for MCJIT
Diffstat (limited to 'llvm/docs/tutorial/MyFirstLanguageFrontend')
5 files changed, 11 insertions, 11 deletions
diff --git a/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl04.rst b/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl04.rst index 78aa31b..98ff8711 100644 --- a/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl04.rst +++ b/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl04.rst @@ -642,7 +642,7 @@ the LLVM JIT and optimizer. To build this example, use: .. 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 index a55cfe2..cc7ffe5 100644 --- a/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl05.rst +++ b/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl05.rst @@ -355,12 +355,12 @@ beginning of the block. :) 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" <functionstructure>` with a :ref:`control +flow instruction <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. 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 @@ the if/then/else and for expressions. To build this example, use: .. 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 index 87c7a37..4e6d001 100644 --- a/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl06.rst +++ b/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl06.rst @@ -747,7 +747,7 @@ the support for user-defined operators. To build this example, use: .. 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 index d7abeea..9ae3972 100644 --- a/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl07.rst +++ b/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl07.rst @@ -870,7 +870,7 @@ mutable variables and var/in support. To build this example, use: .. 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 index c641999..2ddd860 100644 --- a/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl09.rst +++ b/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl09.rst @@ -452,7 +452,7 @@ debug information. To build this example, use: .. 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 |