search for: createhellopass

Displaying 8 results from an estimated 8 matches for "createhellopass".

2011 Nov 08
2
[LLVMdev] loadable passes with dependencies?
...et 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()); // create my own createHelloPass() method? } static llvm::RegisterStandardPasses PassRegister(llvm::PassManagerBuilder::EP_EarlyAsPossible, registerPollyPasses); I'm not sure how to code a possible createHelloPass, as the constructor for my class takes a argument(ID for ModulePass...
2011 Nov 08
0
[LLVMdev] loadable passes with dependencies?
...do something along the lines of: > static void registerPollyPasses(const llvm::PassManagerBuilder&Builder, > llvm::PassManagerBase&PM) { > PM.add(llvm::createPromoteMemoryToRegisterPass()); > // create my own createHelloPass() method? > } > > static llvm::RegisterStandardPasses > PassRegister(llvm::PassManagerBuilder::EP_EarlyAsPossible, > registerPollyPasses); > > I'm not sure how to code a possible createHelloPass, as the > constructor for m...
2016 Feb 09
2
CloneFunction during LTO leads to seg fault?
...ule the verifier catches the problem. This is getting to I think CodeGen then crashing. I've found that the module itself needs to be non-trivial to cause the crash. Here is the module I'm testing with [3]. In case it is relevant: to get my pass to run during LTO I added "PM.add(createHelloPass())" to PassMangerBuilder::populateLTOPassManager. I'm using binutils-gold on Linux (Ubuntu 14.04 LTS). Thank you, Scott A. Carr PhD Candidate Purdue University [1] http://pastebin.com/uL6QMtcT [2] http://pastebin.com/i1gd0gE6 [3] http://pastebin.com/GEG0F8kU
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?
...>>         static void registerPollyPasses(const >> llvm::PassManagerBuilder&Builder, >>                                         llvm::PassManagerBase&PM) { >>                PM.add(llvm::createPromoteMemoryToRegisterPass()); >>                // create my own createHelloPass() method? >>         } >> >>         static llvm::RegisterStandardPasses >>         PassRegister(llvm::PassManagerBuilder::EP_EarlyAsPossible, >>                      registerPollyPasses); >> >> I'm not sure how to code a possible createHelloPass, as th...
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
2016 Feb 09
2
CloneFunction during LTO leads to seg fault?
...before and after your pass ran, and also just before CodeGen. > >> I've found that the module itself needs to be non-trivial to cause the crash. Here is the module I'm testing with [3]. >> >> In case it is relevant: to get my pass to run during LTO I added "PM.add(createHelloPass())" to PassMangerBuilder::populateLTOPassManager. I'm using binutils-gold on Linux (Ubuntu 14.04 LTS). > You may want to try to add it at the end of the pipeline, in case something does not play well with optimizations (just trying to pinpoint where the issue is). >
2016 Feb 11
2
CloneFunction during LTO leads to seg fault?
...d also just before CodeGen. >>> >>>> I've found that the module itself needs to be non-trivial to cause the crash. Here is the module I'm testing with [3]. >>>> >>>> In case it is relevant: to get my pass to run during LTO I added "PM.add(createHelloPass())" to PassMangerBuilder::populateLTOPassManager. I'm using binutils-gold on Linux (Ubuntu 14.04 LTS). >>> You may want to try to add it at the end of the pipeline, in case something does not play well with optimizations (just trying to pinpoint where the issue is). >>>...