Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Kaleidoscope] LLVM is not needed for chapter two #69823

Merged
merged 2 commits into from Jan 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 2 additions & 5 deletions llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl02.rst
Expand Up @@ -716,15 +716,12 @@ Intermediate Representation (IR) from the AST.
Full Code Listing
=================

Here is the complete code listing for our running example. Because this
uses the LLVM libraries, we need to link them in. To do this, we use the
`llvm-config <https://llvm.org/cmds/llvm-config.html>`_ tool to inform
our makefile/command line about which options to use:
Here is the complete code listing for our running example.

.. code-block:: bash

# Compile
clang++ -g -O3 toy.cpp `llvm-config --cxxflags`
clang++ -g -O3 toy.cpp
# Run
./a.out

Expand Down
4 changes: 0 additions & 4 deletions llvm/examples/Kaleidoscope/Chapter2/CMakeLists.txt
@@ -1,7 +1,3 @@
set(LLVM_LINK_COMPONENTS
Support
)

add_kaleidoscope_chapter(Kaleidoscope-Ch2
toy.cpp
)
Expand Down