Home | History | Annotate | Download | only in R600

Lines Matching defs:If

34 static const char *const IfIntrinsic = "llvm.SI.if";
37 static const char *const IfBreakIntrinsic = "llvm.SI.if.break";
56 Constant *If;
126 If = M.getOrInsertFunction(
170 if (Phi->getIncomingBlock(i) == IDom) {
172 if (Phi->getIncomingValue(i) != BoolTrue)
176 if (Phi->getIncomingValue(i) != BoolFalse)
184 // \brief Erase "Phi" if it is not used any more
186 if (!Phi->hasNUsesOrMore(1))
190 /// \brief Open a new "If" block
192 Value *Ret = CallInst::Create(If, Term->getCondition(), "", Term);
197 /// \brief Close the last "If" block and open a new "Else" block
206 if (PHINode *Phi = dyn_cast<PHINode>(Cond)) {
211 if (isa<ConstantInt>(Incoming))
224 if (Incoming != BoolTrue)
228 if (From == IDom) {
230 if (OldEnd && OldEnd->getCalledFunction() == EndCf) {
248 } else if (Instruction *Inst = dyn_cast<Instruction>(Cond)) {
290 /// recognize if/then/else and loops.
299 if (!Term || Term->isUnconditional()) {
300 if (isTopOfStack(*I))
305 if (I.nodeVisited(Term->getSuccessor(1))) {
306 if (isTopOfStack(*I))
312 if (isTopOfStack(*I)) {
314 if (Phi && Phi->getParent() == *I && isElse(Phi)) {