• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/InstCombine/

Lines Matching defs:SrcTy

234   Type *SrcTy = CI1->getSrcTy();
241 SrcTy->isPtrOrPtrVectorTy() ? DL.getIntPtrType(SrcTy) : nullptr;
246 unsigned Res = CastInst::isEliminableCastPair(firstOp, secondOp, SrcTy, MidTy,
252 if ((Res == Instruction::IntToPtr && SrcTy != DstIntPtrTy) ||
586 Type *SrcTy = Trunc.getSrcTy();
588 if (!isa<VectorType>(SrcTy) && !shouldChangeType(SrcTy, DestTy))
695 Type *DestTy = Trunc.getType(), *SrcTy = Src->getType();
697 unsigned SrcWidth = SrcTy->getScalarSizeInBits();
704 if ((DestTy->isVectorTy() || shouldChangeType(SrcTy, DestTy)) &&
725 if (shouldChangeType(SrcTy, NewDestTy) &&
752 Value *Zero = Constant::getNullValue(SrcTy);
759 Value *And = Builder.CreateAnd(Src, ConstantInt::get(SrcTy, 1));
769 Constant *One = ConstantInt::get(SrcTy, APInt(SrcWidth, 1));
777 Constant *One = ConstantInt::get(SrcTy, APInt(SrcWidth, 1));
844 if (Src->hasOneUse() && isa<IntegerType>(SrcTy) &&
845 shouldChangeType(SrcTy, DestTy)) {
1150 Type *SrcTy = Src->getType(), *DestTy = CI.getType();
1154 if (shouldChangeType(SrcTy, DestTy) &&
1156 assert(BitsToClear <= SrcTy->getScalarSizeInBits() &&
1157 "Can't clear more bits than in SrcTy");
1172 uint32_t SrcBitsKept = SrcTy->getScalarSizeInBits()-BitsToClear;
1423 Type *SrcTy = Src->getType(), *DestTy = CI.getType();
1432 if (shouldChangeType(SrcTy, DestTy) && canEvaluateSExtd(Src, DestTy)) {
1441 uint32_t SrcBitSize = SrcTy->getScalarSizeInBits();
1460 unsigned SrcBitSize = SrcTy->getScalarSizeInBits();
1584 Type *SrcTy = Src->getType();
1587 int SrcSize = (int)SrcTy->getScalarSizeInBits() - IsSigned;
1972 VectorType *SrcTy = cast<VectorType>(InVal->getType());
1974 if (SrcTy->getElementType() != DestTy->getElementType()) {
1979 if (SrcTy->getElementType()->getPrimitiveSizeInBits() !=
1983 SrcTy =
1984 FixedVectorType::get(DestTy->getElementType(), SrcTy->getNumElements());
1985 InVal = IC.Builder.CreateBitCast(InVal, SrcTy);
1989 unsigned SrcElts = SrcTy->getNumElements();
2010 V2 = UndefValue::get(SrcTy);
2023 V2 = Constant::getNullValue(SrcTy);
2329 Type *SrcTy = Src->getType(); // Type B
2376 if (TyA != DestTy || TyB != SrcTy)
2392 if (TyA != DestTy || TyB != SrcTy)
2461 cast<BitCastInst>(Builder.CreateBitCast(NewPN, SrcTy));
2469 assert(TyA == DestTy && TyB == SrcTy);
2491 Type *SrcTy = Src->getType();
2499 if (isa<PointerType>(SrcTy) && isa<PointerType>(DestTy)) {
2500 PointerType *SrcPTy = cast<PointerType>(SrcTy);
2560 if (DestVTy->getNumElements() == 1 && SrcTy->isX86_MMXTy()) {
2566 if (isa<IntegerType>(SrcTy)) {
2587 if (FixedVectorType *SrcVTy = dyn_cast<FixedVectorType>(SrcTy)) {
2639 SrcTy->getScalarSizeInBits() == 8 && NumShufElts % 2 == 0 &&
2641 assert(ShufOp0->getType() == SrcTy && "Unexpected shuffle mask");
2664 if (SrcTy->isPointerTy())
2674 PointerType *SrcTy = cast<PointerType>(Src->getType()->getScalarType());
2678 if (SrcTy->getElementType() != DestElemTy) {
2679 Type *MidTy = PointerType::get(DestElemTy, SrcTy->getAddressSpace());