diff options
author | Lang Hames <lhames@gmail.com> | 2016-06-06 04:53:59 +0000 |
---|---|---|
committer | Lang Hames <lhames@gmail.com> | 2016-06-06 04:53:59 +0000 |
commit | 01157841a3193b7477b6b3f1286bc9d24756a044 (patch) | |
tree | 33b77252c522c043c05dbb67fd862bfda65bfd0c /docs/tutorial | |
parent | 608095db1c8a6b125e9343c5134f8b8130d2830e (diff) |
[Kaleidoscope][BuildingAJIT] Fix code-blocks in Chapter 2.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271867 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/tutorial')
-rw-r--r-- | docs/tutorial/BuildingAJIT2.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/tutorial/BuildingAJIT2.rst b/docs/tutorial/BuildingAJIT2.rst index f739aef5ba0..1936432fec1 100644 --- a/docs/tutorial/BuildingAJIT2.rst +++ b/docs/tutorial/BuildingAJIT2.rst @@ -48,7 +48,7 @@ constructor for this layer takes a reference to the layer below (as all layers 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), and we initialize the OptimizeFunction 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: addModule, findSymbol, and removeModule. In 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 opportunity to see how layers compose, and 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 { |