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 | 38eb0312ba4b74981d2ba970641895713862d0d3 (patch) | |
| tree | 04179e72b67721a9699bacb7d452fd52c8179c20 /llvm/docs/tutorial/BuildingAJIT2.rst | |
| parent | ef8c308d69ed332a63e8970c74f9c678a2554d31 (diff) | |
| download | bcm5719-llvm-38eb0312ba4b74981d2ba970641895713862d0d3.tar.gz bcm5719-llvm-38eb0312ba4b74981d2ba970641895713862d0d3.zip | |
[Kaleidoscope][BuildingAJIT] Fix code-blocks in Chapter 2.
llvm-svn: 271867
Diffstat (limited to 'llvm/docs/tutorial/BuildingAJIT2.rst')
| -rw-r--r-- | llvm/docs/tutorial/BuildingAJIT2.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/docs/tutorial/BuildingAJIT2.rst b/llvm/docs/tutorial/BuildingAJIT2.rst index f739aef5ba0..1936432fec1 100644 --- a/llvm/docs/tutorial/BuildingAJIT2.rst +++ b/llvm/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 { |

