search for: initialize_pass_

Displaying 9 results from an estimated 9 matches for "initialize_pass_".

Did you mean: initialize_pass
2013 Jan 28
0
[LLVMdev] Purpose and usage of INITIALIZE_PASS_*
Hi All, Looking at the code of MemDepPrinter.cpp, I saw the char MemDepPrinter::ID = 0; > INITIALIZE_PASS_BEGIN(MemDepPrinter, "print-memdeps", > "Print MemDeps of function", false, true) > INITIALIZE_PASS_DEPENDENCY(MemoryDependenceAnalysis) > INITIALIZE_PASS_END(MemDepPrinter, "print-memdeps", > "Print MemDeps of function", false, true) What's t...
2018 Sep 24
3
Porting Pass to New PassManager
...ddressSanitizer pass from the legacy PassManager to the new one because the new one has various benefits over legacy and wanted to clarify on something. Does creating the static RegisterPass struct register the pass with the new PassManager? It seems that RegisterPass does the same things that the INITIALIZE_PASS_* macros do but it registers the pass with PassRegistry::getPassRegistry(). What I'm not sure of is if this uses the new PassManager infrastructure. Exploring the code doesn't seem to show that this PassRegistry touches anything in the legacy namespace, but I wanted double confirmation on th...
2018 Sep 25
2
Porting Pass to New PassManager
...e new one because the new one has various benefits > > over legacy and wanted to clarify on something. Does creating the > > static RegisterPass struct register the pass with the new PassManager? > > > > It seems that RegisterPass does the same things that the > > INITIALIZE_PASS_* macros do but it registers the pass with > > PassRegistry::getPassRegistry(). What I'm not sure of is if this uses > > the new PassManager infrastructure. Exploring the code doesn't seem to > > show that this PassRegistry touches anything in the legacy namespace, >...
2011 Nov 08
0
[LLVMdev] loadable passes with dependencies?
...r 83 // loading Polly. 84 class StaticInitializer { 85 86 public: 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 ge...
2018 Sep 25
2
Porting Pass to New PassManager
...e new one has various benefits >> > over legacy and wanted to clarify on something. Does creating the >> > static RegisterPass struct register the pass with the new PassManager? >> > >> > It seems that RegisterPass does the same things that the >> > INITIALIZE_PASS_* macros do but it registers the pass with >> > PassRegistry::getPassRegistry(). What I'm not sure of is if this uses >> > the new PassManager infrastructure. Exploring the code doesn't seem to >> > show that this PassRegistry touches anything in the legacy name...
2011 Nov 08
2
[LLVMdev] loadable passes with dependencies?
...inatorTree(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
2
[LLVMdev] loadable passes with dependencies?
...quired' 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: StaticInitializer() { PassRegistry &Registry = *Pass...
2018 Sep 27
2
Porting Pass to New PassManager
...> over legacy and wanted to clarify on something. Does creating the > >>> > static RegisterPass struct register the pass with the new > PassManager? > >>> > > >>> > It seems that RegisterPass does the same things that the > >>> > INITIALIZE_PASS_* macros do but it registers the pass with > >>> > PassRegistry::getPassRegistry(). What I'm not sure of is if this > uses > >>> > the new PassManager infrastructure. Exploring the code doesn't seem > to > >>> > show that this PassRegistr...
2014 Aug 19
45
[LLVMdev] [RFC] Removing static initializers for command line options
> On Aug 19, 2014, at 1:32 PM, Rafael Espíndola <rafael.espindola at gmail.com> wrote: > >>> * Nobs for which there is not a single right answer for all users. >>> There are very few of these currently and we expect it to remain like >>> that. These should not use cl::opt or static storage at all. They >>> should be an option passed to the