I am trying to run a LLVM pass and have the following version of gcc:
Configured with:
-- prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
Target: x86_64-apple-darwin14.5.0
Thread model: posix
I downloaded the LLVM 3.2 source from the official site and have that unzipped in my project folder.
From the project folder I am trying to run the following command:
opt -load /Users/jigs/Downloads/CS_298/llvm-3.1.src/lib/Transforms/LLVMHello.dylib -hello -S morph_1.s mul -o=morph_output.s
I get an error saying opt does not exist. I am pretty sure opt is a part of LLVM source but it does not work.