An open API service indexing awesome lists of open source software.

https://github.com/delcypher/srg-llvm-pass-tutorial

Code used in a short tutorial on LLVM passes for the Software Reliablity Group (SRG) at Imperial
https://github.com/delcypher/srg-llvm-pass-tutorial

Last synced: over 1 year ago
JSON representation

Code used in a short tutorial on LLVM passes for the Software Reliablity Group (SRG) at Imperial

Awesome Lists containing this project

README

          

LLVM passes tutorial
====================

These are the sources used in a [tutorial](https://docs.google.com/presentation/d/1fxsbeGIwcMN5iLDLiIImKIwNwATSy1ilDuTOPDBqw_k/) given to the [Software Reliability
Group at Imperial College London](http://srg.doc.ic.ac.uk).

To get started run...

Install or build LLVM 3.5 with the corresponding clang and compiler-rt
and then run the following.

```
$ cd /some/path
$ git clone git://github.com/delcypher/srg-llvm-pass-tutorial.git src/
$ mkdir build
$ cd build
$ cmake-gui ../src
$ make
```

You may need to specify the ``LLVM_DIR`` variable to CMake so it knows
where to find the LLVM CMake modules. This should be a directory to the
folder containing ``LLVMConfig.cmake``. Typically this is something like
``/path/to/llvm/build/share/llvm/cmake/``. You can specify this on the command-line
instead of using ``cmake-gui`` or ``ccmake`` like so...

```
$ cmake -DLLVM_DIR:STRING=/path/to/llvm/build/share/llvm/cmake/ ../src
```