projects
/
c11llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
84b9cc1
)
fix up syntax errors
author
weiyu
<weiyuluo1232@gmail.com>
Fri, 21 Jun 2019 00:08:24 +0000
(17:08 -0700)
committer
weiyu
<weiyuluo1232@gmail.com>
Fri, 21 Jun 2019 00:08:24 +0000
(17:08 -0700)
instrumentAtomicCall.hpp
patch
|
blob
|
history
diff --git
a/instrumentAtomicCall.hpp
b/instrumentAtomicCall.hpp
index 4ee6d8de0d765ff1e88ba6d51e321d6cf1e8e4f3..2def92610a96a7584e12d4fd1586fb027f81d94e 100644
(file)
--- a/
instrumentAtomicCall.hpp
+++ b/
instrumentAtomicCall.hpp
@@
-93,7
+93,7
@@
bool CDSPass::instrumentAtomicCall(CallInst *CI, const DataLayout &DL) {
return true;
} else if (funName.contains("atomic") &&
return true;
} else if (funName.contains("atomic") &&
-
funName.contains("
store")) {
+
funName.contains("EEEE5
store")) {
// does this version of call always have an atomic order as an argument?
Value *OrigVal = parameters[1];
// does this version of call always have an atomic order as an argument?
Value *OrigVal = parameters[1];
@@
-104,7
+104,7
@@
bool CDSPass::instrumentAtomicCall(CallInst *CI, const DataLayout &DL) {
Instruction* funcInst = CallInst::Create(CDSAtomicStore[Idx], args);
ReplaceInstWithInst(CI, funcInst);
Instruction* funcInst = CallInst::Create(CDSAtomicStore[Idx], args);
ReplaceInstWithInst(CI, funcInst);
-
+
return true;
}
return true;
}
@@
-147,12
+147,12
@@
bool CDSPass::instrumentAtomicCall(CallInst *CI, const DataLayout &DL) {
return true;
} else if (funName.contains("fetch")) {
return true;
} else if (funName.contains("fetch")) {
- errs() << "atomic exchange captured. Not implemented yet. "
+ errs() << "atomic exchange captured. Not implemented yet. "
;
errs() << "See source file :";
getPositionPrint(CI, IRB);
} else if (funName.contains("exchange") &&
!funName.contains("compare_exchange") ) {
errs() << "See source file :";
getPositionPrint(CI, IRB);
} else if (funName.contains("exchange") &&
!funName.contains("compare_exchange") ) {
- errs() << "atomic exchange captured. Not implemented yet. "
+ errs() << "atomic exchange captured. Not implemented yet. "
;
errs() << "See source file :";
getPositionPrint(CI, IRB);
}
errs() << "See source file :";
getPositionPrint(CI, IRB);
}
@@
-187,7
+187,6
@@
bool CDSPass::instrumentAtomicCall(CallInst *CI, const DataLayout &DL) {
return true;
} else if ( funName.contains("compare_exchange_strong") ||
funName.contains("compare_exchange_wesk") ) {
return true;
} else if ( funName.contains("compare_exchange_strong") ||
funName.contains("compare_exchange_wesk") ) {
-
Value *Addr = IRB.CreatePointerCast(OrigPtr, PtrTy);
Value *CmpOperand = IRB.CreatePointerCast(parameters[1], PtrTy);
Value *NewOperand = IRB.CreateBitOrPointerCast(parameters[2], Ty);
Value *Addr = IRB.CreatePointerCast(OrigPtr, PtrTy);
Value *CmpOperand = IRB.CreatePointerCast(parameters[1], PtrTy);
Value *NewOperand = IRB.CreateBitOrPointerCast(parameters[2], Ty);