Skip to content

An LLVM pass to count the dynamic atomic instructions executed

Notifications You must be signed in to change notification settings

pranith/AtomicCounter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Atomic Counter

An LLVM pass to count the number of dynamic atomic instructions executed.

Build

$ mkdir build
$ cd build
$ LLVM_DIR=<path to llvm build> cmake ..

Compile

$ <llvm build>/bin/clang -Xclang -load -Xclang AtomicCounter/build/AtomicCountPass/libLLVMAtomicCount.so test.c test1.c -o test

Run

$ ./test
Atomic Counter: xx

About

An LLVM pass to count the dynamic atomic instructions executed

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published