search for: initializehellopass

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

2011 Nov 08
2
[LLVMdev] loadable passes with dependencies?
...on an analysis that was not " "'required' by pass!"), function getAnalysisID But I already have: void getAnalysisUsage(AnalysisUsage &AU) const { AU.addRequired<DominatorTree>(); } And changed the bottom of my pass too: char Hello::ID = 0; namespace llvm { void initializeHelloPass(llvm::PassRegistry&); } INITIALIZE_PASS_BEGIN(Hello, "hello", "Hello World Pass", false, true) INITIALIZE_PASS_DEPENDENCY(DominatorTree) INITIALIZE_PASS_END(Hello, "hello", "Hello World Pass", false, true) class StaticInitializer { public: StaticInitial...
2011 Nov 08
4
[LLVMdev] loadable passes with dependencies?
...>> >> But I already have: >> void getAnalysisUsage(AnalysisUsage&AU) const { >>                AU.addRequired<DominatorTree>(); >> } >> >> And changed the bottom of my pass too: >> >> char Hello::ID = 0; >> namespace llvm { void initializeHelloPass(llvm::PassRegistry&); } >> INITIALIZE_PASS_BEGIN(Hello, "hello", "Hello World Pass", false, true) >> INITIALIZE_PASS_DEPENDENCY(DominatorTree) >> INITIALIZE_PASS_END(Hello, "hello", "Hello World Pass", false, true) >> >> clas...
2011 Nov 08
0
[LLVMdev] loadable passes with dependencies?
...required' by pass!"), function getAnalysisID > > But I already have: > void getAnalysisUsage(AnalysisUsage&AU) const { > AU.addRequired<DominatorTree>(); > } > > And changed the bottom of my pass too: > > char Hello::ID = 0; > namespace llvm { void initializeHelloPass(llvm::PassRegistry&); } > INITIALIZE_PASS_BEGIN(Hello, "hello", "Hello World Pass", false, true) > INITIALIZE_PASS_DEPENDENCY(DominatorTree) > INITIALIZE_PASS_END(Hello, "hello", "Hello World Pass", false, true) > > class StaticInitializer...
2011 Nov 08
2
[LLVMdev] loadable passes with dependencies?
...sUsage(AnalysisUsage&AU) const { >> >>                AU.addRequired<DominatorTree>(); >> >> } >> >> >> >> And changed the bottom of my pass too: >> >> >> >> char Hello::ID = 0; >> >> namespace llvm { void initializeHelloPass(llvm::PassRegistry&); } >> >> INITIALIZE_PASS_BEGIN(Hello, "hello", "Hello World Pass", false, true) >> >> INITIALIZE_PASS_DEPENDENCY(DominatorTree) >> >> INITIALIZE_PASS_END(Hello, "hello", "Hello World Pass", false, t...
2011 Nov 08
2
[LLVMdev] loadable passes with dependencies?
...ke 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 World Pass", false, >> true) >>         INITIALIZE_PASS_DEPENDENCY(DominatorTree) >>         INITIALIZE_PASS_END(Hello, "hello", "Hello World Pass", fa...
2011 Nov 08
0
[LLVMdev] loadable passes with dependencies?
...gt; >> void getAnalysisUsage(AnalysisUsage&AU) const { > >> AU.addRequired<DominatorTree>(); > >> } > >> > >> And changed the bottom of my pass too: > >> > >> char Hello::ID = 0; > >> namespace llvm { void initializeHelloPass(llvm::PassRegistry&); } > >> INITIALIZE_PASS_BEGIN(Hello, "hello", "Hello World Pass", false, true) > >> INITIALIZE_PASS_DEPENDENCY(DominatorTree) > >> INITIALIZE_PASS_END(Hello, "hello", "Hello World Pass", false, true) > &g...
2011 Nov 08
0
[LLVMdev] loadable passes with dependencies?
...c: 87 StaticInitializer() { 88 PassRegistry &Registry = *PassRegistry::getPassRegistry(); 89 initializePollyPasses(Registry); 90 } 91 }; 92 93 static StaticInitializer InitializeEverything; For your example, the INITIALIZE_PASS_ macros create for your Hello pass a function initializeHelloPass(PassRegistry &). This function initializes your pass and all dependent passes. It 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...
2011 Nov 08
0
[LLVMdev] loadable passes with dependencies?
...mp;AU) const { >>>>> AU.addRequired<DominatorTree>(); >>>>> } >>>>> >>>>> And changed the bottom of my pass too: >>>>> >>>>> char Hello::ID = 0; >>>>> namespace llvm { void initializeHelloPass(llvm::PassRegistry&); } >>>>> INITIALIZE_PASS_BEGIN(Hello, "hello", "Hello World Pass", false, true) >>>>> INITIALIZE_PASS_DEPENDENCY(DominatorTree) >>>>> INITIALIZE_PASS_END(Hello, "hello", "Hello World Pass",...
2011 Nov 09
1
[LLVMdev] loadable passes with dependencies?
...>>>                AU.addRequired<DominatorTree>(); >>>>>> } >>>>>> >>>>>> And changed the bottom of my pass too: >>>>>> >>>>>> char Hello::ID = 0; >>>>>> namespace llvm { void initializeHelloPass(llvm::PassRegistry&); } >>>>>> INITIALIZE_PASS_BEGIN(Hello, "hello", "Hello World Pass", false, true) >>>>>> INITIALIZE_PASS_DEPENDENCY(DominatorTree) >>>>>> INITIALIZE_PASS_END(Hello, "hello", "Hello World...
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 World Pass", false, true) INITIALIZE_PASS_DEPENDENCY(DominatorTree) INITIALIZE_PASS_END(Hello, "hello", "Hello World Pass", false, true) Unfortunately this gives...
2011 Nov 08
0
[LLVMdev] loadable passes with dependencies?
...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 World Pass", false, true) > INITIALIZE_PASS_DEPENDENCY(DominatorTree) > INITIALIZE_PASS_END(Hello, "hello", "Hello World Pass", false, true) > &g...