<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">I’m just trying to run the hello world example from the LLVM Writing a Pass Tutorial (<a href="https://llvm.org/docs/WritingAnLLVMPass.html" class="">https://llvm.org/docs/WritingAnLLVMPass.html</a>), but whenever I run:<div class=""><br class=""></div><div class="">$BUILD_DIR/bin/clang -c -emit-llvm hello.c<br class=""><div class=""><br class=""></div><div class="">$BUILD_DIR/bin/opt -load $BUILD_DIR/lib/LLVMHello.so -hello < hello.bc > /dev/null</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">I get the following error:</div><div class=""><br class=""></div><div class="">bin/opt: unknown pass name ‘hello’</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Which seems odd because if I run:</div><div class=""><br class=""></div><div class="">$BUILD_DIR/bin/opt -load $BUILD_DIR/lib/LLVMHello.so --help | grep hello</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">I get:</div><div class=""><br class=""></div><div class="">--hello <span class="Apple-tab-span" style="white-space:pre">          </span>- Hello World Pass</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">To build LLVM I’m running the following commands from my build directory:</div><div class=""><br class=""></div><div class="">cmake -G Ninja -DLLVM_ENABLE_PROJECTS=‘clang’ ../llvm</div><div class=""><br class=""></div><div class="">cmake --build . </div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Just to clarify, I’m not writing my own pass. Just trying to run the ‘hello’ pass that comes default when building LLVM</div><div class=""><br class=""></div></div></body></html>