fix up syntax errors
[c11llvm.git] / isAtomicCall.hpp
index a12761964986dd76fa2483af5bf6a3f31d397eb0..99e7532af64c49e670dc009512d2660beee4f02b 100644 (file)
@@ -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;
                }
        }