Searched refs:MidTy (Results 1 – 9 of 9) sorted by relevance
| /llvm-project-15.0.7/llvm/lib/Transforms/Scalar/ |
| H A D | Scalarizer.cpp | 763 auto *MidTy = FixedVectorType::get(DstVT->getElementType(), FanOut); in visitBitCastInst() local 773 V = Builder.CreateBitCast(V, MidTy, V->getName() + ".cast"); in visitBitCastInst() 781 auto *MidTy = FixedVectorType::get(SrcVT->getElementType(), FanIn); in visitBitCastInst() local 784 Value *V = PoisonValue::get(MidTy); in visitBitCastInst()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineCasts.cpp | 255 Type *MidTy = CI1->getDestTy(); in isEliminableCastPair() local 263 MidTy->isPtrOrPtrVectorTy() ? DL.getIntPtrType(MidTy) : nullptr; in isEliminableCastPair() 266 unsigned Res = CastInst::isEliminableCastPair(firstOp, secondOp, SrcTy, MidTy, in isEliminableCastPair() 2911 Type *MidTy = in visitAddrSpaceCast() local 2915 MidTy = VectorType::get(MidTy, VT->getElementCount()); in visitAddrSpaceCast() 2917 Value *NewBitCast = Builder.CreateBitCast(Src, MidTy); in visitAddrSpaceCast()
|
| /llvm-project-15.0.7/llvm/lib/IR/ |
| H A D | Instructions.cpp | 2962 Type *SrcTy, Type *MidTy, Type *DstTy, Type *SrcIntPtrTy, Type *MidIntPtrTy, in isEliminableCastPair() argument 3026 if ((IsFirstBitcast && isa<VectorType>(SrcTy) != isa<VectorType>(MidTy)) || in isEliminableCastPair() 3027 (IsSecondBitcast && isa<VectorType>(MidTy) != isa<VectorType>(DstTy))) in isEliminableCastPair() 3077 unsigned MidSize = MidTy->getScalarSizeInBits(); in isEliminableCastPair() 3133 MidTy->isPtrOrPtrVectorTy() && in isEliminableCastPair() 3135 SrcTy->getPointerAddressSpace() != MidTy->getPointerAddressSpace() && in isEliminableCastPair() 3136 MidTy->getPointerAddressSpace() == DstTy->getPointerAddressSpace() && in isEliminableCastPair() 3155 MidTy->isPtrOrPtrVectorTy() && in isEliminableCastPair() 3157 MidTy->getPointerAddressSpace() == DstTy->getPointerAddressSpace() && in isEliminableCastPair() 3167 MidTy->isPtrOrPtrVectorTy() && in isEliminableCastPair() [all …]
|
| H A D | Constants.cpp | 2221 Type *MidTy = PointerType::getWithSamePointeeType( in getAddrSpaceCast() local 2225 MidTy = FixedVectorType::get(MidTy, in getAddrSpaceCast() 2228 C = getBitCast(C, MidTy); in getAddrSpaceCast()
|
| H A D | ConstantFold.cpp | 95 Type *MidTy = Op->getType(); in foldConstantCastPair() local 105 return CastInst::isEliminableCastPair(firstOp, secondOp, SrcTy, MidTy, DstTy, in foldConstantCastPair()
|
| H A D | AutoUpgrade.cpp | 4173 Type *MidTy = Type::getInt64Ty(Context); in UpgradeBitCastInst() local 4174 Temp = CastInst::Create(Instruction::PtrToInt, V, MidTy); in UpgradeBitCastInst() 4193 Type *MidTy = Type::getInt64Ty(Context); in UpgradeBitCastExpr() local 4195 return ConstantExpr::getIntToPtr(ConstantExpr::getPtrToInt(C, MidTy), in UpgradeBitCastExpr()
|
| /llvm-project-15.0.7/llvm/lib/Analysis/ |
| H A D | InstructionSimplify.cpp | 4857 Type *MidTy = CI->getType(); in simplifyCastInst() local 4865 MidTy->isPtrOrPtrVectorTy() ? Q.DL.getIntPtrType(MidTy) : nullptr; in simplifyCastInst() 4868 if (CastInst::isEliminableCastPair(FirstOp, SecondOp, SrcTy, MidTy, DstTy, in simplifyCastInst()
|
| /llvm-project-15.0.7/llvm/include/llvm/IR/ |
| H A D | InstrTypes.h | 668 Type *MidTy, ///< DstTy of 1st cast & SrcTy of 2nd cast
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/GlobalISel/ |
| H A D | LegalizerHelper.cpp | 2759 LLT MidTy = in bitcastExtractVectorElt() local 2774 auto NewVec = MIRBuilder.buildBuildVector(MidTy, NewOps); in bitcastExtractVectorElt()
|