Lines Matching defs:Cond
86 handleLoopCondition(Value *Cond, PHINode *Broken, llvm::Loop *L,
192 Value *Cond = IRB.CreateExtractValue(IfCall, {0});
194 Term->setCondition(Cond);
208 Value *Cond = IRB.CreateExtractValue(ElseCall, {0});
210 Term->setCondition(Cond);
217 Value *Cond, PHINode *Broken, llvm::Loop *L, BranchInst *Term) {
219 auto CreateBreak = [this, Cond, Broken](Instruction *I) -> CallInst * {
221 getDecl(IfBreak, Intrinsic::amdgcn_if_break, IntMask), {Cond, Broken});
224 if (Instruction *Inst = dyn_cast<Instruction>(Cond)) {
228 // Insert IfBreak in the same BB as Cond, which can help
242 if (isa<Constant>(Cond)) {
243 Instruction *Insert = Cond == BoolTrue ?
249 if (isa<Argument>(Cond)) {
271 Value *Cond = Term->getCondition();
273 Value *Arg = handleLoopCondition(Cond, Broken, L, Term);