Lines Matching refs:Leaf
158 BasicBlock *NewLeafBlock(CaseRange &Leaf, Value *Val, ConstantInt *LowerBound, in NewLeafBlock() argument
167 if (Leaf.Low == Leaf.High) { in NewLeafBlock()
170 new ICmpInst(*NewLeaf, ICmpInst::ICMP_EQ, Val, Leaf.Low, "SwitchLeaf"); in NewLeafBlock()
173 if (Leaf.Low == LowerBound) { in NewLeafBlock()
175 Comp = new ICmpInst(*NewLeaf, ICmpInst::ICMP_SLE, Val, Leaf.High, in NewLeafBlock()
177 } else if (Leaf.High == UpperBound) { in NewLeafBlock()
179 Comp = new ICmpInst(*NewLeaf, ICmpInst::ICMP_SGE, Val, Leaf.Low, in NewLeafBlock()
181 } else if (Leaf.Low->isZero()) { in NewLeafBlock()
183 Comp = new ICmpInst(*NewLeaf, ICmpInst::ICMP_ULE, Val, Leaf.High, in NewLeafBlock()
187 Constant *NegLo = ConstantExpr::getNeg(Leaf.Low); in NewLeafBlock()
190 Constant *UpperBound = ConstantExpr::getAdd(NegLo, Leaf.High); in NewLeafBlock()
197 BasicBlock *Succ = Leaf.BB; in NewLeafBlock()
212 uint64_t Range = Leaf.High->getSExtValue() - Leaf.Low->getSExtValue(); in NewLeafBlock()