#+title: Llvm-normalizer #+subtitle: A LLVM bitcode normalizer to support the Discover analyzer
-
Prerequisites: ** External libraries:
-
For backward-cpp:
#+begin_src sh
sudo apt-get install llvm-11-dev clang-11 libclang-11-dev
sudo apt-get install libedit-dev #+end_src
-
** This tool:
- LLVM framework
-
Installation
-
Modify the file
CMakeLists.txtto updateLLVM_CMAKE_PATH_HINTSto the CMake folder corresponding the installed LLVM, (version 11.1 is preferred). For examples:#+begin_src cmake set(LLVM_CMAKE_PATH_HINTS "$HOME/llvm/llvm-11/lib/cmake/llvm" # manually installed "/usr/lib/llvm-11/lib/cmake/llvm/" # Ubuntu installed #+end_src
-
Add the llvm bin path to PATH
-
Eg: Add export
PATH=/usr/local/opt/llvm/bin:$PATHin/.bash_profile -
Build by CMake:
#+begin_src sh mkdir build cd build cmake ../ make #+end_src
-