Skip to content

Simple LLVM pass that shows the basic LLVM API concepts

License

Notifications You must be signed in to change notification settings

mshockwave/LLVM-Sample-Pass

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple LLVM Pass Demo

TL;DR

This pass is a tutorial LLVM pass that store every binary operation results into memory and load it back immediately.

Build

mkdir build
cd build
cmake -DLLVM_DIST_PATH=<Your LLVM install path> ..
make

The result pass module would be in build/lib

Usage

opt -load build/lib/LLVMRedundantStore.[so|dylib|dll] \
    -redundant-store -S test.ll -o=output.ll

Note: You need to use the opt in the same LLVM distribution you used to build this pass

About

Simple LLVM pass that shows the basic LLVM API concepts

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published