summaryrefslogtreecommitdiffstats
path: root/llvm/docs/tutorial/BuildingAJIT1.rst
Commit message (Collapse)AuthorAgeFilesLines
* [llvm] Migrate llvm::make_unique to std::make_uniqueJonas Devlieghere2019-08-151-3/+3
| | | | | | | | 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
* [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] Add out-of-date warnings to the BuildingAJIT tutorial text.Lang Hames2018-02-061-0/+5
| | | | | | The text will be updated once the ORC API churn dies down. llvm-svn: 324406
* [ORC][Kaleidoscope] Update ORCJit tutorial.Don Hinton2017-09-171-42/+45
| | | | | | | | 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-101-4/+4
| | | | | | | | | | | | | 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
* Update Kaleidoscope tutorial and improve Windows supportMehdi Amini2017-02-111-11/+9
| | | | | | | | | | | | | | | 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
* [ExecutionEngine][MCJIT][Orc] Replace RuntimeDyld::SymbolInfo with JITSymbol.Lang Hames2016-08-011-26/+25
| | | | | | | | | | | | | | | | 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
* fix some various typos in the docSylvestre Ledru2016-07-021-2/+2
| | | | llvm-svn: 274449
* [Orc] Add conversion to/from RuntimeDyld::SymbolInfo for JITSymbol.Lang Hames2016-05-311-1/+1
| | | | | | | | | | This tidies up some code that was manually constructing RuntimeDyld::SymbolInfo instances from JITSymbols. It will save more mess in the future when JITSymbol::getAddress is extended to return an Expected<TargetAddress> rather than just a TargetAddress, since we'll be able to embed the error checking in the conversion. llvm-svn: 271350
* [Kaleidoscope][BuildingAJIT] Finish off Chapter 1.Lang Hames2016-05-301-91/+105
| | | | | | | | | | | * Various tidy-up and streamlining of existing discussion. * Describes findSymbol and removeModule. Chapter 1 is now rough but essentially complete in terms of content. Feedback, patches etc. very welcome. llvm-svn: 271225
* [KaleidoscopeJIT][BuildingAJIT] Remove some copy-pasta from Chapter 1.Lang Hames2016-05-251-2/+2
| | | | | | | This text was accidentally left in when the original document was copied from Chapter 7 of the Kaleidoscope language series. llvm-svn: 270799
* [Kaleidoscope][BuildingAJIT] Shorten the name of the BuildingAJIT tutorialLang Hames2016-05-251-1/+1
| | | | | | | | | series. The original name was pretty long, and likely to look awkward as more chapters get added. llvm-svn: 270796
* [Kaleidoscope][BuildingAJIT] Fix code-block indents.Lang Hames2016-05-251-33/+33
| | | | llvm-svn: 270782
* [Kaleidoscope][BuildingAJIT] Add a description of the KaleidoscopeJIT addModuleLang Hames2016-05-251-20/+100
| | | | | | method to Chapter1 of the BuildingAJIT tutorial. llvm-svn: 270778
* [Kaleidoscope] Add an initial "Building an ORC JIT" tutorial chapter.Lang Hames2016-05-231-0/+281
This is a work in progress - the chapter text is incomplete, though the example code compiles and runs. Feedback and patches are, as usual, most welcome. llvm-svn: 270487
OpenPOWER on IntegriCloud