search for: srickett

Displaying 20 results from an estimated 39 matches for "srickett".

Did you mean: spickett
2009 Jul 10
1
[LLVMdev] Unnamed pass in on the fly pass manager
Solved... For the record, there were two issues: 1) I was not passing the Function to getAnalysis for the PDT. 2) I was attempting to getAnalysis on external functions. On Thu, Jul 9, 2009 at 5:49 PM, Scott Ricketts<sricketts at maxentric.com> wrote: > Update: the "unnamed pass" is PostDominatorTree. My module pass > requires PDT (specified in its getAnalysisUsage). When it visits a > function, it calls getAnalysis<PostDominatorTree>(), which triggers > the failed assertion "getAnaly...
2009 Jul 10
0
[LLVMdev] Unnamed pass in on the fly pass manager
...d to do with attempting to getAnalysis during doInitialization, which I do not do. I am snooping through the PassManager (and related) code. Perhaps someone could point me in the right direction or suggest that my approach is wrong. Thanks, Scott On Thu, Jul 9, 2009 at 1:27 PM, Scott Ricketts<sricketts at maxentric.com> wrote: > I have written a module pass. When I use the debug pass structure > option, the name of my module pass is printed but then I get "Unnamed > pass" when the FunctionPassManagerImpl *FPP calls dumpPassStructure > (in PassManager.cpp). Is this the ex...
2009 Jul 09
2
[LLVMdev] Unnamed pass in on the fly pass manager
I have written a module pass. When I use the debug pass structure option, the name of my module pass is printed but then I get "Unnamed pass" when the FunctionPassManagerImpl *FPP calls dumpPassStructure (in PassManager.cpp). Is this the expected behavior, or should I be concerned that there is an error in my approach? Thanks, Scott
2009 May 04
3
[LLVMdev] Using non-system compiler to build llvm and llvm-gcc front end
...*** [all] Error 1 *** llvm-2.5 configured to use default gcc (4.1.2): $ ../llvm-2.5/configure --prefix=/pkg/bin/llvm/ llvm-2.5 build: $ make tools-only error (something like): X86ISelDAGToDAG.cpp internal compiler error: Segmentation fault On Fri, May 1, 2009 at 6:20 PM, Scott Ricketts <sricketts at maxentric.com>wrote: > Ah, nevermind... just needed to make clean to clear out some of the junk I > compiled with gcc-4.1.2. The build completed without error. > > > On Fri, May 1, 2009 at 2:14 PM, Scott Ricketts <sricketts at maxentric.com>wrote: > >> I am att...
2009 Oct 12
0
[LLVMdev] Detecting reduction operations
To be more specific, it would be helpful to have some utilities for finding dependencies (true, output, and anti-). Where is a good place to start for this kind of analysis? Thanks, Scott On Fri, Oct 9, 2009 at 11:06 AM, Scott Ricketts <sricketts at maxentric.com> wrote: > I want to be able to detect reduction operations using a method > similar to that described here: > > http://portal.acm.org/citation.cfm?id=237578.237581 > > (I am open to other suggestions if there is a better technique). > > I am curious if a...
2009 May 02
0
[LLVMdev] Using non-system compiler to build llvm and llvm-gcc front end
Ah, nevermind... just needed to make clean to clear out some of the junk I compiled with gcc-4.1.2. The build completed without error. On Fri, May 1, 2009 at 2:14 PM, Scott Ricketts <sricketts at maxentric.com>wrote: > I am attempting to install llvm on CentOS 5.3, which uses gcc-4.1.2 as its > system compiler. Since this compiler has reported to behave poorly with > llvm, I built gcc-4.2.4 in an insulated directory for use with my llvm > installation. > > However,...
2010 Dec 03
0
[LLVMdev] Undefined symbol in Hello pass
...HECK-NOT: string occurred! %before = load i32* %p ^ /Users/beresini/Desktop/workspace/downloads/llvm-2.8/test/Transforms/GVN/null-aliases-nothing.ll:18:18: note: CHECK-NOT: pattern specified here ; CHECK-NOT: load ^ -- On Thu, Dec 2, 2010 at 3:59 PM, Scott Ricketts <sricketts at maxentric.com> wrote: > On Thu, Dec 2, 2010 at 3:20 PM, Chris Lattner <clattner at apple.com> wrote: >> >> On Dec 2, 2010, at 3:13 PM, Scott Ricketts wrote: >> >>> The only Transforms check that fails is LLVM :: >>> Transforms/GVN/null-aliases-not...
2009 Oct 09
2
[LLVMdev] Detecting reduction operations
I want to be able to detect reduction operations using a method similar to that described here: http://portal.acm.org/citation.cfm?id=237578.237581 (I am open to other suggestions if there is a better technique). I am curious if anyone has done this with LLVM or if there are and recommendations for where to start with my implementation. I am only interested in identifying the reductions -- I
2009 Jul 02
2
[LLVMdev] Get identifier for unnamed temporary
On Thu, Jul 2, 2009 at 2:48 PM, Chris Lattner<clattner at apple.com> wrote: > VMCore will auto-unique value names for you. Most passes just create > all instructions with a name like "tmp" and let VMCore unique them. > Is this enough for you? On Thu, Jul 2, 2009 at 2:50 PM, Eli Friedman<eli.friedman at gmail.com> wrote: > The relevant code is
2010 Dec 02
2
[LLVMdev] Undefined symbol in Hello pass
On Thu, Dec 2, 2010 at 3:20 PM, Chris Lattner <clattner at apple.com> wrote: > > On Dec 2, 2010, at 3:13 PM, Scott Ricketts wrote: > >> The only Transforms check that fails is LLVM :: >> Transforms/GVN/null-aliases-nothing.ll >> >> Could that be related? > > running "opt -basicaa -gvn -S null-aliases-nothing.ll" should produce this output,
2009 May 01
2
[LLVMdev] Using non-system compiler to build llvm and llvm-gcc front end
I am attempting to install llvm on CentOS 5.3, which uses gcc-4.1.2 as its system compiler. Since this compiler has reported to behave poorly with llvm, I built gcc-4.2.4 in an insulated directory for use with my llvm installation. However, I am not sure I am configuring properly. The gcc-4.2.4 installation is in /pkg/bin/gcc-4.2.4. Here is my config line: ../llvm-2.5/configure
2009 May 12
1
[LLVMdev] Tutorial 1: casting cout
To get Tutorial 1 to compile, I had to cast cout as a raw_osstream, as in: PM.add(createPrintModulePass(&llvm::cout)); ----> PM.add(createPrintModulePass((raw_ostream*)&llvm::cout)); I was getting the following error: $ c++ -g tut1.cpp `llvm-config --cxxflags --ldflags --libs core` -o tut1 tut1.cpp: In function ‘int main(int, char**)’: tut1.cpp:19: error: cannot convert
2009 May 21
0
[LLVMdev] Passing a pointer to a function
On Wed, May 20, 2009 at 7:31 PM, Scott Ricketts <sricketts at maxentric.com> wrote: > Where load_fcall is build using a call to Module::getOrInsertFunction > as in the example here: > > http://wiki.llvm.org/HowTo:_Insert_a_function_call > > My question is, what do I pass as the argument type for P above? The > following seems to wo...
2009 Jun 29
1
[LLVMdev] Type get size
I am trying to get the address ranges that are allocated by the global variable list of a module. I cannot seem to find an easy way to get the size of a global variable. That is, if the C source looks like: int a[3]; then printing the description of the type of this global looks like: [3 x i32]* Is there some nice way to get "3 words" or "12 bytes" from the above example?
2009 Jul 02
3
[LLVMdev] Get identifier for unnamed temporary
Is there a way through the Value class to get the identifier for an unnamed temporary? Or alternatively, could someone point me to the code where temporaries are assigned sequential numbers as identifiers so I can better understand this issue? Thanks, Scott
2009 Jul 02
0
[LLVMdev] Get identifier for unnamed temporary
On Thu, Jul 2, 2009 at 2:24 PM, Scott Ricketts<sricketts at maxentric.com> wrote: > Is there a way through the Value class to get the identifier for an > unnamed temporary? Or alternatively, could someone point me to the > code where temporaries are assigned sequential numbers as identifiers > so I can better understand this issue? The r...
2009 Jul 21
2
[LLVMdev] Total size of global data
I wrote a pass that attempts to add up the total size of the global data in a module. Currently, it iterates through all of the global values and checks their type sizes using TargetData. I have realized that this is not quite right because global values can point to the same data in memory (or can at least overlap) as in the case of constant strings. Is there an easier way to approach this? It
2009 Jul 21
0
[LLVMdev] Total size of global data
On Tue, Jul 21, 2009 at 1:02 PM, Scott Ricketts<sricketts at maxentric.com> wrote: > I wrote a pass that attempts to add up the total size of the global > data in a module. Currently, it iterates through all of the global > values and checks their type sizes using TargetData. I have realized > that this is not quite right because global va...
2009 Jun 19
0
[LLVMdev] Problems creating a pass
Did you try changing the name from Hello to MyHello or something like that? I seem to remember having a similar problem. My tutorial code names the struct MyHello and then registers it as follows: RegisterPass<MyHello> X("myhello", "My Hello World Pass"); You will likely need to change the Makefile as well. Scott On Fri, Jun 19, 2009 at 11:15 AM, Juan Carlos Martinez
2009 Aug 28
1
[LLVMdev] va_arg
I would like to be able to instrument va_arg, but when I generate a bc file for a test case using: llvm-gcc -O3 -emit-llvm vararg.c -c -o vararg.bc I do not see va_arg. Instead, it seems the args are accessed through %struct.__va_list_tag, which makes things a bit trickier to instrument. Is there a way to force llvm-gcc to use va_arg? Perhaps there is some documentation about va_list_tag or