[llvm] r271867 - [Kaleidoscope][BuildingAJIT] Fix code-blocks in Chapter 2.
Lang Hames via llvm-commits
llvm-commits at lists.llvm.org
Sun Jun 5 21:54:01 PDT 2016
Author: lhames
Date: Sun Jun 5 23:53:59 2016
New Revision: 271867
URL: http://llvm.org/viewvc/llvm-project?rev=271867&view=rev
Log:
[Kaleidoscope][BuildingAJIT] Fix code-blocks in Chapter 2.
Modified:
llvm/trunk/docs/tutorial/BuildingAJIT2.rst
Modified: llvm/trunk/docs/tutorial/BuildingAJIT2.rst
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/tutorial/BuildingAJIT2.rst?rev=271867&r1=271866&r2=271867&view=diff
==============================================================================
--- llvm/trunk/docs/tutorial/BuildingAJIT2.rst (original)
+++ llvm/trunk/docs/tutorial/BuildingAJIT2.rst Sun Jun 5 23:53:59 2016
@@ -48,7 +48,7 @@ constructor for this layer takes a refer
do) plus an *IR optimization function* that it will apply to each Module that
is added via addModuleSet:
-.. code-block: c++
+.. code-block:: c++
class KaleidoscopeJIT {
private:
@@ -87,7 +87,7 @@ below (standard practice for layers), an
using a lambda. In the lambda, we just call out to the "optimizeModule" function
that we will define below.
-.. code-block:
+.. code-block:: c++
// ...
auto Resolver = createLambdaResolver(
@@ -117,7 +117,7 @@ OptimizeLayer in our key methods: addMod
addModule we need to be careful to replace both references: the findSymbol call
inside our resolver, and the call through to addModuleSet.
-.. code-block: c++
+.. code-block:: c++
std::unique_ptr<Module> optimizeModule(std::unique_ptr<Module> M) {
// Create a function pass manager.
@@ -154,7 +154,7 @@ IRTransformLayer, but it gives us an opp
how one can be implemented, because IRTransformLayer turns out to be one of
the simplest implementations of the *layer* concept that can be devised:
-.. code-block:
+.. code-block:: c++
template <typename BaseLayerT, typename TransformFtor>
class IRTransformLayer {
More information about the llvm-commits
mailing list