search for: regtomem

Displaying 3 results from an estimated 3 matches for "regtomem".

2011 Jun 20
2
[LLVMdev] run -mem2reg and -reg2mem programmably from within a Pass
...ck pass which requires to run -reg2mem before it, and need to run -mem2reg after it to clean up. So, I want to specify -reg2mem as one of the pre-requisite passes to it, as: class MyPass: public BasicBlockPass{ virtual void getAnalysisUsage(AnalysisUsage &AU){ ... AU.addRequired<RegToMem>(); ... } }; I searched all passes under the lib/Transform directory, but didn't find a single case of my expected usage. Though I know opt takes both -reg2mem and -mem2reg as valid arguments and does the proper transformation, I didn't figure out how it is being done. Wh...
2011 Jun 20
0
[LLVMdev] run -mem2reg and -reg2mem programmably from within a Pass
...it, and need to run -mem2reg after it to clean up. > > So, I want to specify -reg2mem as one of the pre-requisite passes to it, as: > > > class MyPass: public BasicBlockPass{ > > virtual void getAnalysisUsage(AnalysisUsage &AU){ > ... > AU.addRequired<RegToMem>(); > ... > } > > }; > > > I searched all passes under the lib/Transform directory, but didn't find a single case of my expected usage. > Though I know opt takes both -reg2mem and -mem2reg as valid arguments and does the proper transformation, I didn't fi...
2010 Oct 11
3
[LLVMdev] Specify dominator for BasicBlock to avoid "Instruction does not dominate all uses!"
Hi, I am working on a pass aimed to unify multiple exits of a loop into a unique basic block. The approach is straight forward: I create a unique BasicBlock BB_unique that has as predecessors all the exit blocks of the loop, it contains a phi instruction and a switch to redirect the flow correctly. Additionally, for each initial exit block I create an associated block that will jump to the