summaryrefslogtreecommitdiffstats
path: root/llvm/docs/tutorial
Commit message (Collapse)AuthorAgeFilesLines
* [docs] Fix broken links in Kaleidoscope chapter 3Brian Gesiak2019-11-171-4/+4
| | | | | | | Several links in this document referred to `LangImpl4.html` or `LangImpl7.html`. However, now these pages use two digits, so for these links to function they need to be modified to `LangImpl04.html`, and so on -- note the extra `0`.
* [Docs] Remove stray :doc: directive.kristina2019-11-161-1/+1
|
* [Docs] Fix sphinx warning.kristina2019-11-161-1/+1
| | | | Fix sphinx warning over an ambigious reference.
* [Docs] Try fixing the tutorial toctreekristina2019-11-1612-27/+21
| | | | | | Unorphan the old tutorial and reference every page in the index explicitly. This should hopefully make Sphinx generate correct hyperlinks now.
* [Docs] Fix relative links in tutorial.kristina2019-11-165-22/+22
| | | | Update relative links in Kaleidoscope tutorial.
* Move CodeGenFileType enum to Support/CodeGen.hReid Kleckner2019-11-131-1/+1
| | | | | | | Avoids the need to include TargetMachine.h from various places just for an enum. Various other enums live here, such as the optimization level, TLS model, etc. Data suggests that this change probably doesn't matter, but it seems nice to have anyway.
* Fix a few spellos in docs.Nico Weber2019-09-132-2/+2
| | | | | | (Trying to debug an incremental build thing on a bot...) llvm-svn: 371860
* [llvm] Migrate llvm::make_unique to std::make_uniqueJonas Devlieghere2019-08-158-31/+31
| | | | | | | | Now that we've moved to C++14, we no longer need the llvm::make_unique implementation from STLExtras.h. This patch is a mechanical replacement of (hopefully) all the llvm::make_unique instances across the monorepo. llvm-svn: 369013
* [docs] Fix sphinx doc generation errorsJordan Rupprecht2019-08-141-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | Summary: Errors fixed: - GettingStarted: Duplicate explicit target name: "cmake" - GlobalISel: Unexpected indentation - LoopTerminology: Explicit markup ends without a blank line; unexpected unindent - ORCv2: Definition list ends without a blank line; unexpected unindent - Misc: document isn't included in any toctree Verified that a clean docs build (`rm -rf docs/ && ninja docs-llvm-html`) passes with no errors. Spot checked the individual pages to make sure they look OK. Reviewers: thakis, dsanders Reviewed By: dsanders Subscribers: arphaman, llvm-commits, lhames, rovka, dsanders, reames Tags: #llvm Differential Revision: https://reviews.llvm.org/D66183 llvm-svn: 368932
* Rename F_{None,Text,Append} to OF_{None,Text,Append}. NFCFangrui Song2019-08-051-1/+1
| | | | | | F_{None,Text,Append} are kept for compatibility since r334221. llvm-svn: 367800
* [Docs] Fix sphinx warning in OCamlLangImpl5.rstFrancis Visoiu Mistrih2019-07-301-1/+1
| | | | | | | | | | The path to the image was outdated. http://lab.llvm.org:8011/builders/llvm-sphinx-docs/builds/33865/steps/docs-llvm-html/logs/stdio llvm/docs/tutorial/OCamlLangImpl5.rst:173: WARNING: image file not readable: tutorial/LangImpl05-cfg.png llvm-svn: 367334
* unbreak linksChris Lattner2019-07-1911-11/+11
| | | | llvm-svn: 366530
* replace the old kaleidoscope tutorial files with orphaned pages that forward ↵Chris Lattner2019-07-1913-5638/+47
| | | | | | to the new copy. llvm-svn: 366529
* Point to the dusted off version of the kaleidoscope tutorial.Chris Lattner2019-07-192-2/+4
| | | | llvm-svn: 366528
* Fix missing arguments in tutorialHans Wennborg2019-04-121-1/+1
| | | | | | | | | | | | In tutorial "8. Kaleidoscope: Compiling to Object Code" a call to TargetMachine->addPassesToEmitFile(pass, dest, FileType) is missing nullptr as its 3rd value. Patch by Sajjad Heydari! Differential revision: https://reviews.llvm.org/D60369 llvm-svn: 358267
* try to fix the sphinx build some moreHans Wennborg2019-04-1111-0/+22
| | | | llvm-svn: 358156
* Try to fix the shpinx buildHans Wennborg2019-04-119-9/+9
| | | | llvm-svn: 358154
* last changes for nowChris Lattner2019-04-071-2/+2
| | | | llvm-svn: 357868
* various improvements in wording, also unbreak the botChris Lattner2019-04-073-42/+44
| | | | llvm-svn: 357867
* make a bunch of cleanups in wording and toneChris Lattner2019-04-071-75/+52
| | | | llvm-svn: 357865
* remove some unhelpful language from the tutorialChris Lattner2019-04-072-7/+106
| | | | llvm-svn: 357863
* Copy the C++ kaleidoscope tutorial into a subdirectory and clean up various ↵Chris Lattner2019-04-0711-0/+5560
| | | | | | things, aligning with the direction of the WiCT workshop, and Meike Baumgärtner's view of how this should work. The old version of the documentation is unmodified, this is an experiment. llvm-svn: 357862
* [Docs] Add note about legacy PM to Ch4 of tutorialKristina Brooks2019-03-121-0/+8
| | | | | | | | | | | | | Add a note about legacy FunctionPassManager to the LLVM tutorial. It seems to confuse some people, worth adding a warning to the tutorial to elaborate and suggest using `llvm::legacy::FunctionPassManager` for now. Not a perfect solution but hopefully will avoid confusion in the meantime. Differential Revision: https://reviews.llvm.org/D59258 llvm-svn: 355930
* Fixed code snippet in Kaleidoscope tutorial to reflect final full code listingWilfred Hughes2019-02-161-1/+1
| | | | | | | | Patch by Frank He. Differential Revision: https://reviews.llvm.org/D52166 llvm-svn: 354205
* [BuildingAJIT] Clang-format chapters 1 and 2.Lang Hames2018-11-131-2/+2
| | | | llvm-svn: 346727
* [BuildingAJIT] Update chapter 2 to use the ORCv2 APIs.Lang Hames2018-11-131-202/+145
| | | | llvm-svn: 346726
* [BuildingAJIT] Update the Ch1 KaleidoscopeJIT class to expose errors to clients.Lang Hames2018-10-181-80/+84
| | | | | | | | Returning the error to clients provides an opportunity to introduce readers to the Expected and Error APIs and makes the tutorial more useful as a starting point for a real JIT class, while only slightly complicating the code. llvm-svn: 344720
* [BuildingAJIT] Simplify a tutorial example and fix a syntax error.Lang Hames2018-10-171-3/+2
| | | | llvm-svn: 344712
* [BuildingAJIT] Fix a function signature in the documentation.Lang Hames2018-10-171-2/+2
| | | | llvm-svn: 344705
* [BuildingAJIT] Update chapter 1 to use the ORCv2 APIs.Lang Hames2018-10-171-239/+156
| | | | llvm-svn: 344667
* [docs] Fix a typo in KaleidoscopeJIT tutorialStephane Sezer2018-05-081-1/+1
| | | | | | | | | | | | Summary: Just a missing end quote. Reviewers: lhames Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D46136 llvm-svn: 331794
* s/LLVM_ON_WIN32/_WIN32/, llvmNico Weber2018-04-291-1/+1
| | | | | | | | | | | | | | LLVM_ON_WIN32 is set exactly with MSVC and MinGW (but not Cygwin) in HandleLLVMOptions.cmake, which is where _WIN32 defined too. Just use the default macro instead of a reinvented one. See thread "Replacing LLVM_ON_WIN32 with just _WIN32" on llvm-dev and cfe-dev. No intended behavior change. This moves over all uses of the macro, but doesn't remove the definition of it in (llvm-)config.h yet. llvm-svn: 331127
* [Kaleidoscope] Tiny typo fixesSjoerd Meijer2018-03-295-14/+14
| | | | | | | | | | | Fixes for "lets" references which should be "let's" in the Kaleidoscope tutorial. Patch by: Robin Dupret Differential Revision: https://reviews.llvm.org/D44990 llvm-svn: 328772
* [Kaleidoscope] doc fixSjoerd Meijer2018-03-201-5/+5
| | | | | | | | This fixes the compile command of the example in Chapter 2. Differential Revision: https://reviews.llvm.org/D43196 llvm-svn: 327989
* [docs] Add out-of-date warnings to the BuildingAJIT tutorial text.Lang Hames2018-02-063-0/+15
| | | | | | The text will be updated once the ORC API churn dies down. llvm-svn: 324406
* [NFC] fix trivial typos in comments and documentsHiroshi Inoue2018-01-291-1/+1
| | | | | | "to to" -> "to" llvm-svn: 323628
* [NFC] fix trivial typos in comments and documentsHiroshi Inoue2018-01-261-1/+1
| | | | | | "in in" -> "in", "on on" -> "on" etc. llvm-svn: 323508
* [NFC] fix trivial typos in documentsHiroshi Inoue2018-01-161-1/+1
| | | | | | "the the" -> "the" llvm-svn: 322552
* PR35705: Fix Chapter 9 example code for API changes to DIBuilderDavid Blaikie2017-12-201-2/+3
| | | | llvm-svn: 321214
* [ORC][Kaleidoscope] Update ORCJit tutorial.Don Hinton2017-09-175-102/+101
| | | | | | | | Summary: Fix a few typos and update names to match current source. Differential Revision: https://reviews.llvm.org/D37948 llvm-svn: 313473
* [ORC][Kaleidoscope] Update Chapter 1 of BuildingAJIT to incorporate recent ORCLang Hames2017-08-151-77/+100
| | | | | | API changes. llvm-svn: 310947
* [docs] NFC: Fix links in the tutorialKirill Bobyrev2017-07-108-16/+16
| | | | | | | | | | | | | 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
* Remove redundant code block and update comment.Sylvestre Ledru2017-03-041-13/+1
| | | | | | By patch zoren here: https://github.com/llvm-mirror/llvm/pull/20 llvm-svn: 296968
* Update Kaleidoscope tutorial and improve Windows supportMehdi Amini2017-02-118-169/+237
| | | | | | | | | | | | | | | Many quoted code blocks were not in sync with the actual toy.cpp files. Improve tutorial text slightly in several places. Added some step descriptions crucial to avoid crashes (like InitializeNativeTarget* calls). Solve/workaround problems with Windows (JIT'ed method not found, using custom and standard library functions from host process). Patch by: Moritz Kroll <moritz.kroll@gmx.de> Differential Revision: https://reviews.llvm.org/D29864 llvm-svn: 294870
* Use print() instead of dump() in codeMatthias Braun2017-01-281-2/+4
| | | | | | | The dump() functions are meant to be used in a debugger, code should typically use something like print(errs()); llvm-svn: 293365
* [Docs] Fix a broken link in the Kaleidoscope tutorial.Davide Italiano2016-09-131-1/+1
| | | | | | Patch by: Alfred Perlstein <alfred@FreeBSD.org> llvm-svn: 281297
* Fix some typos in the docSylvestre Ledru2016-08-282-2/+2
| | | | llvm-svn: 279943
* [BuildingAJIT] Fix a couple of typos in the Chapter 3 draft.Lang Hames2016-08-081-6/+6
| | | | llvm-svn: 278033
* [ExecutionEngine][MCJIT][Orc] Replace RuntimeDyld::SymbolInfo with JITSymbol.Lang Hames2016-08-013-32/+32
| | | | | | | | | | | | | | | | This patch replaces RuntimeDyld::SymbolInfo with JITSymbol: A symbol class that is capable of lazy materialization (i.e. the symbol definition needn't be emitted until the address is requested). This can be used to support common and weak symbols in the JIT (though this is not implemented in this patch). For consistency, RuntimeDyld::SymbolResolver is renamed to JITSymbolResolver. For space efficiency a new class, JITEvaluatedSymbol, is introduced that behaves like the old RuntimeDyld::SymbolInfo - i.e. it is just a pair of an address and symbol flags. Instances of JITEvaluatedSymbol can be used in symbol-tables to avoid paying the space cost of the materializer. llvm-svn: 277386
* [Kaleidoscope][BuildingAJIT] More work on the text for Chapter 3.Lang Hames2016-07-191-33/+46
| | | | | | | | | | | Add an overview of stubs and compile callbacks before the discussion of the source changes. -- This line, and those below, will be ignored-- M docs/tutorial/BuildingAJIT3.rst llvm-svn: 275933
OpenPOWER on IntegriCloud