search for: initializemypassnamepass

Displaying 4 results from an estimated 4 matches for "initializemypassnamepass".

2011 Jan 18
1
[LLVMdev] adding a codegen pass into llvm
Thanks for your last reply. Could I understand the way to adding a pass (built into the llvm rather than dynamic loadable) includes: 1. Declaring a creator function for this pass 2. Implementing the creator function for this pass 3. Instantiating this pass and get a object of it 3. Register this pass into the PassRegistry Then, for a built-into bytecode pass, task 1(declaration of the
2012 Oct 30
1
[LLVMdev] Error when trying to chain two llvm transform passes
...all. What else should >> I be doing? > Initializing them. Are you using INITIALIZE_PASS_DEPENDENCY, INITIALIZE_AG_DEPENDENCY, etc? > No. I am not sure how they work . I am trying to use the INITIALIZE_PASS macro. I get the following error error: definition or redeclaration of 'initializeMyPassNamePass' not in a namespace enclosing 'llvm' should i add the passname to a header file ? if so where? Thank you!! > -Krzysztof > > -- > Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation > _______________________________...
2012 Oct 30
2
[LLVMdev] Error when trying to chain two llvm transform passes
Hi, I am trying to chain two transform passes. ** The first pass is a function pass which requires the 'memory dependence pass' . ** The second pass is a function pass which requires the first pass above. The passes run fine when executed alone. I get the following error when I try to run my second pass with the following code added > > void
2012 Oct 30
0
[LLVMdev] Error when trying to chain two llvm transform passes
On 10/30/2012 4:10 PM, Ashwin kumar wrote: > > Assertion failed: (PI && "Expected required passes to be initialized"), > function schedulePass, file PassManager.cpp, line 597. > > > I register the passes using RegisterPass function call. What else should > I be doing? Initializing them. Are you using INITIALIZE_PASS_DEPENDENCY, INITIALIZE_AG_DEPENDENCY,