Home
last modified time | relevance | path

Searched refs:NewLeaf (Results 1 – 1 of 1) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DLowerSwitch.cpp160 BasicBlock *NewLeaf = BasicBlock::Create(Val->getContext(), "LeafBlock"); in NewLeafBlock() local
161 F->insert(++OrigBlock->getIterator(), NewLeaf); in NewLeafBlock()
168 new ICmpInst(NewLeaf, ICmpInst::ICMP_EQ, Val, Leaf.Low, "SwitchLeaf"); in NewLeafBlock()
173 Comp = new ICmpInst(NewLeaf, ICmpInst::ICMP_SLE, Val, Leaf.High, in NewLeafBlock()
177 Comp = new ICmpInst(NewLeaf, ICmpInst::ICMP_SGE, Val, Leaf.Low, in NewLeafBlock()
181 Comp = new ICmpInst(NewLeaf, ICmpInst::ICMP_ULE, Val, Leaf.High, in NewLeafBlock()
187 Val, NegLo, Val->getName() + ".off", NewLeaf); in NewLeafBlock()
189 Comp = new ICmpInst(NewLeaf, ICmpInst::ICMP_ULE, Add, UpperBound, in NewLeafBlock()
196 BranchInst::Create(Succ, Default, Comp, NewLeaf); in NewLeafBlock()
202 PN->addIncoming(V, NewLeaf); in NewLeafBlock()
[all …]