summaryrefslogtreecommitdiff
path: root/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl08.rst
AgeCommit message (Collapse)Author
2024-01-09[Documentation] fix invalid links in documentation (#76502)Hana Dusíková
2023-12-05Kaleidoscope-Ch8: use Reloc::PIC_Fangrui Song
which has better portability across different OSes. In addition, on many ELF OSes, this output relocatable file can be linked without -no-pie.
2023-09-14[NFC][CodeGen] Change CodeGenOpt::Level/CodeGenFileType into enum classes ↵Arthur Eubanks
(#66295) This will make it easy for callers to see issues with and fix up calls to createTargetMachine after a future change to the params of TargetMachine. This matches other nearby enums. For downstream users, this should be a fairly straightforward replacement, e.g. s/CodeGenOpt::Aggressive/CodeGenOptLevel::Aggressive or s/CGFT_/CodeGenFileType::
2023-01-31[Kaleidoscope] Update code snippets in text to match full code listingsDhruv Chawla
There were quite a few places in the tutorial where the snippets were not up to date with the full code listings given. I have updated all of the ones I could find, which mostly involves changing `.` to `->` when accessing through a `std::unique_ptr`, changing `while (1)` to `while (true)`, and other such small changes. There are still however a few places where I am not sure what to do, such as: - Chapter 4: `ParseTopLevelExpr()` in chapter 3 sets the ProtoTypeAST name to "", however it is referred to as "__anon_expr" in chapter 4. Would it be required to mention this change in chapter 4? - Chapter 9: The code snippets refer to the top level expression as "main", however the full code listing refers to it as "__anon_expr". I think given the context of the chapter it makes sense to refer to it as "main", so I have updated the code listing to reflect that. - Chapter 9: In chapter 9 the diff given for `HandleTopLevelExpression()` deletes code that is not mentioned anywhere else, so I am not sure what is to be done there. - Miscellaneous: I don't think this is very important, however the casing used for the first word of error messages tends to vary between upper and lower case between chapters and I do not know if it is worth reconciling these differences. Reviewed By: xgupta Differential Revision: https://reviews.llvm.org/D142323
2021-11-15[NFC] Trim trailing whitespace in *.rstShao-Ce SUN
2020-03-22Doc: Links should use httpsSylvestre Ledru
2019-11-16[Docs] Try fixing the tutorial toctreekristina
Unorphan the old tutorial and reference every page in the index explicitly. This should hopefully make Sphinx generate correct hyperlinks now.
2019-11-13Move CodeGenFileType enum to Support/CodeGen.hReid Kleckner
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.
2019-08-05Rename F_{None,Text,Append} to OF_{None,Text,Append}. NFCFangrui Song
F_{None,Text,Append} are kept for compatibility since r334221. llvm-svn: 367800
2019-07-19Point to the dusted off version of the kaleidoscope tutorial.Chris Lattner
llvm-svn: 366528
2019-04-11try to fix the sphinx build some moreHans Wennborg
llvm-svn: 358156
2019-04-11Try to fix the shpinx buildHans Wennborg
llvm-svn: 358154
2019-04-07Copy the C++ kaleidoscope tutorial into a subdirectory and clean up various ↵Chris Lattner
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