search for: globalmodrefpass

Displaying 13 results from an estimated 13 matches for "globalmodrefpass".

2008 Oct 08
2
[LLVMdev] Error while making new pass
Hi Devang, GlobalModRefPass is also a ModulePass and it uses CallGraph Analysis. So, I think it should not necessary to extend CallGraphSCCPass to use CallGraph information. Module Pass shoule be sufficient... --Kapil On 10/8/08, Devang Patel <dpatel at apple.com> wrote: > Hi Kapil, > > On Oct 8, 2008, at 10...
2008 Oct 08
2
[LLVMdev] Error while making new pass
Hi all, I need a new kind of analysis on LLVM Module, so I made a new pass to do this. This new pass extends the ModulePass class and follows the conventions used in GlobalModRefPass, which is also a Module Pass.I need the CallGraph analysis for this pass, hence I have added (addRequired(CallGraph)) in getAnalysisUsage function of this new pass. I also added it to CallGraph Analysis group through "RegisterAnalysisGroup" This new pass is not part of any LLVM library...
2008 Oct 08
0
[LLVMdev] Error while making new pass
On Oct 8, 2008, at 10:59 AM, kapil anand wrote: > Hi Devang, > > GlobalModRefPass is also a ModulePass and it uses CallGraph Analysis. > So, I think it should not necessary to extend CallGraphSCCPass to use > CallGraph information. Module Pass shoule be sufficient... ok, but you're Registering your pass in CallGraph Analysis group. What if you remove "RegisterAna...
2008 Oct 08
0
[LLVMdev] Error while making new pass
Hi Kapil, On Oct 8, 2008, at 10:19 AM, kapil anand wrote: > Hi all, > > I need a new kind of analysis on LLVM Module, so I made a new pass > to do this. This new pass extends the ModulePass class and follows > the conventions used in GlobalModRefPass, which is also a Module > Pass.I need the CallGraph analysis for this pass, hence I have added > (addRequired(CallGraph)) in getAnalysisUsage function of this new > pass. A module pass may not required CallGraph. Probably, you want to make your pass a CallGraphSCCPass, e.g. Inline...
2008 Oct 08
1
[LLVMdev] Error while making new pass
...have removed it again. Is there any other registration required to configure pass manager for the pass? --Kapil On Wed, Oct 8, 2008 at 2:37 PM, Devang Patel <dpatel at apple.com> wrote: > > On Oct 8, 2008, at 10:59 AM, kapil anand wrote: > > > Hi Devang, > > > > GlobalModRefPass is also a ModulePass and it uses CallGraph Analysis. > > So, I think it should not necessary to extend CallGraphSCCPass to use > > CallGraph information. Module Pass shoule be sufficient... > > ok, but you're Registering your pass in CallGraph Analysis group. > What if you...
2008 Aug 21
2
[LLVMdev] Call Graph Analysis
...age function. The application compiles fine but while linking, I get following errors: "undefined reference to llvm::CallGraphLinkVar" "undefined reference to llvm::CallGraph::ID The above error is at point where I refer to individual instruction. I followed the conventions used in GlobalModRefPass, which is also an extension of ModulePass. Is there any other convention which needs to be followed? Thanks --Kapil On Wed, Aug 20, 2008 at 1:59 PM, Bill Wendling <isanbard at gmail.com> wrote: > On Wed, Aug 20, 2008 at 9:47 AM, kapil anand <kapilanand2 at gmail.com> > wrote:...
2008 Aug 22
0
[LLVMdev] Call Graph Analysis
...piles fine but while linking, I get following > errors: > "undefined reference to llvm::CallGraphLinkVar" > "undefined reference to llvm::CallGraph::ID > > The above error is at point where I refer to individual instruction. > I followed the conventions used in GlobalModRefPass, which is also > an extension of ModulePass. Is there any other convention which > needs to be followed? > I would think that that is enough. Where are you adding this module? Is it part of the libLLVMipa.a library? Or is it another library? Make sure that when you link your applic...
2008 Dec 09
2
[LLVMdev] AliasAnalysis tutorial
Hi ! I'm writting an AliasAnalysis using the online tutorial (http://www.llvm.org/docs/AliasAnalysis.html). My problem is to chain this pass (function Pass in my case) with the basicAA ... I know that my pass is running (runOnFunction) but the virtual methods derived from AliasAnalysis (alias, getModRefInfo, etc ... ) are never called (even in the case wherer the basicAA reaches the end
2008 Dec 09
1
[LLVMdev] AliasAnalysis tutorial 2
Hi ! In my quest of implementing my own AA, i understood that it doesn't work because i don't use the 'opt' tool but i create my own PassManager (this for other reasons). The problem is the same with other existing AA (AndersensPass or globalModRefPass) : these AApasses are not chained with the basicAA when they are created in PassManager ... So my question is now : how to call an AAPass using a local PassManager (without opt) ? Thank you ! Julien
2008 Aug 20
0
[LLVMdev] Call Graph Analysis
On Wed, Aug 20, 2008 at 9:47 AM, kapil anand <kapilanand2 at gmail.com> wrote: > Hi, > > I have been working on implementing new analysis for a LLVM module. For > that, I need that Call Graph of the module. Inside the CallGraph file, the > constructor has been declared "protected" hence I can't define its instance > and thus use the CallGraph for further
2008 Aug 22
1
[LLVMdev] Call Graph Analysis
...ng, I get following > > errors: > > "undefined reference to llvm::CallGraphLinkVar" > > "undefined reference to llvm::CallGraph::ID > > > > The above error is at point where I refer to individual instruction. > > I followed the conventions used in GlobalModRefPass, which is also > > an extension of ModulePass. Is there any other convention which > > needs to be followed? > > > I would think that that is enough. Where are you adding this module? > Is it part of the libLLVMipa.a library? Or is it another library? Make > sure that whe...
2008 Aug 20
2
[LLVMdev] Call Graph Analysis
Hi, I have been working on implementing new analysis for a LLVM module. For that, I need that Call Graph of the module. Inside the CallGraph file, the constructor has been declared "protected" hence I can't define its instance and thus use the CallGraph for further analysis. So, what are the ways of building and using Call Graph of a module. Do I need to make my new analysis as
2008 Dec 09
0
[LLVMdev] AliasAnalysis tutorial 2
...Schmitt wrote: > Hi ! > In my quest of implementing my own AA, i understood that it doesn't work > because i don't use the 'opt' tool but i create my own PassManager (this > for other reasons). > The problem is the same with other existing AA (AndersensPass or > globalModRefPass) : > these AApasses are not chained with the basicAA when they are created in > PassManager ... > > So my question is now : how to call an AAPass using a local PassManager > (without opt) ? > I'm assuming that by "creating your own PassManager" you mean that y...