Displaying 20 results from an estimated 37 matches for "libllvmdatastructure".
2009 Jul 04
2
[LLVMdev] Pool Allocation Segfaulting with opt
...9;m trying to run the pool allocation pass through opt, and I'm running
into problems. It segfaults frequently; for example, it does this when
the input is a simple Hello World program:
[simmon12 at apoc testcases]$ opt -load
/home/vadve/simmon12/llvm/llvm/projects/llvm-poolalloc/Debug/lib/libLLVMDataStructure.so
-load
/home/vadve/simmon12/llvm/llvm/projects/llvm-poolalloc/Debug/lib/poolalloc.so
-poolalloc hello.bc > hello.pool
0 opt 0x08469ccb
1 libLLVMDataStructure.so 0x0022f5a4
llvm::ConstantArray::classof(llvm::Value const*) + 30
2 libLLVMDataStructure.so 0x0022f57a b...
2009 Jul 06
0
[LLVMdev] Pool Allocation Segfaulting with opt
...blems. It segfaults frequently; for example, it does this when
> the input is a simple Hello World program:
>
Can you email me the bitcode file that is causing the problem?
> [simmon12 at apoc testcases]$ opt -load
> /home/vadve/simmon12/llvm/llvm/projects/llvm-poolalloc/Debug/lib/libLLVMDataStructure.so
> -load
> /home/vadve/simmon12/llvm/llvm/projects/llvm-poolalloc/Debug/lib/poolalloc.so
> -poolalloc hello.bc > hello.pool
> 0 opt 0x08469ccb
> 1 libLLVMDataStructure.so 0x0022f5a4
> llvm::ConstantArray::classof(llvm::Value const*) + 30
> 2 l...
2010 Apr 10
2
[LLVMdev] Question about using steensgaard's pointer analysis in poolalloc
...veral tests, each with a different optimization.
The benchmark is all the 11 C programs in CINT2000 of SPEC. In all the
tests, I found very little performance difference between Andersen and
Steensgaard. Here is an example of the options in one of the tests:
llvmc -opt -Wo,=-O3 -Wo,=-load=path_of_libLLVMDataStructure.so
-Wo,=-steens-aa
llvmc -opt -Wo,=-O3 -Wo,=-anders-aa
the other optimizations are: dead code elimination, dead store elimination,
const propogation, O1, etc.
And now what confusing me are:
1 Did the optimizations really use the result of Andersen or Steensgaard?
2 It seems both Andersen and Ste...
2010 Mar 23
0
[LLVMdev] Question about using steensgaard's pointer analysis in poolalloc
...poolalloc shared object file to be the <path to pool allocator>, cause
> no binary file has been generated.
> Could you give me some suggestion? Thank you.
There are two problems:
1) You need to load the library containing DSA first. To do that, you
need to use the -load <path>/libLLVMDataStructure.so option.
2) I believe you are loading the wrong library. You want to load
libpoolalloc.so and not libpoolalloc_rt.so. The former is the LLVM
poolalloc transform pass; the latter is the run-time library
implementing the poolallocation functions.
If you're only interested in DSA (for points-t...
2010 Mar 23
2
[LLVMdev] Question about using steensgaard's pointer analysis in poolalloc
Hi LLVM dev team:
I am now doing an experiment to comparing Steensgaard-style and
Andersen-style pointer analysis on LLVM. Since steensgaard pointer analysis
is in module "poolalloc", so I installed poolalloc release 2.6 on my
machine(intel X86_64 RedHatEnterpriseLinux 5.1, gcc-4.2.4), two directories
"include" and "lib" were created after installation but no
2010 Apr 12
0
[LLVMdev] Fwd: Question about using steensgaard's pointer analysis in poolalloc
...veral tests, each with a different optimization.
The benchmark is all the 11 C programs in CINT2000 of SPEC. In all the
tests, I found very little performance difference between Andersen and
Steensgaard. Here is an example of the options in one of the tests:
llvmc -opt -Wo,=-O3 -Wo,=-load=path_of_libLLVMDataStructure.so
-Wo,=-steens-aa
llvmc -opt -Wo,=-O3 -Wo,=-anders-aa
the other optimizations are: dead code elimination, dead store elimination,
const propogation, O1, etc.
And now what confusing me are:
1 Did the optimizations really use the result of Andersen or Steensgaard?
2 It seems both Andersen and Ste...
2008 Apr 23
0
[LLVMdev] how to dump DSA graph in gdb?
...ng
>
> ... to convert the file into a PNG graphic which I can then examine
> using my graphics program of choice.
>
> John, thanks so much, but i tried the -analyze option, It didn't produce any .dot file in my working directory:
> opt -analyze -load=/home/stw/llvm/install/lib/libLLVMDataStructure.so list.bc -o list-opt.bc
>
Sorry; I wasn't clear. The -analyze option is an option to opt to tell
it to print analysis results instead of doing transformations. You still
need to specify the analysis passes that you want run.
For example, to see the local DSA results, do the followin...
2008 Apr 23
2
[LLVMdev] how to dump DSA graph in gdb?
...t; file.png
>
> ... to convert the file into a PNG graphic which I can then examine
> using my graphics program of choice.
>
John, thanks so much, but i tried the -analyze option, It didn't produce any
.dot file in my working directory:
opt -analyze -load=/home/stw/llvm/install/lib/libLLVMDataStructure.so
list.bc -o list-opt.bc
also the -analyze option in "-help" result shows that:
-analyze - Only perform analysis, no
optimization
did I misunderstand what your said, or my building problem?
>
> Also, you're aware that the -datastructure pass...
2009 May 13
4
[LLVMdev] DataStructure Analysis ds-aa can not stop when passing mysqld
...<clattner at apple.com>:
Dear staff,
I am using the ds-aa to pass mysqld. I compile mysqld 4.0.12
statically (compile all libraries statically to the executable) and
got the bc file, named it as mysqld.bc3.
I use the command to pass:
opt -load <poolalloc install dir>/lib/libLLVMDataStructure.so -ds-aa
mysqld.bc3 -print-alias-sets -disable-output
However, I got a lot of "cast in ... " on output screen like this:
cast in strxnmov
%13 = inttoptr i32 %10 to i8* ; <i8*> [#uses=1]
In addition, and pass can not stop for a long time, and the la...
2010 Mar 09
2
[LLVMdev] Changed: Build errors for poolalloc using MinGW/gcc 4.4.0
...12,8 @@
LINK_COMPONENTS := bitreader bitwriter asmparser instrumentation scalaropts ipo
include $(LEVEL)/Makefile.common
+
+CPP.Flags += -I../../projects/poolalloc/include
+
+ExtraLibs := ../../projects/poolalloc/$(BuildMode)/lib/libpoolalloc.a \
+ ../../projects/poolalloc/$(BuildMode)/lib/libLLVMDataStructure.a
On Tue, Mar 9, 2010 at 11:13 AM, John Criswell <criswell at uiuc.edu> wrote:
> Dear Patrick and Antron,
>
> I've modified the Makefiles in the poolalloc module so that they do not
> build shared libraries on MingW or Cygwin. Patrick, if you do an "svn
> up" y...
2008 Oct 24
1
[LLVMdev] Using DSA alias analysis
...nd added to PATH, then
svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm
cd llvm/projects
svn co http://llvm.org/svn/llvm-project/poolalloc/trunk/ poolalloc
and built without enabling optimizations, on linux x86_64
but when I try to run
opt -load=$HOME/src/llvm/projects/poolalloc/Debug/lib/libLLVMDataStructure.so
-ds-aa -print-alias-sets -disable-output hello.bc
I get
opt: PassManager.cpp:1416: virtual void
llvm::MPPassManager::addLowerLevelRequiredPass(llvm::Pass*,
llvm::Pass*): Assertion `(P->getPotentialPassManagerType() <
RequiredPass->getPotentialPassManagerType()) && "Unable...
2009 Aug 18
0
[LLVMdev] Graphviz and LLVM-TV
...at README.txt in SVN.
Note that it requires poolalloc module and LLVM, but poolalloc hasn't been
updated to work with top-of-trunk LLVM, so I included a recent SVN revision
which worked for me.
Poolalloc build is also broken right now, but it works enough to be used
with llvm-tv (you only need libLLVMDataStructure).
The current issue is the wxWidgets exception that you'll get when trying to
select a module in the list:
./src/gtk/evtloop.cpp(64): assert "!m_impl" failed in ~wxEventLoop(): should
have been deleted in Run()
I haven't been able to figure out what's going on here. If you...
2009 Jun 29
4
[LLVMdev] Limitations of Alias Analysis?
...on *loc1 = getNewLocation(0, 0);
Location *loc2 = getNewLocation(1, 2);
Location *loc3 = getDifference(loc1, loc2);
free(loc1);
free(loc2);
free(loc3);
return 0;
}
//------------=== End ===------------//
The whole process:
llvm-gcc -emit-llvm -O0 -c test.c -o test.bc
opt test.bc -load libLLVMDataStructure.so -basic-aa -ds-aa -anders-aa
-aa-eval -print-all-alias-modref-info
The corresponding IR content of main is:
define i32 @main() nounwind {
entry:
%retval = alloca i32
%loc3 = alloca %struct.Location*
%loc2 = alloca %struct.Location*
%loc1 = alloca %struct.Location*
%0 = alloca i32...
2010 Apr 18
0
[LLVMdev] .so file creation for new passes
Thanks a lot for the reply guys. So, does that mean that I cant write my own
passes if I work on Windows side of the LLVM? Is there any other way to use
a new pass. How are windows users supposed to work?
Thanks again.
On Sun, Apr 18, 2010 at 7:16 AM, Anton Korobeynikov <anton at korobeynikov.info
> wrote:
> > If you compile llvm, the Hello library will be compiled too. It's
2009 Jun 29
0
[LLVMdev] Limitations of Alias Analysis?
...Infrastructure", I
> evaluated the AA performance by using the paramenters '-basicaa -ds-aa
> -anders-aa'. The source code 'test.c' is listed as follow:
> [...]
> The whole process:
>
> llvm-gcc -emit-llvm -O0 -c test.c -o test.bc
>
> opt test.bc -load libLLVMDataStructure.so -basic-aa -ds-aa -anders-aa
> -aa-eval -print-all-alias-modref-info
>
Try this:
opt -mem2reg -functionattrs -basic-aa -aa-eval
-print-all-alias-modref-info test.bc
It shows:
NoAlias: %struct.Location* %0, %struct.Location* %1
> %1 and %2 are considered as MayAlias results t...
2009 Aug 18
1
[LLVMdev] Graphviz and LLVM-TV
...t; Note that it requires poolalloc module and LLVM, but poolalloc hasn't been
> updated to work with top-of-trunk LLVM, so I included a recent SVN revision
> which worked for me.
> Poolalloc build is also broken right now, but it works enough to be used
> with llvm-tv (you only need libLLVMDataStructure).
>
> The current issue is the wxWidgets exception that you'll get when trying to
> select a module in the list:
>
> ./src/gtk/evtloop.cpp(64): assert "!m_impl" failed in ~wxEventLoop():
> should have been deleted in Run()
>
> I haven't been able to figure...
2010 Apr 18
2
[LLVMdev] .so file creation for new passes
> If you compile llvm, the Hello library will be compiled too. It's not
> installed but it's in build_directory/Debug/lib/LLVMHello.so (or in
> build_directory/Release/lib/LLVMHello.so)
Loadable passes are not supported on windows due to lack of OS dynamic
linking support (and I doubt they will be supported ever).
--
With best regards, Anton Korobeynikov
Faculty of Mathematics
2009 Aug 13
2
[LLVMdev] Graphviz and LLVM-TV
Chris Lattner wrote:
On Aug 13, 2009, at 8:56 AM, Ioannis Nousias wrote:
> Hi
>
> I'm trying to get a graphviz output (DOT) of a code I'm compiling. I
> want to see the DFG/CFG of the LLVM assembly, how the operations are
> chained together. The documentation mentions something about calling
> certain methods from within gdb, but isn't there some option when
>
2009 May 18
0
[LLVMdev] DataStructure Analysis ds-aa can not stop when passing mysqld
...gt;
> Dear staff,
> I am using the ds-aa to pass mysqld. I compile mysqld 4.0.12
> statically (compile all libraries statically to the executable) and
> got the bc file, named it as mysqld.bc3.
> I use the command to pass:
>
> opt -load <poolalloc install dir>/lib/libLLVMDataStructure.so -ds-aa
> mysqld.bc3 -print-alias-sets -disable-output
>
> However, I got a lot of "cast in ... " on output screen like this:
>
> cast in strxnmov
> %13 = inttoptr i32 %10 to i8* ; <i8*> [#uses=1]
>
> In addition, and pass can not...
2009 May 13
0
[LLVMdev] DataStructure Analysis ds-aa can not stop when passing mysqld
...;
> Dear staff,
> I am using the ds-aa to pass mysqld. I compile mysqld 4.0.12
> statically (compile all libraries statically to the executable) and
> got the bc file, named it as mysqld.bc3.
> I use the command to pass:
>
> opt -load <poolalloc install dir>/lib/libLLVMDataStructure.so -ds-aa
> mysqld.bc3 -print-alias-sets -disable-output
>
> However, I got a lot of "cast in ... " on output screen like this:
>
> cast in strxnmov
> %13 = inttoptr i32 %10 to i8* ; <i8*> [#uses=1]
>
> In addition, and pass can n...