[llvm-commits] [poolalloc] r165500 - in /poolalloc/trunk/lib: AssistDS/ArgCast.cpp AssistDS/LoadArgs.cpp DSA/DSGraph.cpp
Will Dietz
wdietz2 at illinois.edu
Tue Oct 9 07:47:36 PDT 2012
Author: wdietz2
Date: Tue Oct 9 09:47:36 2012
New Revision: 165500
URL: http://llvm.org/viewvc/llvm-project?rev=165500&view=rev
Log:
Update to accomodate changes to Attributes.
Modified:
poolalloc/trunk/lib/AssistDS/ArgCast.cpp
poolalloc/trunk/lib/AssistDS/LoadArgs.cpp
poolalloc/trunk/lib/DSA/DSGraph.cpp
Modified: poolalloc/trunk/lib/AssistDS/ArgCast.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/lib/AssistDS/ArgCast.cpp?rev=165500&r1=165499&r2=165500&view=diff
==============================================================================
--- poolalloc/trunk/lib/AssistDS/ArgCast.cpp (original)
+++ poolalloc/trunk/lib/AssistDS/ArgCast.cpp Tue Oct 9 09:47:36 2012
@@ -132,11 +132,11 @@
FormalType, true, "", CI);
Args.push_back(CastI);
} else {
- if(F->paramHasAttr(i+1, Attribute::SExt)) {
+ if(F->getParamAttributes(i+1).SExt) {
CastInst *CastI = CastInst::CreateIntegerCast(CI->getOperand(i+1),
FormalType, true, "", CI);
Args.push_back(CastI);
- } else if(F->paramHasAttr(i+1, Attribute::ZExt)) {
+ } else if(F->getParamAttributes(i+1).ZExt) {
CastInst *CastI = CastInst::CreateIntegerCast(CI->getOperand(i+1),
FormalType, false, "", CI);
Args.push_back(CastI);
Modified: poolalloc/trunk/lib/AssistDS/LoadArgs.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/lib/AssistDS/LoadArgs.cpp?rev=165500&r1=165499&r2=165500&view=diff
==============================================================================
--- poolalloc/trunk/lib/AssistDS/LoadArgs.cpp (original)
+++ poolalloc/trunk/lib/AssistDS/LoadArgs.cpp Tue Oct 9 09:47:36 2012
@@ -80,8 +80,8 @@
// do not care about dead arguments
if(ai->use_empty())
continue;
- if(F->paramHasAttr(argNum, Attribute::SExt) ||
- F->paramHasAttr(argNum, Attribute::ZExt))
+ if(F->getParamAttributes(argNum).SExt ||
+ F->getParamAttributes(argNum).ZExt)
continue;
if (isa<LoadInst>(CI->getArgOperand(argNum)))
break;
Modified: poolalloc/trunk/lib/DSA/DSGraph.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/lib/DSA/DSGraph.cpp?rev=165500&r1=165499&r2=165500&view=diff
==============================================================================
--- poolalloc/trunk/lib/DSA/DSGraph.cpp (original)
+++ poolalloc/trunk/lib/DSA/DSGraph.cpp Tue Oct 9 09:47:36 2012
@@ -1498,7 +1498,7 @@
Function::const_arg_iterator farg = F->arg_begin(), fend = F->arg_end();
for (unsigned index = 1; index < (CS.arg_size() + 1) && farg != fend;
++farg, ++index) {
- if (CS.paramHasAttr (index, Attribute::ByVal) != farg->hasByValAttr()) {
+ if (CS.paramHasByValAttr(index) != farg->hasByValAttr()) {
return false;
}
}
More information about the llvm-commits
mailing list