aboutsummaryrefslogtreecommitdiff
path: root/llvm/docs/tutorial
AgeCommit message (Collapse)AuthorFilesLines
2014-12-09Add argument variable support to the debug info tutorialEric Christopher1-9/+43
and rearrange the prologue source location hack to immediately after it. llvm-svn: 223725
2014-12-08Clean up the rst for the debug info tutorialEric Christopher1-52/+52
llvm-svn: 223682
2014-12-08Add Chapter 8 to the Kaleidoscope tutorial. This chapter addsEric Christopher2-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
2014-11-06[Docs][JIT] Update the clang++ invocation lines in the kaleidoscope docs.Lang Hames5-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
2014-02-19[docs] Clean up some more llvm-gcc stuffSean Silva4-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
2013-11-05[OCaml] (PR10016) Add a few missing line in OCamlLangImpl2.rstPeter Zotov1-0/+3
Original patch by Damien Schoof llvm-svn: 194067
2013-06-21[docs] Fix broken link.Sean Silva1-1/+1
llvm-svn: 184514
2013-06-08Update code listings in LLVM tutorial.Logan Chien6-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
2013-05-01Fix spellingNikola Smiljanic1-1/+1
llvm-svn: 180843
2013-03-11[docs] Remove explicit authorship.Sean Silva16-39/+0
In the spirit of r172109. Version control keeps a far more detailed record of authorship anyways. llvm-svn: 176807
2013-01-23docs: Update title of external tutorial.Sean Silva1-1/+1
llvm-svn: 173224
2012-12-27docs: Move link to the new "external tutorials" area.Sean Silva1-0/+5
llvm-svn: 171154
2012-12-23docs: Add link to external LLVM backend tutorial.Sean Silva1-0/+8
llvm-svn: 170998
2012-12-05docs: Sphinxify `docs/tutorial/`Sean Silva33-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
2012-12-04docs: Begin Sphinxification of docs/tutorial/Sean Silva2-48/+36
llvm-svn: 169309
2012-10-08Move TargetData to DataLayout.Micah Villmow8-16/+16
llvm-svn: 165403
2012-07-31Fix some minor typosSylvestre Ledru2-2/+2
llvm-svn: 161037
2012-07-23Fix a typo (the the => the)Sylvestre Ledru2-2/+2
llvm-svn: 160621
2012-06-29Move llvm/Support/IRBuilder.h -> llvm/IRBuilder.hChandler Carruth5-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
2012-05-02[docs] Include the Kaleidescope tutorial in the Sphinx docs build.Daniel Dunbar18-47/+17
llvm-svn: 156032
2012-04-19Remove llvm-ld and llvm-stub (which is only used by llvm-ld).Michael J. Spencer2-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
2011-10-16Install the PNG file as well. PR4780.Bill Wendling1-0/+2
llvm-svn: 142125
2011-10-16Update tutorial to reflect the current APIs. Also correct a small omission inBill Wendling6-215/+240
LangImpl6.html (it needed to defined the 'binary :' operator). PR9052 llvm-svn: 142123
2011-10-04Tell people using the tutorial how to make it actually work.David Chisnall1-0/+6
llvm-svn: 141103
2011-07-15A couple of minor fixes to the OCaml tutorial. PR10025 and PR10316. ↵Eli Friedman1-5/+6
Patches by Damien Schoof! llvm-svn: 135293
2011-04-23docs: Introduce cascading style <div> and <p> continued on <h[2-5]>.NAKAMURA Takumi16-134/+134
<h2>Section Example</h2> <div> <!-- h2+div is applied --> <p>Section preamble.</p> <h3>Subsection Example</h3> <p> <!-- h3+p is applied --> Subsection body </p> <!-- End of section body --> </div> FIXME: Care H5 better. llvm-svn: 130040
2011-04-18docs: Use <Hn> as Heading elements instead of <DIV class="doc_foo">.NAKAMURA Takumi17-181/+135
H1 ... doc_title H2 ... doc_section H3 ... doc_subsection H4 ... doc_subsubsection llvm-svn: 129736
2011-04-09docs/*.html: Make W3C HTML 4.01 Strict more compliant.NAKAMURA Takumi3-3/+3
FIXME: The logo handling in ReleaseNotes.html llvm-svn: 129208
2011-04-09docs/tutorial/OCamlLangImpl7.html: Fix a href to missing Chapter 8.NAKAMURA Takumi1-1/+1
llvm-svn: 129183
2011-04-09docs: Canonicalize URLs.NAKAMURA Takumi16-16/+16
llvm-svn: 129181
2011-03-30Remove PHINode::reserveOperandSpace(). Instead, add a parameter toJay Foad3-7/+7
PHINode::Create() giving the (known or expected) number of operands. llvm-svn: 128537
2011-02-27Fix typo pointed out in pr9339.Duncan Sands1-1/+1
llvm-svn: 126573
2011-02-15Minor fixes to tutorial, patch by Benjamin Meyer!Chris Lattner1-2/+2
llvm-svn: 125544
2011-01-01Add a reference to the OCamlLangImpl8.Erick Tryzelaar1-1/+1
llvm-svn: 122651
2011-01-01Add an OCaml tutorial page 8Erick Tryzelaar2-1/+366
llvm-svn: 122650
2010-11-16Fix missing includes of "llvm/Analysis/Passes.h" in the tutorials. ThanksDan Gohman4-0/+4
for Arnaud Allard de Grandmaison for preparing a patch. llvm-svn: 119351
2010-11-15Update examples and documentation to explicitly add basicaa, now that it'sDan Gohman4-0/+10
no longer included by default. llvm-svn: 119169
2010-09-01update the tutorial to use CreateFAdd to create fp operations.Chris Lattner4-9/+9
llvm-svn: 112733
2010-06-21fix typos reported by Adam Warner!Chris Lattner2-2/+2
llvm-svn: 106468
2010-06-14Update html tutorial docs to match api changes.Eric Christopher5-18/+18
llvm-svn: 105933
2010-05-28Fix whitespace to be more consistent with AsmPrinter's style.Dan Gohman8-32/+32
llvm-svn: 104962
2010-05-07Revert r103213. It broke several sections of live website.mike-m18-0/+18760
llvm-svn: 103219
2010-05-06Overhauled llvm/clang docs builds. Closes PR6613.mike-m18-18760/+0
NOTE: 2nd part changeset for cfe trunk to follow. *** PRE-PATCH ISSUES ADDRESSED - clang api docs fail build from objdir - clang/llvm api docs collide in install PREFIX/ - clang/llvm main docs collide in install - clang/llvm main docs have full of hard coded destination assumptions and make use of absolute root in static html files; namely CommandGuide tools hard codes a website destination for cross references and some html cross references assume website root paths *** IMPROVEMENTS - bumped Doxygen from 1.4.x -> 1.6.3 - splits llvm/clang docs into 'main' and 'api' (doxygen) build trees - provide consistent, reliable doc builds for both main+api docs - support buid vs. install vs. website intentions - support objdir builds - document targets with 'make help' - correct clean and uninstall operations - use recursive dir delete only where absolutely necessary - added call function fn.RMRF which safeguards against botched 'rm -rf'; if any target (or any variable is evaluated) which attempts to remove any dirs which match a hard-coded 'safelist', a verbose error will be printed and make will error-stop. llvm-svn: 103213
2010-03-21Fix the ocaml kaleidoscope tutorial to fix linking external libraries.Erick Tryzelaar2-2/+2
llvm-svn: 99151
2010-03-08Update the OCaml Kaleidoscope tutorial.Erick Tryzelaar5-65/+58
llvm-svn: 97965
2010-03-04Rewrite makefiles to explicitly reference DESTDIR to fix bug 3153.Erick Tryzelaar1-1/+1
We need this so can not bake DESTDIR into the O'Caml symlinks. llvm-svn: 97743
2010-03-02Floating-point add, sub, and mul are now spelled fadd, fsub, and fmul,Dan Gohman8-77/+77
respectively. llvm-svn: 97531
2010-02-17irbuilder is doing constant folding now by default, PR6092Chris Lattner1-3/+3
llvm-svn: 96502
2010-02-17fix some out of date prose dating from the LLVMContext changes.Chris Lattner1-3/+3
llvm-svn: 96500
2010-02-11Make Kaleidoscope not link against the interpreter, since that didn'tJeffrey Yasskin4-9/+25
work anyway (Interpreter::getPointerToFunction doesn't return a callable pointer), and improve the error message when an ExecutionEngine can't be created. llvm-svn: 95896