A following question about how to install "poolalloc". I checked out poolalloc from svn. But I had a problem of installing it. When I tried to run "configure" with options "--with-llvmsrc" and "--with--llvmobj" pointing to where the source of my llvm and objs dir are (/home/usr/Tools/llvm, e.g.), "configure" complained error message "configure: error : cannot find install-sh or install.sh in /home/usr/Tools/autoconf". Am I doing something wrong here? Haifeng On 8/22/07, Chris Lattner <sabre at nondot.org> wrote:> > On Aug 22, 2007, at 8:12 PM, Haifeng He wrote: > > > Hi, all > > > > I just downloaded the latest version of llvm. I am interested in the > > data structure analysis of llvm described in this year PLDI paper, > > titled "Making Context-Sensitive Points-to Analysis with Heap Cloning > > Practical For The Real World". However, I could not find any source > > code that seem to do the analysis. I noticed that in llvm 1.9 release, > > there is a subdirectory named "DataStructure" under "lib/Analysis" but > > it was > > removed in llvm 2.0 (the one I downloaded). Is there a reason for > > that? > > It was moved out to the poolalloc SVN repository. > > -Chris > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >
okay. I guess I figured it out. It seems "poolalloc" needs to be put in llvm/projects/ directory. Haifeng On 8/23/07, Haifeng He <hehaifeng2nd at gmail.com> wrote:> A following question about how to install "poolalloc". I checked out > poolalloc from svn. But I had a problem of installing it. When I tried to run > "configure" with options "--with-llvmsrc" and "--with--llvmobj" pointing to > where the source of my llvm and objs dir are (/home/usr/Tools/llvm, > e.g.), "configure" complained error message > "configure: error : cannot find install-sh or install.sh in > /home/usr/Tools/autoconf". > Am I doing something wrong here? > > Haifeng > > On 8/22/07, Chris Lattner <sabre at nondot.org> wrote: > > > > On Aug 22, 2007, at 8:12 PM, Haifeng He wrote: > > > > > Hi, all > > > > > > I just downloaded the latest version of llvm. I am interested in the > > > data structure analysis of llvm described in this year PLDI paper, > > > titled "Making Context-Sensitive Points-to Analysis with Heap Cloning > > > Practical For The Real World". However, I could not find any source > > > code that seem to do the analysis. I noticed that in llvm 1.9 release, > > > there is a subdirectory named "DataStructure" under "lib/Analysis" but > > > it was > > > removed in llvm 2.0 (the one I downloaded). Is there a reason for > > > that? > > > > It was moved out to the poolalloc SVN repository. > > > > -Chris > > _______________________________________________ > > LLVM Developers mailing list > > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > > >
Hi! Haifeng He wrote:> okay. I guess I figured it out. It seems "poolalloc" needs to be put > in llvm/projects/ directory.Yes, it will compile then. However, it seems the resulting shared library LLVMDataStructure.so (I haven't checked the others) has some undefined symbols. Trying to load it into the opt tool produces an error: undefined symbol: _ZN48_GLOBAL__N_DataStructureAA.cpp_00000000_8D4221C44DSAA2IDE Static ID fields in pass classes seem to be lacking definitions (there were some changes in LLVM core classes and poolalloc hasn't been yet fully updated to reflect them). The attached patch fixes this for DSA classes - LLVMDataStructure.so loads into opt and DSA can be performed. Wojtek -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: poolalloc.patch URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20070824/26ffae25/attachment.ksh>