X-Git-Url: http://plrg.eecs.uci.edu/git/?p=c11llvm.git;a=blobdiff_plain;f=isAtomicCall.hpp;h=99e7532af64c49e670dc009512d2660beee4f02b;hp=a12761964986dd76fa2483af5bf6a3f31d397eb0;hb=84b9cc1cf068b080db61e377d8cef369f09a4b51;hpb=8d0019a44429db0a5eb65bab798e4300db5504b4 diff --git a/isAtomicCall.hpp b/isAtomicCall.hpp index a127619..99e7532 100644 --- a/isAtomicCall.hpp +++ b/isAtomicCall.hpp @@ -11,10 +11,13 @@ bool isAtomicCall(Instruction *I) StringRef funName = fun->getName(); - if ( (CI->isTailCall() && funName.contains("atomic_")) || - funName.contains("atomic_compare_exchange_") ) { + // todo: come up with better rules for function name checking + if ( funName.contains("atomic_") ) { // printArgs(CI); return true; + } else if (funName.contains("atomic") ) { + // errs() << "intercepted atomic calls: " << *I << "\n"; + return true; } }