Lines Matching refs:Loop
42 static const char *const LoopIntrinsic = "llvm.SI.loop";
64 Constant *Loop;
86 Value *handleLoopCondition(Value *Cond, PHINode *Broken, llvm::Loop *L);
146 Loop = M.getOrInsertFunction(
209 /// \brief Recursively handle the condition leading to a loop
211 llvm::Loop *L) {
213 // Only search through PHI nodes which are inside the loop. If we try this
214 // with PHI nodes that are outside of the loop, we end up inserting new PHI
215 // nodes outside of the loop which depend on values defined inside the loop.
275 llvm_unreachable("Unhandled loop condition!");
280 /// \brief Handle a back edge (loop)
283 llvm::Loop *L = LI->getLoopFor(BB);
297 Term->setCondition(CallInst::Create(Loop, Arg, "", Term));
301 llvm::Loop *L = LI->getLoopFor(BB);
304 // We can't insert an EndCF call into a loop header, because it will
305 // get executed on every iteration of the loop, when it should be
306 // executed only once before the loop.