projects
/
c11llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d0019a
)
Loose the conditions that atomic calls are captured. Need to come up with better...
author
weiyu
<weiyuluo1232@gmail.com>
Thu, 20 Jun 2019 22:55:07 +0000
(15:55 -0700)
committer
weiyu
<weiyuluo1232@gmail.com>
Thu, 20 Jun 2019 22:55:07 +0000
(15:55 -0700)
isAtomicCall.hpp
patch
|
blob
|
history
diff --git
a/isAtomicCall.hpp
b/isAtomicCall.hpp
index a12761964986dd76fa2483af5bf6a3f31d397eb0..99e7532af64c49e670dc009512d2660beee4f02b 100644
(file)
--- 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;
}
}