Home
last modified time | relevance | path

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

/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/
DLowerSwitch.cpp180 BasicBlock* NewLeaf = BasicBlock::Create(Val->getContext(), "LeafBlock"); in newLeafBlock() local
182 F->getBasicBlockList().insert(++FI, NewLeaf); in newLeafBlock()
188 Comp = new ICmpInst(*NewLeaf, ICmpInst::ICMP_EQ, Val, in newLeafBlock()
194 Comp = new ICmpInst(*NewLeaf, ICmpInst::ICMP_SLE, Val, Leaf.High, in newLeafBlock()
198 Comp = new ICmpInst(*NewLeaf, ICmpInst::ICMP_ULE, Val, Leaf.High, in newLeafBlock()
205 NewLeaf); in newLeafBlock()
207 Comp = new ICmpInst(*NewLeaf, ICmpInst::ICMP_ULE, Add, UpperBound, in newLeafBlock()
214 BranchInst::Create(Succ, Default, Comp, NewLeaf); in newLeafBlock()
229 PN->setIncomingBlock((unsigned)BlockIdx, NewLeaf); in newLeafBlock()
232 return NewLeaf; in newLeafBlock()
/external/llvm/lib/Transforms/Utils/
DLowerSwitch.cpp300 BasicBlock* NewLeaf = BasicBlock::Create(Val->getContext(), "LeafBlock"); in newLeafBlock() local
301 F->getBasicBlockList().insert(++OrigBlock->getIterator(), NewLeaf); in newLeafBlock()
307 Comp = new ICmpInst(*NewLeaf, ICmpInst::ICMP_EQ, Val, in newLeafBlock()
313 Comp = new ICmpInst(*NewLeaf, ICmpInst::ICMP_SLE, Val, Leaf.High, in newLeafBlock()
317 Comp = new ICmpInst(*NewLeaf, ICmpInst::ICMP_ULE, Val, Leaf.High, in newLeafBlock()
324 NewLeaf); in newLeafBlock()
326 Comp = new ICmpInst(*NewLeaf, ICmpInst::ICMP_ULE, Add, UpperBound, in newLeafBlock()
333 BranchInst::Create(Succ, Default, Comp, NewLeaf); in newLeafBlock()
348 PN->setIncomingBlock((unsigned)BlockIdx, NewLeaf); in newLeafBlock()
351 return NewLeaf; in newLeafBlock()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/
DLowerSwitch.cpp312 BasicBlock* NewLeaf = BasicBlock::Create(Val->getContext(), "LeafBlock"); in newLeafBlock() local
313 F->getBasicBlockList().insert(++OrigBlock->getIterator(), NewLeaf); in newLeafBlock()
319 Comp = new ICmpInst(*NewLeaf, ICmpInst::ICMP_EQ, Val, in newLeafBlock()
325 Comp = new ICmpInst(*NewLeaf, ICmpInst::ICMP_SLE, Val, Leaf.High, in newLeafBlock()
329 Comp = new ICmpInst(*NewLeaf, ICmpInst::ICMP_ULE, Val, Leaf.High, in newLeafBlock()
336 NewLeaf); in newLeafBlock()
338 Comp = new ICmpInst(*NewLeaf, ICmpInst::ICMP_ULE, Add, UpperBound, in newLeafBlock()
345 BranchInst::Create(Succ, Default, Comp, NewLeaf); in newLeafBlock()
360 PN->setIncomingBlock((unsigned)BlockIdx, NewLeaf); in newLeafBlock()
363 return NewLeaf; in newLeafBlock()