Lines Matching defs:Leaf
154 BasicBlock *NewLeafBlock(CaseRange &Leaf, Value *Val, ConstantInt *LowerBound,
163 if (Leaf.Low == Leaf.High) {
166 new ICmpInst(NewLeaf, ICmpInst::ICMP_EQ, Val, Leaf.Low, "SwitchLeaf");
169 if (Leaf.Low == LowerBound) {
171 Comp = new ICmpInst(NewLeaf, ICmpInst::ICMP_SLE, Val, Leaf.High,
173 } else if (Leaf.High == UpperBound) {
175 Comp = new ICmpInst(NewLeaf, ICmpInst::ICMP_SGE, Val, Leaf.Low,
177 } else if (Leaf.Low->isZero()) {
179 Comp = new ICmpInst(NewLeaf, ICmpInst::ICMP_ULE, Val, Leaf.High,
183 Constant *NegLo = ConstantExpr::getNeg(Leaf.Low);
186 Constant *UpperBound = ConstantExpr::getAdd(NegLo, Leaf.High);
193 BasicBlock *Succ = Leaf.BB;
208 APInt Range = Leaf.High->getValue() - Leaf.Low->getValue();