search for: initializeeverything

Displaying 11 results from an estimated 11 matches for "initializeeverything".

2011 Nov 08
0
[LLVMdev] loadable passes with dependencies?
On 11/08/2011 03:40 PM, ret val wrote: > I'm confused by your code. StaticInitializer seems to exist so you can > create InitializeEverything, which doesn't get used. > > Do I need to do something along the lines of: > static void registerPollyPasses(const llvm::PassManagerBuilder&Builder, > llvm::PassManagerBase&PM) { > PM.add(llvm::createPromoteMemor...
2011 Nov 08
2
[LLVMdev] loadable passes with dependencies?
I'm confused by your code. StaticInitializer seems to exist so you can create InitializeEverything, which doesn't get used. Do I need to do something along the lines of: static void registerPollyPasses(const llvm::PassManagerBuilder &Builder, llvm::PassManagerBase &PM) { PM.add(llvm::createPromoteMemoryToRegisterPass());...
2011 Nov 08
2
[LLVMdev] loadable passes with dependencies?
...ENDENCY(DominatorTree) INITIALIZE_PASS_END(Hello, "hello", "Hello World Pass", false, true) class StaticInitializer { public: StaticInitializer() { PassRegistry &Registry = *PassRegistry::getPassRegistry(); initializeHelloPass(Registry); } }; static StaticInitializer InitializeEverything; Thanks again On Tue, Nov 8, 2011 at 10:18 AM, Tobias Grosser <tobias at grosser.es> wrote: > On 11/08/2011 03:40 PM, ret val wrote: >> >> I'm confused by your code. StaticInitializer seems to exist so you can >> create InitializeEverything, which doesn't get us...
2011 Nov 08
4
[LLVMdev] loadable passes with dependencies?
...> class StaticInitializer { >> public: >>        StaticInitializer() { >>                PassRegistry&Registry = *PassRegistry::getPassRegistry(); >>                initializeHelloPass(Registry); >>        } >> }; >> >> static StaticInitializer InitializeEverything; > > Looks good to me. Are you sure you call getAnalysis only for the > DominatorTree? What is the output of "grep getAnalysis YourPass.cpp"? > > Cheers > Tobi >
2011 Nov 08
0
[LLVMdev] loadable passes with dependencies?
...o, "hello", "Hello World Pass", false, true) > > class StaticInitializer { > public: > StaticInitializer() { > PassRegistry&Registry = *PassRegistry::getPassRegistry(); > initializeHelloPass(Registry); > } > }; > > static StaticInitializer InitializeEverything; Looks good to me. Are you sure you call getAnalysis only for the DominatorTree? What is the output of "grep getAnalysis YourPass.cpp"? Cheers Tobi
2011 Nov 08
2
[LLVMdev] loadable passes with dependencies?
...itializer() { >> >>                PassRegistry&Registry = >> >> *PassRegistry::getPassRegistry(); >> >>                initializeHelloPass(Registry); >> >>        } >> >> }; >> >> >> >> static StaticInitializer InitializeEverything; >> > >> > Looks good to me. Are you sure you call getAnalysis only for the >> > DominatorTree? What is the output of "grep getAnalysis YourPass.cpp"? >> > >> > Cheers >> > Tobi >> > >> >> _________________________...
2011 Nov 08
0
[LLVMdev] loadable passes with dependencies?
...> public: > >> StaticInitializer() { > >> PassRegistry&Registry = *PassRegistry::getPassRegistry(); > >> initializeHelloPass(Registry); > >> } > >> }; > >> > >> static StaticInitializer InitializeEverything; > > > > Looks good to me. Are you sure you call getAnalysis only for the > > DominatorTree? What is the output of "grep getAnalysis YourPass.cpp"? > > > > Cheers > > Tobi > > > > _______________________________________________ > LLVM Dev...
2011 Nov 08
0
[LLVMdev] loadable passes with dependencies?
...t;>> PassRegistry&Registry = >>>>> *PassRegistry::getPassRegistry(); >>>>> initializeHelloPass(Registry); >>>>> } >>>>> }; >>>>> >>>>> static StaticInitializer InitializeEverything; >>>> Looks good to me. Are you sure you call getAnalysis only for the >>>> DominatorTree? What is the output of "grep getAnalysis YourPass.cpp"? >>>> >>>> Cheers >>>> Tobi >>>> >>> __________________________...
2011 Nov 09
1
[LLVMdev] loadable passes with dependencies?
...     PassRegistry&Registry = >>>>>> *PassRegistry::getPassRegistry(); >>>>>>                initializeHelloPass(Registry); >>>>>>        } >>>>>> }; >>>>>> >>>>>> static StaticInitializer InitializeEverything; >>>>> >>>>> Looks good to me. Are you sure you call getAnalysis only for the >>>>> DominatorTree? What is the output of "grep getAnalysis YourPass.cpp"? >>>>> >>>>> Cheers >>>>> Tobi >>>&gt...
2011 Nov 08
0
[LLVMdev] loadable passes with dependencies?
On 11/08/2011 03:20 AM, ret val wrote: > I'm writing a Pass that I would like to remain loadable by opt. The > pass also requires DominatorTree(for PromoteMemToReg). > > Looking for examples the only way I found to require a dependecny is > by doing something like this: > char Hello::ID = 0; > namespace llvm { void
2011 Nov 08
2
[LLVMdev] loadable passes with dependencies?
I'm writing a Pass that I would like to remain loadable by opt. The pass also requires DominatorTree(for PromoteMemToReg). Looking for examples the only way I found to require a dependecny is by doing something like this: char Hello::ID = 0; namespace llvm { void initializeHelloPass(llvm::PassRegistry&); } INITIALIZE_PASS_BEGIN(Hello, "hello", "Hello