search for: getvaluedest

Displaying 6 results from an estimated 6 matches for "getvaluedest".

2004 Oct 12
2
[LLVMdev] GenRegisterInfo.h.inc
...annot figure out why is named GenRegisterInfo.h.inc and not GenRegisterInfo.inc ... Is it for a dependency problem? Back again to compilation problems under win32 with VC llvm\lib\Analysis\DataStructure\Local.cpp(628) : error C2105: '--' needs l-value the line is: Result.mergeWith(getValueDest(**--CS.arg_end())); Can I submit patches for mutate it in something like: llvm::CallSite::arg_iterator ii = CS.arg_end(); --ii; Result.mergeWith(getValueDest(**ii)); There're several of this in Local.cpp, and this is the only file affected. --- Paolo Invernizzi
2004 Oct 12
0
[LLVMdev] GenRegisterInfo.h.inc
...ncluded into X86RegisterInfo.cpp. Does this make sense? They are both correct. > Back again to compilation problems under win32 with VC > > llvm\lib\Analysis\DataStructure\Local.cpp(628) : error C2105: '--' needs > l-value > > the line is: > > Result.mergeWith(getValueDest(**--CS.arg_end())); > > Can I submit patches for mutate it in something like: > llvm::CallSite::arg_iterator ii = CS.arg_end(); > --ii; > Result.mergeWith(getValueDest(**ii)); > > There're several of this in Local.cpp, and this is the only file affected. Yes, p...
2006 May 17
2
[LLVMdev] Re: __main() function and AliasSet
...>getName() == "sprintf") { CallSite::arg_iterator AI = CS.arg_begin(), E = CS.arg_end(); if (F->getName() == "fprintf") { // fprintf reads and writes the FILE argument, and applies the type // to it. DSNodeHandle H = getValueDest(**AI); if (DSNode *N = H.getNode()) { N->setModifiedMarker(); const Type *ArgTy = (*AI)->getType(); if (const PointerType *PTy = dyn_cast<PointerType>(ArgTy)) N->mergeTypeInfo(PTy->getElementType(), H.getOffset(...
2006 May 15
0
[LLVMdev] Re: __main() function and AliasSet
On Mon, 15 May 2006, Nai Xia wrote: > In other words, if I only use -steens-aa and the data_XXXs are all > external global variables( and so inComplete ), Sounds right! > the call to printf will > make the same effect, which I have tested it. > > Am I right ? :) If you've tested it then, yes you're right :). I haven't played with this stuff for a long time,
2006 May 15
2
[LLVMdev] Re: __main() function and AliasSet
Hi Chris, I took a haste look at the "Points-to Analysis in Almost Linear Time" by Steens , your PHD thesis and SteensGaard.cpp in LLVM this afternoon. So I think: 1. Actually the basic algorithm described originally by SteensGaard does not provide MOD/REF information for functions. 2. The context insensitive part of Data Structure Analysis (LocalAnalysis) can be deemed as an
2006 May 17
0
[LLVMdev] Re: __main() function and AliasSet
...;getName() == "sprintf") { > CallSite::arg_iterator AI = CS.arg_begin(), E = CS.arg_end(); ... > for (; AI != E; ++AI) { > // printf reads all pointer arguments. > if (isPointerType((*AI)->getType())) > if (DSNode *N = getValueDest(**AI).getNode()) > N->setReadMarker(); > } > ----------------------------- > So from my point of view, the ds-aa thinks "printf reads all pointer arguments", Right. > but does not take into account the "%n" format string , which may ca...