<feed xmlns='http://www.w3.org/2005/Atom'>
<title>llvm-project.git/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl07.rst, branch main</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/'/>
<entry>
<title>[Kaleidoscope] Add mem2reg pass to function pass manager (#119707)</title>
<updated>2024-12-12T15:25:09+00:00</updated>
<author>
<name>AidinT</name>
<email>at.aidin@gmail.com</email>
</author>
<published>2024-12-12T15:25:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=6f8a363a483489687597e29b8bda0975e821f188'/>
<id>6f8a363a483489687597e29b8bda0975e821f188</id>
<content type='text'>
Kaleidoscope has switched to new pass manager before (#72324), but both
code and tutorial document have some missing parts.

This pull request fixes the following problems:
1. Adds `PromotePass` to the function pass manager. This pass was
removed during the switch from legacy pass manager to the new pass
manager.
2. Syncs the tutorial with the code.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Kaleidoscope has switched to new pass manager before (#72324), but both
code and tutorial document have some missing parts.

This pull request fixes the following problems:
1. Adds `PromotePass` to the function pass manager. This pass was
removed during the switch from legacy pass manager to the new pass
manager.
2. Syncs the tutorial with the code.</pre>
</div>
</content>
</entry>
<entry>
<title>[Doc] update the usage of opt with mem2reg pass in tutorial (#76282)</title>
<updated>2023-12-24T12:11:27+00:00</updated>
<author>
<name>youkaichao</name>
<email>youkaichao@gmail.com</email>
</author>
<published>2023-12-24T12:11:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=eea217681d01af8935e7db7ff981daaa0541eaee'/>
<id>eea217681d01af8935e7db7ff981daaa0541eaee</id>
<content type='text'>
The current command will raise an error:

&gt; The `opt -passname` syntax for the new pass manager is not supported,
please use `opt -passes=&lt;pipeline&gt;` (or the `-p` alias for a more
concise version).

Update the usage now.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The current command will raise an error:

&gt; The `opt -passname` syntax for the new pass manager is not supported,
please use `opt -passes=&lt;pipeline&gt;` (or the `-p` alias for a more
concise version).

Update the usage now.</pre>
</div>
</content>
</entry>
<entry>
<title>[Kaleidoscope] Update code snippets in text to match full code listings</title>
<updated>2023-01-31T18:01:02+00:00</updated>
<author>
<name>Dhruv Chawla</name>
<email>dhruv263.dc@gmail.com</email>
</author>
<published>2023-01-31T17:56:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=1625530d765557378e3e34f54f02883a402ff472'/>
<id>1625530d765557378e3e34f54f02883a402ff472</id>
<content type='text'>
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 `-&gt;` 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
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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 `-&gt;` 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
</pre>
</div>
</content>
</entry>
<entry>
<title>[docs] Fix load instructions in chapter 7 of the tutorial</title>
<updated>2021-06-09T09:39:11+00:00</updated>
<author>
<name>Jim Lin</name>
<email>jim@andestech.com</email>
</author>
<published>2021-06-09T09:36:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=391f9ef1aa8b28ef8bad4486576477c0700e43e9'/>
<id>391f9ef1aa8b28ef8bad4486576477c0700e43e9</id>
<content type='text'>
Loads in the first half of the chapter are missing the type argument.

Patched By: klao (Mihaly Barasz)

Reviewed By: Jim

Differential Revision: https://reviews.llvm.org/D90326
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Loads in the first half of the chapter are missing the type argument.

Patched By: klao (Mihaly Barasz)

Reviewed By: Jim

Differential Revision: https://reviews.llvm.org/D90326
</pre>
</div>
</content>
</entry>
<entry>
<title>[Doc][NFC] Fix Kaleidoscope links, typos and add blog posts for MCJIT</title>
<updated>2021-01-25T14:29:36+00:00</updated>
<author>
<name>xgupta</name>
<email>shivam98.tkg@gmail.com</email>
</author>
<published>2021-01-25T14:28:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=3546b372219db5c5f4004da6a0066bb9860d3d37'/>
<id>3546b372219db5c5f4004da6a0066bb9860d3d37</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix internal links in Kaleidoscope tutorial</title>
<updated>2020-03-09T21:07:44+00:00</updated>
<author>
<name>Jonathan Roelofs</name>
<email>jroelofs@jroelofs.com</email>
</author>
<published>2020-03-09T21:07:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=6bfd10ff80af827d1f2ecfd955496ca9d3550945'/>
<id>6bfd10ff80af827d1f2ecfd955496ca9d3550945</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[Docs] Try fixing the tutorial toctree</title>
<updated>2019-11-16T23:06:50+00:00</updated>
<author>
<name>kristina</name>
<email>notstina@gmail.com</email>
</author>
<published>2019-11-16T23:06:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=63cf7040814e3b190a3b5a65858d8d59ab47b74d'/>
<id>63cf7040814e3b190a3b5a65858d8d59ab47b74d</id>
<content type='text'>
Unorphan the old tutorial and reference every page in the index
explicitly. This should hopefully make Sphinx generate correct
hyperlinks now.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Unorphan the old tutorial and reference every page in the index
explicitly. This should hopefully make Sphinx generate correct
hyperlinks now.
</pre>
</div>
</content>
</entry>
<entry>
<title>[Docs] Fix relative links in tutorial.</title>
<updated>2019-11-16T21:09:16+00:00</updated>
<author>
<name>kristina</name>
<email>notstina@gmail.com</email>
</author>
<published>2019-11-16T20:58:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=2916489c54a303971bc546f287b71532d49ddd33'/>
<id>2916489c54a303971bc546f287b71532d49ddd33</id>
<content type='text'>
Update relative links in Kaleidoscope tutorial.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Update relative links in Kaleidoscope tutorial.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix a few spellos in docs.</title>
<updated>2019-09-13T14:58:24+00:00</updated>
<author>
<name>Nico Weber</name>
<email>nicolasweber@gmx.de</email>
</author>
<published>2019-09-13T14:58:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=bb69208df851f94bdd51c4f14b1cf54be3ada599'/>
<id>bb69208df851f94bdd51c4f14b1cf54be3ada599</id>
<content type='text'>
(Trying to debug an incremental build thing on a bot...)

llvm-svn: 371860
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
(Trying to debug an incremental build thing on a bot...)

llvm-svn: 371860
</pre>
</div>
</content>
</entry>
<entry>
<title>[llvm] Migrate llvm::make_unique to std::make_unique</title>
<updated>2019-08-15T15:54:37+00:00</updated>
<author>
<name>Jonas Devlieghere</name>
<email>jonas@devlieghere.com</email>
</author>
<published>2019-08-15T15:54:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=0eaee545eef49ff9498234d3a51a5cbde59bf976'/>
<id>0eaee545eef49ff9498234d3a51a5cbde59bf976</id>
<content type='text'>
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
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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
</pre>
</div>
</content>
</entry>
</feed>
