search for: datastructure

Displaying 20 results from an estimated 288 matches for "datastructure".

2008 Oct 31
3
[LLVMdev] No of Datastructures
Hi I am trying to count the no of datastructures and the type, say for example the number of arrays in a given code. Which pass would give me this info? And what do I need to use in it? Thanks for the help Cheers Nipun :) -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-de...
2005 Mar 21
1
[LLVMdev] LLVM CVS Build Broken + one line fix
...The issue is a one line fix. The file "include/llvm/ADT/EquivalenceClasses.h" needs to include <stdint.h> in order to get the typedef for "intptr_t." If anyone wants me to make a patch for this, let me know. The build error that this solves is: llvm[3]: Compiling DataStructure.cpp for Debug build In file included from /home/ejones/llvm/llvm3/include/llvm/Analysis/DataStructure/DSGraph.h: 20, from /home/ejones/llvm/llvm3/include/llvm/Analysis/DataStructure/ DSGraphTraits.h:19, from DataStructure.cpp:14: /home/ejones/llvm/llvm3/inc...
2008 Nov 05
1
[LLVMdev] No of Datastructures
Hi I was having just one more problem. I would like to find these datastructures/ primitive types etc inside a block, however the valuesymbol table is available only at a functional level. What can I do so as to get the number + type of datastructs(eg. arrays etc) inside a single block? Thanks Nipun On Fri, Oct 31, 2008 at 12:05 PM, Devang Patel <dpatel at apple.com>...
2011 Jul 07
1
datastructure for multi-choice factors
...his single question. - Row wise expanding: convert a single response into N rows, one for every response. Problem with this is that if the factor is part of the dataframe, also all of the other items have to be duplicated, leading to artificial results. I was wondering if there is a more natural datastructure to put a multi-choice item into a dataframe? Some code for illustration: people <- list( name=c("John", "Mary", "Jennifer", "Neil"), gender=factor(c("M","F","F","M")), age=c(34,23,40,30), residence=sapply(li...
2008 Oct 31
0
[LLVMdev] No of Datastructures
Hi Nipun, On Oct 30, 2008, at 9:31 PM, Nipun Arora wrote: > Hi > > I am trying to count the no of datastructures and the type, say for > example the number of arrays in a given code. Which pass would give > me this info? And what do I need to use in it? What are you trying to achieve here with this information ? You can iterate over types to collect the info you need. For example, TypeSymbolTabl...
2005 Jul 20
2
unable to call R t-test from Java
...uot;\r\n evaluation string mean command"); Object value = e.eval("mean(c(1,2,3))"); if(value != null) { interp.show(value ); System.err.println("\r\n"); } } /** * if I pass mean a org.omegahat.Environment.DataStructures.numeric what do I get? NaN */ static public void runMeanByNumericList_nan(REvaluator e, ROmegahatInterpreter interp) { Object[] funArgs = new Object[1]; // given argument is not numeric or logical org.omegahat.Environment.DataStructures.numeric...
2007 Jul 10
1
[LLVMdev] A question about LLVM and pool allocation
HI guys. I'm trying to build the poolalloc on llvm-2.0 but there exist some errors. Can you tell me which version of llvm is known to make the poolalloc build and install successful? Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20070710/4ab5e155/attachment.html>
2008 Nov 02
0
[LLVMdev] No of Datastructures
...res of this > signature. > > Thanks > Nipun > > > On Fri, Oct 31, 2008 at 1:05 PM, Devang Patel <dpatel at apple.com> > wrote: > Hi Nipun, > > On Oct 30, 2008, at 9:31 PM, Nipun Arora wrote: > >> Hi >> >> I am trying to count the no of datastructures and the type, say for >> example the number of arrays in a given code. Which pass would give >> me this info? And what do I need to use in it? > > What are you trying to achieve here with this information ? > > You can iterate over types to collect the info you need. Fo...
2008 Nov 02
2
[LLVMdev] No of Datastructures
...ing. The no of data structures is one of the identifying features of this signature. Thanks Nipun On Fri, Oct 31, 2008 at 1:05 PM, Devang Patel <dpatel at apple.com> wrote: > Hi Nipun, > On Oct 30, 2008, at 9:31 PM, Nipun Arora wrote: > > Hi > I am trying to count the no of datastructures and the type, say for example > the number of arrays in a given code. Which pass would give me this info? > And what do I need to use in it? > > > What are you trying to achieve here with this information ? > > You can iterate over types to collect the info you need. For examp...
2008 Nov 03
1
[LLVMdev] No of Datastructures
...ipun > > > > > > On Fri, Oct 31, 2008 at 1:05 PM, Devang Patel <dpatel at apple.com> > > wrote: > > Hi Nipun, > > > > On Oct 30, 2008, at 9:31 PM, Nipun Arora wrote: > > > >> Hi > >> > >> I am trying to count the no of datastructures and the type, say for > >> example the number of arrays in a given code. Which pass would give > >> me this info? And what do I need to use in it? > > > > What are you trying to achieve here with this information ? > > > > You can iterate over types to col...
2008 Apr 23
2
[LLVMdev] how to dump DSA graph in gdb?
....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...
2008 Apr 23
2
[LLVMdev] how to dump DSA graph in gdb?
Hi, all: Recently I am debugging the DSA and want to learn how it work, and now I am checking the local datastructure analysis. I use the following command to print the graph: (gdb) p g.dump() digraph DataStructures { label="Function addG"; Node0xe1f3a0 [shape=record,shape=Mrecord,label="{ i32: MRE\n|{<g0>}}"]; Node0xe1f4d0 [shape=record,shape=Mrecord,label="{ i32*: SMR\...
2002 Nov 25
3
[LLVMdev] globals in DS graph
Ganesh, I modified DataStructure.cpp so that global nodes are no longer removed from any graphs. Only that file has changed. Chris, if you get a chance to do this, it would be nice if you could take a quick look at the change I made and make sure that's all that's needed. Thanks, --Vikram http://www.cs.uiuc.edu/~vadve...
2008 Apr 23
0
[LLVMdev] how to dump DSA graph in gdb?
...> ... 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...
2018 Mar 06
3
[RFC] llvm-mca: a static performance analysis tool
...n MC. I think you have to pick one direction or the other. You are right those are the two choices. Given that the actual data is in MCSchedModel and TargetSchedModel mostly being interested in the MCInstrDesc you can quert from an MI it seemed to me like the easier/cleaner route to not build up MI datastructures but stay with MC specific things. You are right though that there is a whole bunch of callbacks in TargetInstrInfo that would need alternatives if we want to go this route. Indeed building up MI makes things fit in better with the APIs today, it just feels less clean to me with all the extra codeg...
2008 Apr 23
0
[LLVMdev] how to dump DSA graph in gdb?
...you run them through the dot command from the GraphViz package to convert them into a graphic format. For example, I use: dot -Tpng file.dot > file.png ... to convert the file into a PNG graphic which I can then examine using my graphics program of choice. Also, you're aware that the -datastructure pass is just the local analysis pass, correct? The inter-procedural part is in the Bottom Up, Complete Bottom Up, and Top Down passes. -- John T. Tianwei wrote: > Hi, all: > Recently I am debugging the DSA and want to learn how it work, and now I am checking the local datastructure an...
2009 May 18
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 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...
2007 Jun 13
1
[LLVMdev] Status of pre-legalize vector changes
...or example. > > The problem with this approach is that it makes it much harder to codegen > two different functions in parallel on different threads. This isn't > something we do today, but is something we want to do eventually. > Requiring synchronization in such a critical datastructure would be > badness... The badness could be mitigated somewhat with readers-writer locks, because the common case for this table would be that it would get a few entries added to it right away and then see very few updates, if any, for the rest of its lifetime. I'll take another look at el...
2007 Aug 23
3
[LLVMdev] Data Structure Analysis
...s 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? Thanks Haifeng