Home
last modified time | relevance | path

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

/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineCasts.cpp1604 Value *VecInput = 0; in OptimizeIntToFloatBitCast() local
1606 if (match(Src, m_Trunc(m_BitCast(m_Value(VecInput)))) && in OptimizeIntToFloatBitCast()
1607 isa<VectorType>(VecInput->getType())) { in OptimizeIntToFloatBitCast()
1608 VectorType *VecTy = cast<VectorType>(VecInput->getType()); in OptimizeIntToFloatBitCast()
1617 VecInput = IC.Builder->CreateBitCast(VecInput, VecTy); in OptimizeIntToFloatBitCast()
1620 return ExtractElementInst::Create(VecInput, IC.Builder->getInt32(0)); in OptimizeIntToFloatBitCast()
1626 if (match(Src, m_Trunc(m_LShr(m_BitCast(m_Value(VecInput)), in OptimizeIntToFloatBitCast()
1628 isa<VectorType>(VecInput->getType())) { in OptimizeIntToFloatBitCast()
1629 VectorType *VecTy = cast<VectorType>(VecInput->getType()); in OptimizeIntToFloatBitCast()
1638 VecInput = IC.Builder->CreateBitCast(VecInput, VecTy); in OptimizeIntToFloatBitCast()
[all …]
/external/llvm/lib/Transforms/InstCombine/
DInstCombineCasts.cpp446 Value *VecInput = nullptr; in foldVecTruncToExtElt() local
448 if (!match(TruncOp, m_CombineOr(m_BitCast(m_Value(VecInput)), in foldVecTruncToExtElt()
449 m_LShr(m_BitCast(m_Value(VecInput)), in foldVecTruncToExtElt()
451 !isa<VectorType>(VecInput->getType())) in foldVecTruncToExtElt()
454 VectorType *VecType = cast<VectorType>(VecInput->getType()); in foldVecTruncToExtElt()
467 VecInput = IC.Builder->CreateBitCast(VecInput, VecType, "bc"); in foldVecTruncToExtElt()
474 return ExtractElementInst::Create(VecInput, IC.Builder->getInt32(Elt)); in foldVecTruncToExtElt()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/
DInstCombineCasts.cpp463 Value *VecInput = nullptr; in foldVecTruncToExtElt() local
465 if (!match(TruncOp, m_CombineOr(m_BitCast(m_Value(VecInput)), in foldVecTruncToExtElt()
466 m_LShr(m_BitCast(m_Value(VecInput)), in foldVecTruncToExtElt()
468 !isa<VectorType>(VecInput->getType())) in foldVecTruncToExtElt()
471 VectorType *VecType = cast<VectorType>(VecInput->getType()); in foldVecTruncToExtElt()
484 VecInput = IC.Builder.CreateBitCast(VecInput, VecType, "bc"); in foldVecTruncToExtElt()
491 return ExtractElementInst::Create(VecInput, IC.Builder.getInt32(Elt)); in foldVecTruncToExtElt()