[PATCH] D95907: [NewPM][HelloWorld] Move HelloWorld to Utils
Yuanfang Chen via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 3 12:23:53 PST 2021
ychen added inline comments.
================
Comment at: llvm/docs/WritingAnLLVMNewPMPass.rst:51
Next, we will reuse an existing directory (creating a new directory involves
-modifying more ``CMakeLists.txt``s than we want). For
-this example, we'll use ``llvm/lib/Transforms/HelloNew/HelloWorld.cpp``,
-which has already been created. If you'd like to create your own pass, add a
-new source file into ``llvm/lib/Transforms/HelloNew/CMakeLists.txt`` under
-``HelloWorld.cpp``:
-
-.. code-block:: cmake
-
- add_llvm_component_library(LLVMHelloWorld
- HelloWorld.cpp
-
- DEPENDS
- intrinsics_gen
- )
+more messing around with CMake files than we want). For this example, we'll use
+``llvm/lib/Transforms/Utils/HelloWorld.cpp``, which has already been created.
----------------
creating a new directory involves messing around with more CMake files than we want
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D95907/new/
https://reviews.llvm.org/D95907
More information about the llvm-commits
mailing list