Lines Matching defs:Leaf
65 BasicBlock* newLeafBlock(CaseRange& Leaf, Value* Val,
175 BasicBlock* LowerSwitch::newLeafBlock(CaseRange& Leaf, Value* Val,
186 if (Leaf.Low == Leaf.High) {
189 Leaf.Low, "SwitchLeaf");
192 if (cast<ConstantInt>(Leaf.Low)->isMinValue(true /*isSigned*/)) {
194 Comp = new ICmpInst(*NewLeaf, ICmpInst::ICMP_SLE, Val, Leaf.High,
196 } else if (cast<ConstantInt>(Leaf.Low)->isZero()) {
198 Comp = new ICmpInst(*NewLeaf, ICmpInst::ICMP_ULE, Val, Leaf.High,
202 Constant* NegLo = ConstantExpr::getNeg(Leaf.Low);
206 Constant *UpperBound = ConstantExpr::getAdd(NegLo, Leaf.High);
213 BasicBlock* Succ = Leaf.BB;
221 uint64_t Range = cast<ConstantInt>(Leaf.High)->getSExtValue() -
222 cast<ConstantInt>(Leaf.Low)->getSExtValue();