Home
last modified time | relevance | path

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

/external/llvm/lib/Transforms/Utils/
DSimplifyCFG.cpp4355 static Value *ConvertTwoCaseSwitch(const SwitchCaseResultVectorTy &ResultVector, in ConvertTwoCaseSwitch() argument
4358 assert(ResultVector.size() == 2 && in ConvertTwoCaseSwitch()
4362 if (ResultVector[0].second.size() == 1 && in ConvertTwoCaseSwitch()
4363 ResultVector[1].second.size() == 1) { in ConvertTwoCaseSwitch()
4364 ConstantInt *const FirstCase = ResultVector[0].second[0]; in ConvertTwoCaseSwitch()
4365 ConstantInt *const SecondCase = ResultVector[1].second[0]; in ConvertTwoCaseSwitch()
4368 Value *SelectValue = ResultVector[1].first; in ConvertTwoCaseSwitch()
4372 SelectValue = Builder.CreateSelect(ValueCompare, ResultVector[1].first, in ConvertTwoCaseSwitch()
4377 return Builder.CreateSelect(ValueCompare, ResultVector[0].first, in ConvertTwoCaseSwitch()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/
DSimplifyCFG.cpp4779 static Value *ConvertTwoCaseSwitch(const SwitchCaseResultVectorTy &ResultVector, in ConvertTwoCaseSwitch() argument
4782 assert(ResultVector.size() == 2 && in ConvertTwoCaseSwitch()
4786 if (ResultVector[0].second.size() == 1 && in ConvertTwoCaseSwitch()
4787 ResultVector[1].second.size() == 1) { in ConvertTwoCaseSwitch()
4788 ConstantInt *const FirstCase = ResultVector[0].second[0]; in ConvertTwoCaseSwitch()
4789 ConstantInt *const SecondCase = ResultVector[1].second[0]; in ConvertTwoCaseSwitch()
4792 Value *SelectValue = ResultVector[1].first; in ConvertTwoCaseSwitch()
4796 SelectValue = Builder.CreateSelect(ValueCompare, ResultVector[1].first, in ConvertTwoCaseSwitch()
4801 return Builder.CreateSelect(ValueCompare, ResultVector[0].first, in ConvertTwoCaseSwitch()