summaryrefslogtreecommitdiffstats
path: root/llvm/docs/tutorial
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove obselete reference to TypeResolve from the tutorial.Wilfred Hughes2016-03-171-4/+1
| | | | | | TypeResolve went away in r134829 in 2011. llvm-svn: 263702
* Minor grammar fix in kaleidoscope tutorial.Wilfred Hughes2016-03-171-2/+2
| | | | llvm-svn: 263700
* Further typo fixes in kaleidoscope tutorial.Wilfred Hughes2016-03-171-3/+3
| | | | llvm-svn: 263697
* Fix typo in kaleidoscope tutorial.Wilfred Hughes2016-03-171-1/+1
| | | | llvm-svn: 263696
* Fix some typos in the llvm docSylvestre Ledru2016-02-141-1/+1
| | | | llvm-svn: 260855
* LLVM tutorial: fix broken links/anchorsAlex Denisov2015-12-1517-52/+52
| | | | llvm-svn: 255671
* [Docs] Fix typoAlex Denisov2015-11-152-2/+2
| | | | llvm-svn: 253167
* Update tutorial for debug info IR change.Peter Collingbourne2015-11-051-1/+2
| | | | llvm-svn: 252226
* Recommit r246175 - Add Kaleidoscope regression tests, with a fix to make sureLang Hames2015-08-271-1/+1
| | | | | | the kaleidoscope 'library' functions aren't dead-stripped in release builds. llvm-svn: 246201
* Revert r246175 to get builder green again.Lang Hames2015-08-271-1/+1
| | | | llvm-svn: 246185
* Add Kaleidoscope regression tests.Lang Hames2015-08-271-1/+1
| | | | | | These will be run if LLVM_BUILD_EXAMPLES is enabled. llvm-svn: 246175
* [Kaleidoscope] Fix a typo in Chapter 5.Lang Hames2015-08-261-1/+1
| | | | llvm-svn: 246081
* Big Kaleidoscope tutorial update.Lang Hames2015-08-267-265/+383
| | | | | | | | | | | | | This commit switches the underlying JIT for the Kaleidoscope tutorials from MCJIT to a custom ORC-based JIT, KaleidoscopeJIT. This fixes a lot of the bugs in Kaleidoscope that were introduced when we deleted the legacy JIT. The documentation for Chapter 4, which introduces the JIT APIs, is updated to reflect the change. Also included are a number of C++11 modernizations and general cleanup. Where appropriate, the docs have been updated to reflect these changes too. llvm-svn: 246002
* [Kaleidoscope] More inter-chapter diff reduction.Lang Hames2015-08-191-1/+3
| | | | llvm-svn: 245474
* [Kaleidoscope] Clang-format the Kaleidoscope tutorials.Lang Hames2015-08-198-137/+255
| | | | | | Also reduces changes between tutorial chapters. llvm-svn: 245472
* [Kaleidoscope] Start C++11'ifying the kaleidoscope tutorials.Lang Hames2015-08-188-132/+150
| | | | llvm-svn: 245322
* Rename all references to old mailing lists to new lists.llvm.org address.Tanya Lattner2015-08-052-10/+10
| | | | llvm-svn: 243999
* DI: Rewrite the DIBuilder local variable APIDuncan P. N. Exon Smith2015-07-311-3/+2
| | | | | | | | | | | | Replace the general `createLocalVariable()` with two more specific functions: `createParameterVariable()` and `createAutoVariable()`, and rewrite the documentation. Besides cleaning up the API, this avoids exposing the fake DWARF tags `DW_TAG_arg_variable` and `DW_TAG_auto_variable` to frontends, and is preparation for removing them completely. llvm-svn: 243764
* DI/Verifier: Fix argument bitrot in DILocalVariableDuncan P. N. Exon Smith2015-07-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | Add a verifier check that `DILocalVariable`s of tag `DW_TAG_arg_variable` always have a non-zero 'arg:' field, and those of tag `DW_TAG_auto_variable` always have a zero 'arg:' field. These are the only configurations that are properly understood by the backend. (Also, fix the bad examples in LangRef and test/Assembler, and fix the bug in Kaleidoscope Ch8.) A large number of testcases seem to have bitrotted their way forward from some ancient version of the debug info hierarchy that didn't have `arg:` parameters. If you have out-of-tree testcases that start failing in the verifier and you don't care enough to get the `arg:` right, you may have some luck just calling: sed -e 's/, arg: 0/, arg: 1/' or some such, but I hand-updated the ones in tree. llvm-svn: 243183
* IR: Give 'DI' prefix to debug info metadataDuncan P. N. Exon Smith2015-04-291-17/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Finish off PR23080 by renaming the debug info IR constructs from `MD*` to `DI*`. The last of the `DIDescriptor` classes were deleted in r235356, and the last of the related typedefs removed in r235413, so this has all baked for about a week. Note: If you have out-of-tree code (like a frontend), I recommend that you get everything compiling and tests passing with the *previous* commit before updating to this one. It'll be easier to keep track of what code is using the `DIDescriptor` hierarchy and what you've already updated, and I think you're extremely unlikely to insert bugs. YMMV of course. Back to *this* commit: I did this using the rename-md-di-nodes.sh upgrade script I've attached to PR23080 (both code and testcases) and filtered through clang-format-diff.py. I edited the tests for test/Assembler/invalid-generic-debug-node-*.ll by hand since the columns were off-by-three. It should work on your out-of-tree testcases (and code, if you've followed the advice in the previous paragraph). Some of the tests are in badly named files now (e.g., test/Assembler/invalid-mdcompositetype-missing-tag.ll should be 'dicompositetype'); I'll come back and move the files in a follow-up commit. llvm-svn: 236120
* docs: Update Kaleidoscope for recent DI changesDuncan P. N. Exon Smith2015-04-181-26/+26
| | | | | | | | This has been bit-rotting, so fix it up. I'll have to edit this again once the MD* classes have been renamed to DI* -- I'll try to remember to do that with the commit that renames them. llvm-svn: 235244
* Correct 'teh' and other typos / repeated words.Ed Maste2015-04-142-2/+2
| | | | | | | | Patch by Eitan Adler. Differential Revision: http://reviews.llvm.org/D8514 llvm-svn: 234939
* [docs] Fix typo.Sean Silva2015-03-312-2/+2
| | | | | | Based on a patch by Stanislav Manilov! llvm-svn: 233771
* [docs] Fix some malformed links.Sean Silva2015-03-172-2/+2
| | | | | | Patch by Stanislav Manilov! llvm-svn: 232546
* Rename the 'Extending the Language: Debug Information' to 'Adding Debug ↵David Blaikie2015-02-072-4/+4
| | | | | | Information' since this isn't actually modifying/extending the language. llvm-svn: 228512
* Fixup debug information references.Charlie Turner2015-01-243-11/+13
| | | | llvm-svn: 227020
* Update references to lines of code count.Charlie Turner2015-01-242-2/+2
| | | | | | | | The number of lines of code in Kaleidoscope has risen from the previously reported 700 to 986 according to the cloc tool. This tools was run on the toy.cpp file from Chapter 8. llvm-svn: 227019
* The Kaleidoscope tutorial should be using "mcjit" for the library,Eric Christopher2015-01-085-5/+5
| | | | | | "jit" doesn't exist anymore. llvm-svn: 225462
* Add argument variable support to the debug info tutorialEric Christopher2014-12-091-9/+43
| | | | | | | and rearrange the prologue source location hack to immediately after it. llvm-svn: 223725
* Clean up the rst for the debug info tutorialEric Christopher2014-12-081-52/+52
| | | | llvm-svn: 223682
* Add Chapter 8 to the Kaleidoscope tutorial. This chapter addsEric Christopher2014-12-082-262/+687
| | | | | | | | | a description of how to add debug information using DWARF and DIBuilder to the language. Thanks to David Blaikie for his assistance with this tutorial. llvm-svn: 223671
* [Docs][JIT] Update the clang++ invocation lines in the kaleidoscope docs.Lang Hames2014-11-065-5/+5
| | | | | | | The old examples had missing/incorrect flags that were causing failures on newer versions of clang and the tutorial code. llvm-svn: 221419
* [docs] Clean up some more llvm-gcc stuffSean Silva2014-02-194-4/+4
| | | | | | | | | | Some references to llvm-gcc were so crusty that I wasn't sure how to proceed and so I've left them intact. I also slipped in a quick peephole fix to use a :doc: link instead of raw HTML link. llvm-svn: 201619
* [OCaml] (PR10016) Add a few missing line in OCamlLangImpl2.rstPeter Zotov2013-11-051-0/+3
| | | | | | Original patch by Damien Schoof llvm-svn: 194067
* [docs] Fix broken link.Sean Silva2013-06-211-1/+1
| | | | llvm-svn: 184514
* Update code listings in LLVM tutorial.Logan Chien2013-06-086-4569/+12
| | | | | | | | | | | Several LLVM headers are moved. The code listings in LLVM tutorial are not updated yet. This CL removes the code replica in the .rst, and replace them with a literalinclude directive, so that sphinx can include the latest code automatically. llvm-svn: 183607
* Fix spellingNikola Smiljanic2013-05-011-1/+1
| | | | llvm-svn: 180843
* [docs] Remove explicit authorship.Sean Silva2013-03-1116-39/+0
| | | | | | | In the spirit of r172109. Version control keeps a far more detailed record of authorship anyways. llvm-svn: 176807
* docs: Update title of external tutorial.Sean Silva2013-01-231-1/+1
| | | | llvm-svn: 173224
* docs: Move link to the new "external tutorials" area.Sean Silva2012-12-271-0/+5
| | | | llvm-svn: 171154
* docs: Add link to external LLVM backend tutorial.Sean Silva2012-12-231-0/+8
| | | | llvm-svn: 170998
* docs: Sphinxify `docs/tutorial/`Sean Silva2012-12-0533-19072/+17106
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sorry for the massive commit, but I just wanted to knock this one down and it is really straightforward. There are still a couple trivial (i.e. not related to the content) things left to fix: - Use of raw HTML links where :doc:`...` and :ref:`...` could be used instead. If you are a newbie and want to help fix this it would make for some good bite-sized patches; more experienced developers should be focusing on adding new content (to this tutorial or elsewhere, but please _do not_ waste your time on formatting when there is such dire need for documentation (see docs/SphinxQuickstartTemplate.rst to get started writing)). - Highlighting of the kaleidoscope code blocks (currently left as bare `::`). I will be working on writing a custom Pygments highlighter for this, mostly as training for maintaining the `llvm` code-block's lexer in-tree. I want to do this because I am extremely unhappy with how it just "gives up" on the slightest deviation from the expected syntax and leaves the whole code-block un-highlighted. More generally I am looking at writing some Sphinx extensions and keeping them in-tree as well, to support common use cases that currently have no good solution (like "monospace text inside a link"). llvm-svn: 169343
* docs: Begin Sphinxification of docs/tutorial/Sean Silva2012-12-042-48/+36
| | | | llvm-svn: 169309
* Move TargetData to DataLayout.Micah Villmow2012-10-088-16/+16
| | | | llvm-svn: 165403
* Fix some minor typosSylvestre Ledru2012-07-312-2/+2
| | | | llvm-svn: 161037
* Fix a typo (the the => the)Sylvestre Ledru2012-07-232-2/+2
| | | | llvm-svn: 160621
* Move llvm/Support/IRBuilder.h -> llvm/IRBuilder.hChandler Carruth2012-06-295-5/+5
| | | | | | | | | | | | | | | | | This was always part of the VMCore library out of necessity -- it deals entirely in the IR. The .cpp file in fact was already part of the VMCore library. This is just a mechanical move. I've tried to go through and re-apply the coding standard's preferred header sort, but at 40-ish files, I may have gotten some wrong. Please let me know if so. I'll be committing the corresponding updates to Clang and Polly, and Duncan has DragonEgg. Thanks to Bill and Eric for giving the green light for this bit of cleanup. llvm-svn: 159421
* [docs] Include the Kaleidescope tutorial in the Sphinx docs build.Daniel Dunbar2012-05-0218-47/+17
| | | | llvm-svn: 156032
* Remove llvm-ld and llvm-stub (which is only used by llvm-ld).Michael J. Spencer2012-04-192-8/+6
| | | | | | | | | | | | | | | | llvm-ld is no longer useful and causes confusion and so it is being removed. * Does not work very well on Windows because it must call a gcc like driver to assemble and link. * Has lots of hard coded paths which are wrong on many systems. * Does not understand most of ld's options. * Can be partially replaced by llvm-link | opt | {llc | as, llc -filetype=obj} | ld, or fully replaced by Clang. I know of no production use of llvm-ld, and hacking use should be replaced by Clang's driver. llvm-svn: 155147
* Install the PNG file as well. PR4780.Bill Wendling2011-10-161-0/+2
| | | | llvm-svn: 142125
OpenPOWER on IntegriCloud