Displaying 3 results from an estimated 3 matches for "staticinti".
Did you mean:
static_init
2011 Nov 08
0
[LLVMdev] loadable passes with dependencies?
...t needs to be called
before your pass is scheduled.
To achieve this we create a class StaticInitializer, which does this in
its constructor. It get's the global pass registry and uses the pass
registry as a parameter for the intialize*Pass() functions. As we create
a static variable of type StaticIntializer, its constructor is called as
soon as the module is loaded such that the intialization is performed on
load.
Let me know if this helped you.
Cheers
Tobi
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?
...before your pass is scheduled.
>
> To achieve this we create a class StaticInitializer, which does this in its
> constructor. It get's the global pass registry and uses the pass registry as
> a parameter for the intialize*Pass() functions. As we create a static
> variable of type StaticIntializer, its constructor is called as soon as the
> module is loaded such that the intialization is performed on load.
>
> Let me know if this helped you.
>
> Cheers
> Tobi
>
>