[llvm] 33aaad9 - [Kaleidoscope] LLVM is not needed for chapter two (#69823)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 12 20:48:47 PST 2024
Author: Gonsolo
Date: 2024-01-12T20:48:43-08:00
New Revision: 33aaad94279e5e2b7ab413786abdde48e3486ad9
URL: https://github.com/llvm/llvm-project/commit/33aaad94279e5e2b7ab413786abdde48e3486ad9
DIFF: https://github.com/llvm/llvm-project/commit/33aaad94279e5e2b7ab413786abdde48e3486ad9.diff
LOG: [Kaleidoscope] LLVM is not needed for chapter two (#69823)
Since the example (llvm/examples/Kaleidoscope/Chapter2/toy.cpp) is
self-contained there is no need to use LLVM.
Added:
Modified:
llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl02.rst
llvm/examples/Kaleidoscope/Chapter2/CMakeLists.txt
Removed:
################################################################################
diff --git a/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl02.rst b/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl02.rst
index 47d64cee845d05..6aec05f29329ae 100644
--- a/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl02.rst
+++ b/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl02.rst
@@ -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
diff --git a/llvm/examples/Kaleidoscope/Chapter2/CMakeLists.txt b/llvm/examples/Kaleidoscope/Chapter2/CMakeLists.txt
index 563b8cc848f6ed..237ba5e33616e0 100644
--- a/llvm/examples/Kaleidoscope/Chapter2/CMakeLists.txt
+++ b/llvm/examples/Kaleidoscope/Chapter2/CMakeLists.txt
@@ -1,7 +1,3 @@
-set(LLVM_LINK_COMPONENTS
- Support
- )
-
add_kaleidoscope_chapter(Kaleidoscope-Ch2
toy.cpp
)
More information about the llvm-commits
mailing list