search for: insertloop

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

Did you mean: innerloop
2011 May 09
2
[LLVMdev] get LPPassManager to use it in llvm::CloneLoop
...w instance : ValueMap<const Value *, Value* > VMap; LoopInfo *LI = &getAnalysis<LoopInfo>(); LPPassManager *LPM = new llvm::LPPassManager(1); Loop* nL = llvm::CloneLoop(L, LPM, LI, VMap, this); but it segfaults in CloneLoop when trying LPM->insertLoop(..). Does the CloneLoop function include both loops in the CFG and re-create the use map between the clones? Also does it update the phi nodes to use either the original or the cloned values? Thank you for your help, Alexandra -------------- next part -------------- An HTML attachment was...
2011 May 09
0
[LLVMdev] get LPPassManager to use it in llvm::CloneLoop
...alueMap<const Value *, Value* > VMap; >         LoopInfo *LI = &getAnalysis<LoopInfo>(); >         LPPassManager *LPM = new llvm::LPPassManager(1); > >         Loop* nL = llvm::CloneLoop(L, LPM, LI, VMap, this); > > but it segfaults in CloneLoop when trying LPM->insertLoop(..). CloneLoop isn't fundamentally dependent on a LPPassManager, but it looks like you have to pass one in at the moment; you might need to mess with the implementation of llvm::CloneLoop (in CloneLoop.cpp) a bit so that passing in null for the LPM argument works correctly. > Does the Clon...
2011 Jun 15
2
[LLVMdev] get LPPassManager to use it in llvm::CloneLoop
...alueMap<const Value *, Value* > VMap; > LoopInfo *LI = &getAnalysis<LoopInfo>(); > LPPassManager *LPM = new llvm::LPPassManager(1); > > Loop* nL = llvm::CloneLoop(L, LPM, LI, VMap, this); > > but it segfaults in CloneLoop when trying LPM->insertLoop(..). CloneLoop isn't fundamentally dependent on a LPPassManager, but it looks like you have to pass one in at the moment; you might need to mess with the implementation of llvm::CloneLoop (in CloneLoop.cpp) a bit so that passing in null for the LPM argument works correctly. > Does the Clon...