llvm.org GIT mirror llvm / 0115784
[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 Lang Hames 3 years ago
1 changed file(s) with 4 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
4747 do) plus an *IR optimization function* that it will apply to each Module that
4848 is added via addModuleSet:
4949
50 .. code-block: c++
50 .. code-block:: c++
5151
5252 class KaleidoscopeJIT {
5353 private:
8686 using a lambda. In the lambda, we just call out to the "optimizeModule" function
8787 that we will define below.
8888
89 .. code-block:
89 .. code-block:: c++
9090
9191 // ...
9292 auto Resolver = createLambdaResolver(
116116 addModule we need to be careful to replace both references: the findSymbol call
117117 inside our resolver, and the call through to addModuleSet.
118118
119 .. code-block: c++
119 .. code-block:: c++
120120
121121 std::unique_ptr optimizeModule(std::unique_ptr M) {
122122 // Create a function pass manager.
153153 how one can be implemented, because IRTransformLayer turns out to be one of
154154 the simplest implementations of the *layer* concept that can be devised:
155155
156 .. code-block:
156 .. code-block:: c++
157157
158158 template
159159 class IRTransformLayer {