Displaying 20 results from an estimated 30000 matches similar to: "[LLVMdev] dependent passes"
2006 Sep 27
0
[LLVMdev] dependent passes
On Sep 26, 2006, at 5:49 PM, Ryan M. Lefever wrote:
> I am trying to create two passes X and Y, in which pass X depends on
> pass Y. After attempting this several times it appears that pass Y
> must
> be in the llvm namespace. Whenever it was not in the llvm namespace,
> "opt -load" would complain about undefined symbols when I called
> getAnalysis<>(). Am I
2006 Sep 27
2
[LLVMdev] dependent passes
I think that we are talking about two different things. I understand
that in order to use LLVM classes you must either qualify them with the
llvm namespace or use the statement "using namespace llvm;" What I'm
saying is that it has been my experience that when a pass Y depends on
another pass X, i.e, Y is a required analysis of X, then Y must be
defined within the llvm
2006 Sep 27
0
[LLVMdev] dependent passes
On Wed, 27 Sep 2006, Ryan M. Lefever wrote:
> I think that we are talking about two different things. I understand
> that in order to use LLVM classes you must either qualify them with the
> llvm namespace or use the statement "using namespace llvm;" What I'm
> saying is that it has been my experience that when a pass Y depends on
> another pass X, i.e, Y is a
2006 Sep 22
2
[LLVMdev] llvm passes
In the instructions for writing LLVM passes, it says "[c]urrently it is
illegal for a ModulePass to require a FunctionPass. This is because
there is only one instance of the FunctionPass object ever created, thus
nowhere to store information for all of the functions in the program at
the same time."
I'm a little confused by that. It was my understanding that if pass X
required
2006 Sep 29
2
[LLVMdev] FunctionPass requiring SCCs
I have a FunctionPass F that needs a list of all the SCCs for use in its
doFinalization() method. Let's say I write a CallGraphSCCPass C that
creates an array of all SCCs. Let C be required by F, and let F call
getAnalysis<C>() from its doFinalization() method. Am I guaranteed that
C's runOnSCC() method will have executed on all SCCs before F's
doFinalization() method?
2006 Sep 25
1
[LLVMdev] llvm passes
So, am I correct that the implication of what you're saying is that if
pass X requires pass Y, then pass Y does not necessarily run to
completion on every component of a program, before pass X runs.
Furthermore, if those passes X and Y are both function passes, then when
pass X runs on function F, the last function Y will have run on is
function F.
Chris Lattner wrote:
> On Fri, 22
2009 Aug 10
2
[LLVMdev] How to use a FunctionPass in a ModulePass?
Hi, all:
I wanted to use a FunctionPass (e.g. *MemoryDependenceAnalysis*) in a
ModulePass, and then I used the method "getAnalysis<*
MemoryDependenceAnalysis*>(llvm::Function *)" described at
http://llvm.org/docs/WritingAnLLVMPass.html#ModulePass to get the
FunctionPass. But , it still crashed when I invoked this pass in tool 'opt'.
However, if I change my pass to
2009 Mar 19
3
[LLVMdev] Pass Manager Question
Dear All,
If I have a ModulePass that requires a FunctionPass, and I include a
line like the following:
<variable> = &getAnalysis<TheFunctionPass>(*Function);
... will the PassManager blindly re-run the FunctionPass each time the
ModulePass requests it, or does it use the Pass dependency information
to re-run the FunctionPass only when necessary.
-- John T.
2011 Nov 10
4
[LLVMdev] Problem getting LoopInfo inside non-LoopPass
John,
This did not work. It compiles (isDeclaration was the name of the
function) and I passed a reference (&F) (F is a function pointer). I still
get the opt load error from the original message (UNREACHABLE exectuted!).
Thanks.
On Thu, Nov 10, 2011 at 10:00 AM, Ryan Taylor <ryta1203 at gmail.com> wrote:
> 1. Ok will do.
> 2. Ok, will do.
> 3. It's a CallGraphPass. I
2006 Sep 25
0
[LLVMdev] llvm passes
On Fri, 22 Sep 2006, Ryan M. Lefever wrote:
> In the instructions for writing LLVM passes, it says "[c]urrently it is
> illegal for a ModulePass to require a FunctionPass. This is because
> there is only one instance of the FunctionPass object ever created, thus
> nowhere to store information for all of the functions in the program at
> the same time."
Right.
>
2009 Feb 12
2
[LLVMdev] DominatorTree Information required in CallGraphPass
Hi all,
I am implementing a new pass for LLVM which extends Call Graph
SCCPass. I need DominatorTree Information when I get to individual
function. I have added AU.addrequired<DominatorTree>() and
AU.addRequired<DominanceFrontier>() in getAnalysisUsage() function.
But, when I get to the pass, Pass Manager gives following runtime error
Unable to schedule 'Dominator Tree
2009 Aug 10
0
[LLVMdev] How to use a FunctionPass in a ModulePass?
On Mon, Aug 10, 2009 at 3:35 AM, gauss<gausszhch at gmail.com> wrote:
> Hi, all:
>
> I wanted to use a FunctionPass (e.g. MemoryDependenceAnalysis) in a
> ModulePass, and then I used the method
> "getAnalysis<MemoryDependenceAnalysis>(llvm::Function *)" described at
> http://llvm.org/docs/WritingAnLLVMPass.html#ModulePass to get the
> FunctionPass. But ,
2009 Apr 28
3
[LLVMdev] O3 passes
Can I specify passes that I want run directly to llvm-gcc? I don't want
all of -O3, for example. I tried llvm-gcc -raiseallocs ..., but that
didn't work. I also tried running cc1 directly and it didn't take
-raiseallocs as a parameter either.
Duncan Sands wrote:
> On Tuesday 28 April 2009 04:02:47 am Ryan M. Lefever wrote:
>> I assume that when -O3 (or O2 or O1) is
2011 Dec 01
1
[LLVMdev] Problem getting LoopInfo inside non-LoopPass
In addition to the link below, please check for functions like "llvm.debug.declare", "llvm.debug.value", as you will not get LoopInfo for these.
Pankaj
________________________________
From: Devang Patel <dpatel at apple.com>
To: Ryan Taylor <ryta1203 at gmail.com>
Cc: llvmdev at cs.uiuc.edu
Sent: Wednesday, November 30, 2011 11:08 PM
Subject: Re: [LLVMdev]
2007 Mar 09
2
[LLVMdev] compile errors with demo projects Stacker and Hello
Hi all!
I have sucessfully installed LLVM 1.9 under FreeBSD on a x86 PC.
I have successfully executed "An Example Using the LLVM Tool Chain" that is
written in the document http://llvm.org/docs/GettingStarted.html
When I tried out the demo projects "Hello" and "Stacker" I get compile errors. When I run "gmake" in the directory
2007 Aug 15
3
[LLVMdev] c const
I don't mean to be a pain, but I was thinking about this a bit more.
Does gcc ignore the const keyword? If not, why has LLVM chosen to
deviate from gcc with respect to the const keyword? If so, then why do
we bother using const in LLVM API code? I'm just curious and wanted to
understand the thinking behind not preserving const.
Thanks,
Ryan
Chris Lattner wrote:
> This property
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
2009 Apr 28
3
[LLVMdev] O3 passes
I assume that when -O3 (or O2 or O1) is passed to llvm-gcc, then it
utilizes opt. How do I determine what passes opt runs? How do I
determine what external tools (and arguments) llvm-gcc is invoking?
Regards,
Ryan
2008 Nov 04
3
[LLVMdev] fPIC
Does llvm-gcc support the -fPIC option? I am using LLVM on both 32 bit
linux and 64 bit linux, if that matters.
Regards,
Ryan
--
Ryan M. Lefever [http://www.crhc.uiuc.edu/~lefever/index.html]
2009 Feb 12
0
[LLVMdev] DominatorTree Information required in CallGraphPass
On Feb 11, 2009, at 6:05 PM, kapil anand wrote:
> Hi all,
>
> I am implementing a new pass for LLVM which extends Call Graph
> SCCPass. I need DominatorTree Information when I get to individual
> function. I have added AU.addrequired<DominatorTree>() and
> AU.addRequired<DominanceFrontier>() in getAnalysisUsage() function.
>
> But, when I get to the pass,