Home
last modified time | relevance | path

Searched refs:MidTy (Results 1 – 9 of 9) sorted by relevance

/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DScalarizer.cpp720 auto *MidTy = FixedVectorType::get(DstVT->getElementType(), FanOut); in visitBitCastInst() local
730 V = Builder.CreateBitCast(V, MidTy, V->getName() + ".cast"); in visitBitCastInst()
738 auto *MidTy = FixedVectorType::get(SrcVT->getElementType(), FanIn); in visitBitCastInst() local
741 Value *V = PoisonValue::get(MidTy); in visitBitCastInst()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp253 Type *MidTy = CI1->getDestTy(); in isEliminableCastPair() local
261 MidTy->isPtrOrPtrVectorTy() ? DL.getIntPtrType(MidTy) : nullptr; in isEliminableCastPair()
264 unsigned Res = CastInst::isEliminableCastPair(firstOp, secondOp, SrcTy, MidTy, in isEliminableCastPair()
2813 Type *MidTy = in visitAddrSpaceCast() local
2817 MidTy = VectorType::get(MidTy, VT->getElementCount()); in visitAddrSpaceCast()
2819 Value *NewBitCast = Builder.CreateBitCast(Src, MidTy); in visitAddrSpaceCast()
/freebsd-13.1/contrib/llvm-project/llvm/lib/IR/
H A DInstructions.cpp2745 Type *SrcTy, Type *MidTy, Type *DstTy, Type *SrcIntPtrTy, Type *MidIntPtrTy, in isEliminableCastPair() argument
2809 if ((IsFirstBitcast && isa<VectorType>(SrcTy) != isa<VectorType>(MidTy)) || in isEliminableCastPair()
2810 (IsSecondBitcast && isa<VectorType>(MidTy) != isa<VectorType>(DstTy))) in isEliminableCastPair()
2860 unsigned MidSize = MidTy->getScalarSizeInBits(); in isEliminableCastPair()
2914 MidTy->isPtrOrPtrVectorTy() && in isEliminableCastPair()
2916 SrcTy->getPointerAddressSpace() != MidTy->getPointerAddressSpace() && in isEliminableCastPair()
2917 MidTy->getPointerAddressSpace() == DstTy->getPointerAddressSpace() && in isEliminableCastPair()
2936 MidTy->isPtrOrPtrVectorTy() && in isEliminableCastPair()
2938 MidTy->getPointerAddressSpace() == DstTy->getPointerAddressSpace() && in isEliminableCastPair()
2948 MidTy->isPtrOrPtrVectorTy() && in isEliminableCastPair()
[all …]
H A DConstants.cpp2245 Type *MidTy = PointerType::getWithSamePointeeType( in getAddrSpaceCast() local
2249 MidTy = FixedVectorType::get(MidTy, in getAddrSpaceCast()
2252 C = getBitCast(C, MidTy); in getAddrSpaceCast()
H A DConstantFold.cpp97 Type *MidTy = Op->getType(); in foldConstantCastPair() local
107 return CastInst::isEliminableCastPair(firstOp, secondOp, SrcTy, MidTy, DstTy, in foldConstantCastPair()
H A DAutoUpgrade.cpp4003 Type *MidTy = Type::getInt64Ty(Context); in UpgradeBitCastInst() local
4004 Temp = CastInst::Create(Instruction::PtrToInt, V, MidTy); in UpgradeBitCastInst()
4023 Type *MidTy = Type::getInt64Ty(Context); in UpgradeBitCastExpr() local
4025 return ConstantExpr::getIntToPtr(ConstantExpr::getPtrToInt(C, MidTy), in UpgradeBitCastExpr()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Analysis/
H A DInstructionSimplify.cpp4633 Type *MidTy = CI->getType(); in SimplifyCastInst() local
4641 MidTy->isPtrOrPtrVectorTy() ? Q.DL.getIntPtrType(MidTy) : nullptr; in SimplifyCastInst()
4644 if (CastInst::isEliminableCastPair(FirstOp, SecondOp, SrcTy, MidTy, DstTy, in SimplifyCastInst()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/IR/
H A DInstrTypes.h669 Type *MidTy, ///< DstTy of 1st cast & SrcTy of 2nd cast
/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DLegalizerHelper.cpp2714 LLT MidTy = in bitcastExtractVectorElt() local
2729 auto NewVec = MIRBuilder.buildBuildVector(MidTy, NewOps); in bitcastExtractVectorElt()