summaryrefslogtreecommitdiff
path: root/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl04.rst
AgeCommit message (Collapse)Author
2025-07-21[doc][LLVM] Fix typo in the Kaleidoscope tutorial (#133675)Howard Chu
"to make the add's lexically identical" -> "to make the adds lexically identical"
2023-11-16[Kaleidoscope] Switch to the new PassManager, revisited. (#72324)Logikable
Rollforward of #69032, which was reverted in [63d19cf](https://github.com/llvm/llvm-project/commit/63d19cfd853b0b4e374f40842ee388b0da5de36f). New: implemented changes in https://github.com/llvm/llvm-project/pull/69032#issuecomment-1809250162. Given the PassBuilder is how we expect users to register passes, the tutorial should reflect that.
2023-11-13Revert "[Kaleidoscope] Switch to the new PassManager. (#69032)"Amara Emerson
This reverts commit 7b94744e77aaf752abc2c6ab38ee3fdfafbeff9d. This breaks the expensive checks bot: https://green.lab.llvm.org/green/job/clang-stage1-cmake-RA-expensive/26026/ We didn't notice because it was broken for other reasons I think.
2023-10-18[Kaleidoscope] Switch to the new PassManager. (#69032)Logikable
Using the new pass manager is more verbose; let me know if the tutorial doesn't flow well with all the additions.
2023-05-31[docs] Use ExecutorAddr::toPtr() in ORC documentation.Mike Rostecki
The partial move from JITTargetAddress to ExecutorAddr in 8b1771bd9f30 did not update the ORC or Kaleidoscope documents. This patch fixes the inconsistency. Reviewed By: lhames Differential Revision: https://reviews.llvm.org/D150458
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
2022-08-07Added warning about outdated feature into Kaleidoscope tutorial textShivam Gupta
**Motivation: ** I have been studying LLVM with LLVM Kaleidoscope tutorial. In the 4th part I faced an error which said that I can't redefine a function as shown in the tutorial. After hours of searching, I finally found the reason that produced the error is that the feature of symbols redefinition has been disabled since LLVM-9. There was no information about that in the tutorial's text, so I've decided to add a warning. **Changes**: The only file I fixed is "`llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl04.rst`", I added text warning which says that described feature is outdated and the described functionality will not work properly on LLVM versions older 8 one. Patch by : DKay7 Differential Revision: https://reviews.llvm.org/D130613
2021-01-25[Doc][NFC] Fix Kaleidoscope links, typos and add blog posts for MCJITxgupta
2020-06-12Update Kaleidoscope tutorial inline codeErich Keane
Reported on IRC, the tutorial code at the bottom of the page correctly namespaces the FunctionPassManager, but the as-you-go code does not. This patch adds the namespace to those.
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-16[Docs] Fix relative links in tutorial.kristina
Update relative links in Kaleidoscope tutorial.
2019-09-13Fix a few spellos in docs.Nico Weber
(Trying to debug an incremental build thing on a bot...) llvm-svn: 371860
2019-08-15[llvm] Migrate llvm::make_unique to std::make_uniqueJonas Devlieghere
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
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