Home
last modified time | relevance | path

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

/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineCalls.cpp78 Type *SrcETy = cast<PointerType>(StrippedDest->getType()) in SimplifyMemTransfer() local
80 if (TD && SrcETy->isSized() && TD->getTypeStoreSize(SrcETy) == Size) { in SimplifyMemTransfer()
83 while (!SrcETy->isSingleValueType()) { in SimplifyMemTransfer()
84 if (StructType *STy = dyn_cast<StructType>(SrcETy)) { in SimplifyMemTransfer()
86 SrcETy = STy->getElementType(0); in SimplifyMemTransfer()
89 } else if (ArrayType *ATy = dyn_cast<ArrayType>(SrcETy)) { in SimplifyMemTransfer()
91 SrcETy = ATy->getElementType(); in SimplifyMemTransfer()
98 if (SrcETy->isSingleValueType()) { in SimplifyMemTransfer()
99 NewSrcPtrTy = PointerType::get(SrcETy, SrcAddrSp); in SimplifyMemTransfer()
100 NewDstPtrTy = PointerType::get(SrcETy, DstAddrSp); in SimplifyMemTransfer()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineCalls.cpp126 Type *SrcETy = cast<PointerType>(StrippedDest->getType()) in SimplifyMemTransfer() local
128 if (SrcETy->isSized() && DL.getTypeStoreSize(SrcETy) == Size) { in SimplifyMemTransfer()
131 SrcETy = reduceToSingleValueType(SrcETy); in SimplifyMemTransfer()
133 if (SrcETy->isSingleValueType()) { in SimplifyMemTransfer()
134 NewSrcPtrTy = PointerType::get(SrcETy, SrcAddrSp); in SimplifyMemTransfer()
135 NewDstPtrTy = PointerType::get(SrcETy, DstAddrSp); in SimplifyMemTransfer()