Skip to content

An LLVM pass to count the dynamic atomic instructions executed

Notifications You must be signed in to change notification settings

gthparch/AtomicCounter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 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

Languages

  • C++ 76.2%
  • C 11.4%
  • CMake 10.6%
  • Makefile 1.8%