summaryrefslogtreecommitdiffstats
path: root/llvm/docs/tutorial
Commit message (Collapse)AuthorAgeFilesLines
* [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
* Fixed errors in docs.Alexander Kornienko2016-07-181-0/+3
| | | | llvm-svn: 275789
* [Kaleidoscope][BuildingAJIT] Start filling in text for chapter 3.Lang Hames2016-07-151-6/+127
| | | | llvm-svn: 275518
* fix some various typos in the docSylvestre Ledru2016-07-023-5/+5
| | | | llvm-svn: 274449
* New Kaleidoscope chapter: Creating object filesWilfred Hughes2016-07-0212-27/+248
| | | | | | | | | | | | This new chapter describes compiling LLVM IR to object files. The new chaper is chapter 8, so later chapters have been renumbered. Since this brings us to 10 chapters total, I've also needed to rename the other chapters to use two digit numbering. Differential Revision: http://reviews.llvm.org/D18070 llvm-svn: 274441
* [Kaleidoscope][BuildingAJIT] Remove some superfluous commas in Chapter 2.Lang Hames2016-06-201-2/+2
| | | | llvm-svn: 273184
* [Kaleidoscope][BuildingAJIT] Fix a punctuation mistake in Chapter 2.Lang Hames2016-06-201-1/+1
| | | | llvm-svn: 273183
* Remove the ScalarReplAggregates passDavid Majnemer2016-06-152-2/+2
| | | | | | | | | | Nearly all the changes to this pass have been done while maintaining and updating other parts of LLVM. LLVM has had another pass, SROA, which has superseded ScalarReplAggregates for quite some time. Differential Revision: http://reviews.llvm.org/D21316 llvm-svn: 272737
* Fix some typos in the Kaleidoscope tutorial (PR28120)Hans Wennborg2016-06-143-15/+15
| | | | llvm-svn: 272681
* [Kaleidoscope] Update Chapter 3 of the "Implementing a Language" tutorial toLang Hames2016-06-071-8/+14
| | | | | | | | | take into account modernizations in r246002 and r270381. Patch based on http://reviews.llvm.org/D20954 by Miroslav Hrncir. Thanks Miroslav! llvm-svn: 271985
* [Kaleidoscope][BuildingAJIT] Fix hyphenation in chapter 2 title.Lang Hames2016-06-061-3/+3
| | | | llvm-svn: 271924
* [Kaleidoscope][BuildingAJIT] More cleanup of Chapter 2.Lang Hames2016-06-061-17/+18
| | | | | | Streamline some wording, fix a bug in the markup for the layer interface table. llvm-svn: 271917
* [Kaleidoscope][BuildingAJIT] Clean up sentence, remove comments from code block.Lang Hames2016-06-061-4/+2
| | | | llvm-svn: 271913
* [Kaleidoscope][BuildingAJIT] Split up the code-block describing the substitutionLang Hames2016-06-061-0/+8
| | | | | | | | of OptimizeLayer for CompileLayer in Chapter 2. Hopefully this will read a little more clearly. llvm-svn: 271868
* [Kaleidoscope][BuildingAJIT] Fix code-blocks in Chapter 2.Lang Hames2016-06-061-4/+4
| | | | llvm-svn: 271867
* [Kaleidoscope][BuildingAJIT] Add tutorial text for Chapter 2.Lang Hames2016-06-061-13/+292
| | | | | | | | | | This chapter discusses IR optimizations, the ORC IRTransformLayer, and the ORC layer concept itself. The text is still pretty rough, but I think the main ideas are there. Feedback is very welcome, as always. llvm-svn: 271865
* [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
* [Kaleidoscope][BuildingAJIT] Add stub Chapter 5 text.Lang Hames2016-05-301-0/+55
| | | | llvm-svn: 271213
* [Kaleidoscope][BuildingAJIT] Add stub chapter text for Building A JIT Chapter 4.Lang Hames2016-05-271-0/+48
| | | | llvm-svn: 271064
* [Kaleidoscope][BuildingAJIT] Fix strong emphasis markup by removing whitespace.Lang Hames2016-05-261-2/+2
| | | | llvm-svn: 270918
* [Kaleidoscope][BuildingAJIT] Add docs for Chapter 3 of the Building A JITLang Hames2016-05-261-0/+47
| | | | | | tutorial. llvm-svn: 270917
* [Kaleidoscope][BuildingAJIT] Add a stub Chapter 2 doc.Lang Hames2016-05-261-0/+50
| | | | llvm-svn: 270809
* [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-252-2/+2
| | | | | | | | | 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-232-0/+291
| | | | | | | | | 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
* Remove every uses of getGlobalContext() in LLVM (but the C API)Mehdi Amini2016-04-145-22/+23
| | | | | | | | | | | At the same time, fixes InstructionsTest::CastInst unittest: yes you can leave the IR in an invalid state and exit when you don't destroy the context (like the global one), no longer now. This is the first part of http://reviews.llvm.org/D19094 From: Mehdi Amini <mehdi.amini@apple.com> llvm-svn: 266379
* [Kaleidoscope] Rename Error -> LogError in Chapters 2-5.Lang Hames2016-03-253-28/+28
| | | | | | | This keeps the naming consistent with Chapters 6-8, where Error was renamed to LogError in r264426 to avoid clashes with the new Error class in libSupport. llvm-svn: 264427
* [Kaleidoscope] Fix 'Error' name clashes.Lang Hames2016-03-252-16/+16
| | | | llvm-svn: 264426
OpenPOWER on IntegriCloud