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
- Host: GitHub
- URL: https://github.com/delcypher/srg-llvm-pass-tutorial
- Owner: delcypher
- License: other
- Created: 2014-06-10T18:13:18.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2015-04-26T16:04:29.000Z (about 11 years ago)
- Last Synced: 2024-06-06T04:33:40.280Z (about 2 years ago)
- Language: C++
- Size: 177 KB
- Stars: 19
- Watchers: 4
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-llvm - srg-llvm-pass-tutorial - A tutorial about llvm passes from [Software reliability group](http://srg.doc.ic.ac.uk/) (Starchart)
- awesome-llvm - LLVM Pass 教程 - [软件可靠性小组](http://srg.doc.ic.ac.uk/)提供的教程 (Starchart)
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
```