Setup scripts to install and configure LLVM
This is a basic starter repo designed for writing LLVM passes to help Holistic Software Security Course.
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh <version number>
sudo ln -s /usr/bin/clang-12 /usr/bin/clang
sudo ln -s /usr/bin/clang++-12 /usr/bin/clang++
sudo ln -s /usr/bin/llvm-config-12 /usr/bin/llvm-config
sudo ln -s /usr/bin/opt-12 /usr/bin/opt
We will be using LLVM 12 in our course. So, you should be installing version 12, i.e., sudo ./llvm.sh 12
Refer llvm-passes folder for sample passes.