diff options
author | Kirill Bobyrev <omtcyfz@gmail.com> | 2017-07-10 09:07:23 +0000 |
---|---|---|
committer | Kirill Bobyrev <omtcyfz@gmail.com> | 2017-07-10 09:07:23 +0000 |
commit | e436483855b99d3a4577fbfb60c38f29d0574ca6 (patch) | |
tree | 923b68ec560f0de0c4ba637194b84c7ff656af78 /llvm/docs/tutorial/BuildingAJIT2.rst | |
parent | 064f00061b600db83e2852892349bc9c0ec30c33 (diff) | |
download | bcm5719-llvm-e436483855b99d3a4577fbfb60c38f29d0574ca6.tar.gz bcm5719-llvm-e436483855b99d3a4577fbfb60c38f29d0574ca6.zip |
[docs] NFC: Fix links in the tutorial
r274441 introduced Chapter 10 of "Implementing a Language with LLVM" tutorial,
which caused all files in the tutorial to start using two digit numbering. But
many links were not changed and therefore appear to be broken. This patch
addresses described issue.
As a result, following command does not produce any output anymore:
$ grep -nR '<LangImpl[0-9].html>' ./docs/tutorial/
llvm-svn: 307525
Diffstat (limited to 'llvm/docs/tutorial/BuildingAJIT2.rst')
-rw-r--r-- | llvm/docs/tutorial/BuildingAJIT2.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/docs/tutorial/BuildingAJIT2.rst b/llvm/docs/tutorial/BuildingAJIT2.rst index 839875266a2..2f22bdad6c1 100644 --- a/llvm/docs/tutorial/BuildingAJIT2.rst +++ b/llvm/docs/tutorial/BuildingAJIT2.rst @@ -25,7 +25,7 @@ IRTransformLayer, to add IR optimization support to KaleidoscopeJIT. Optimizing Modules using the IRTransformLayer ============================================= -In `Chapter 4 <LangImpl4.html>`_ of the "Implementing a language with LLVM" +In `Chapter 4 <LangImpl04.html>`_ of the "Implementing a language with LLVM" tutorial series the llvm *FunctionPassManager* is introduced as a means for optimizing LLVM IR. Interested readers may read that chapter for details, but in short: to optimize a Module we create an llvm::FunctionPassManager @@ -148,7 +148,7 @@ At the bottom of our JIT we add a private method to do the actual optimization: *optimizeModule*. This function sets up a FunctionPassManager, adds some passes to it, runs it over every function in the module, and then returns the mutated module. The specific optimizations are the same ones used in -`Chapter 4 <LangImpl4.html>`_ of the "Implementing a language with LLVM" +`Chapter 4 <LangImpl04.html>`_ of the "Implementing a language with LLVM" tutorial series. Readers may visit that chapter for a more in-depth discussion of these, and of IR optimization in general. |