Lines Matching refs:Leaf
156 BasicBlock *NewLeafBlock(CaseRange &Leaf, Value *Val, ConstantInt *LowerBound, in NewLeafBlock() argument
165 if (Leaf.Low == Leaf.High) { in NewLeafBlock()
168 new ICmpInst(NewLeaf, ICmpInst::ICMP_EQ, Val, Leaf.Low, "SwitchLeaf"); in NewLeafBlock()
171 if (Leaf.Low == LowerBound) { in NewLeafBlock()
173 Comp = new ICmpInst(NewLeaf, ICmpInst::ICMP_SLE, Val, Leaf.High, in NewLeafBlock()
175 } else if (Leaf.High == UpperBound) { in NewLeafBlock()
177 Comp = new ICmpInst(NewLeaf, ICmpInst::ICMP_SGE, Val, Leaf.Low, in NewLeafBlock()
179 } else if (Leaf.Low->isZero()) { in NewLeafBlock()
181 Comp = new ICmpInst(NewLeaf, ICmpInst::ICMP_ULE, Val, Leaf.High, in NewLeafBlock()
185 Constant *NegLo = ConstantExpr::getNeg(Leaf.Low); in NewLeafBlock()
188 Constant *UpperBound = ConstantExpr::getAdd(NegLo, Leaf.High); in NewLeafBlock()
195 BasicBlock *Succ = Leaf.BB; in NewLeafBlock()
210 APInt Range = Leaf.High->getValue() - Leaf.Low->getValue(); in NewLeafBlock()