<div dir="ltr"><div>Hi</div><div><br></div><div>This is my first patch submission to this list, so you'll have to tell me if I do anything wrong somewhere.</div><div><br></div><div>The code in the kaleidoscope tutorial is currently inlined in the documentation pages and is thus never compiled to ensure it still works. Over time this code has diverged from the full code listing in small and subtle ways (such as the FunctionPassManager being in the legacy namespace) which makes it very hard for anyone following the tutorial to actually get something working.</div><div><br></div><div>I have replaced almost all of the code blocks in the tutorial with literalinclude blocks which include code directly from the source files based on markers. This ensures that the code in the tutorial actually compiles and is up to date, even when future changes are made.</div><div><br></div><div>I have uploaded a .patch file here: <a href="https://pastebin.com/yvEBPY2x">https://pastebin.com/yvEBPY2x</a>.</div><div>This was generated using git format-patch, I am not quite sure if this is the same format as svn diff though.</div><div><br></div><div>I have also uploaded a visual html diff here: <a href="https://arongranberg.com/temp/llvm-diff/">https://arongranberg.com/temp/llvm-diff/</a></div><div>with the changed files having URLs on the format <a href="https://arongranberg.com/temp/llvm-diff/LangImpl0[1-8].html">https://arongranberg.com/temp/llvm-diff/LangImpl0[1-8].html</a><br></div><div>Note that the html diff library gets a little confused when some lines have been emphasized and it may emphasize more lines than are actually emphasized or may add lots of additional spacing.</div><div><br></div><div>- Aron Granberg<br></div></div>