Lines Matching refs:Leaf
81 BasicBlock *newLeafBlock(CaseRange &Leaf, Value *Val, BasicBlock *OrigBlock,
295 BasicBlock* LowerSwitch::newLeafBlock(CaseRange& Leaf, Value* Val, in newLeafBlock() argument
305 if (Leaf.Low == Leaf.High) { in newLeafBlock()
308 Leaf.Low, "SwitchLeaf"); in newLeafBlock()
311 if (Leaf.Low->isMinValue(true /*isSigned*/)) { in newLeafBlock()
313 Comp = new ICmpInst(*NewLeaf, ICmpInst::ICMP_SLE, Val, Leaf.High, in newLeafBlock()
315 } else if (Leaf.Low->isZero()) { in newLeafBlock()
317 Comp = new ICmpInst(*NewLeaf, ICmpInst::ICMP_ULE, Val, Leaf.High, in newLeafBlock()
321 Constant* NegLo = ConstantExpr::getNeg(Leaf.Low); in newLeafBlock()
325 Constant *UpperBound = ConstantExpr::getAdd(NegLo, Leaf.High); in newLeafBlock()
332 BasicBlock* Succ = Leaf.BB; in newLeafBlock()
340 uint64_t Range = Leaf.High->getSExtValue() - in newLeafBlock()
341 Leaf.Low->getSExtValue(); in newLeafBlock()