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.cpp158 BasicBlock *NewLeaf = BasicBlock::Create(Val->getContext(), "LeafBlock"); in NewLeafBlock() local
159 F->insert(++OrigBlock->getIterator(), NewLeaf); in NewLeafBlock()
166 new ICmpInst(NewLeaf, ICmpInst::ICMP_EQ, Val, Leaf.Low, "SwitchLeaf"); in NewLeafBlock()
171 Comp = new ICmpInst(NewLeaf, ICmpInst::ICMP_SLE, Val, Leaf.High, in NewLeafBlock()
175 Comp = new ICmpInst(NewLeaf, ICmpInst::ICMP_SGE, Val, Leaf.Low, in NewLeafBlock()
179 Comp = new ICmpInst(NewLeaf, ICmpInst::ICMP_ULE, Val, Leaf.High, in NewLeafBlock()
185 Val, NegLo, Val->getName() + ".off", NewLeaf); in NewLeafBlock()
187 Comp = new ICmpInst(NewLeaf, ICmpInst::ICMP_ULE, Add, UpperBound, in NewLeafBlock()
194 BranchInst::Create(Succ, Default, Comp, NewLeaf); in NewLeafBlock()
200 PN->addIncoming(V, NewLeaf); in NewLeafBlock()
[all …]