search for: guyadini

Displaying 8 results from an estimated 8 matches for "guyadini".

2010 Nov 04
2
[LLVMdev] C++ interface for metadta
Hi, I'm new to LLVM, so this might be a stupid question - I apologize if I've just missed it. I've read about the way metadata is represented in the LLVM 2.7 IR, but can't figure out how to write it into the IR explicitly. Can someone please show me a very simple example of a pass that iterates over functions and attaches metadata to them, and another pass that reads it and
2010 Nov 07
2
[LLVMdev] More metadata questions
Hi, I hope I'm not too annoying with my newbie questions. I've read the new (great!) wiki about the DI* classes, and I still can't figure out how to insert metadata into the LLVM IR. Let's say that I want to have two passes, one that creates some metadata string and inserts it into the IR, and the second one that reads it and acts according to what it finds (or doesn't find).
2011 Mar 30
0
[LLVMdev] Counting pointers to functions
On 3/30/11 10:12 AM, guyadini wrote: > Hi all, > > I'm trying to write an LLVM pass which would determine whether there is any > pointer which ever points to a function. I couldn't figure out if there is > any existing pass which does something of the kind (maybe some analysis pass > which I'm not...
2011 Jan 28
0
[LLVMdev] Passing command line arguments to optimization passes
...t visible outside one of your passes, and use it in your other passes : in other words, it is a global variable shared between several files. Best regards, -- Arnaud de Grandmaison -----Original Message----- From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] On Behalf Of guyadini Sent: Thursday, January 27, 2011 12:38 PM To: llvmdev at cs.uiuc.edu Subject: Re: [LLVMdev] Passing command line arguments to optimization passes A follow-up question: Is there a way to make different passes accept one command line option that will affect all of them? For example, I'd like t...
2011 Mar 30
2
[LLVMdev] Counting pointers to functions
Hi all, I'm trying to write an LLVM pass which would determine whether there is any pointer which ever points to a function. I couldn't figure out if there is any existing pass which does something of the kind (maybe some analysis pass which I'm not aware of?). Of course, I could just iterate over all values, and check whether they point to functions (as in a similar recent post).
2011 Jan 27
2
[LLVMdev] Passing command line arguments to optimization passes
A follow-up question: Is there a way to make different passes accept one command line option that will affect all of them? For example, I'd like to have a -optStrength parameter, that can be given to all of my passes simultaneously. Thanks a lot, Guy Arnaud Allard de Grandmaison wrote: > > Hi Harel, > > Several existing passes can take command line arguments. Have a look at
2010 Nov 25
1
[LLVMdev] Detailed help with cloning the basic blocks of a function
Hi, Thank you guys for helping me out with my previous questions. I am new to LLVM, and I'm getting stuck trying to do some basic stuff: Currently, I'm trying to move all the basic blocks of one function into another one, and at some point insert a branch into the moved function's entry point. The best way which I've found is to use CloneBasicBlock (from Cloning.h). However, I
2011 Jul 17
0
[LLVMdev] profile.pl (llvm-prof) crash
Hi all, I've been trying to profile with profile.pl, and the output I get always end up crashing with the following assert: lvm-prof: FoldingSet.cpp:184: void** GetBucketPtr(void*): Assertion `(Ptr & 1) && "Not a bucket pointer"' failed. (This is after it runs successfully for a while, giving me the function and basic block frequencies). Am I doing something wrong