Home
last modified time | relevance | path

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

/minix/external/bsd/llvm/dist/llvm/lib/IR/
H A DAutoUpgrade.cpp612 Type *MidTy = Type::getInt64Ty(Context); in UpgradeBitCastInst() local
613 Temp = CastInst::Create(Instruction::PtrToInt, V, MidTy); in UpgradeBitCastInst()
632 Type *MidTy = Type::getInt64Ty(Context); in UpgradeBitCastExpr() local
634 return ConstantExpr::getIntToPtr(ConstantExpr::getPtrToInt(C, MidTy), in UpgradeBitCastExpr()
H A DInstructions.cpp2189 Type *SrcTy, Type *MidTy, Type *DstTy, Type *SrcIntPtrTy, Type *MidIntPtrTy, in isEliminableCastPair() argument
2251 if ((isFirstBitcast && isa<VectorType>(SrcTy) != isa<VectorType>(MidTy)) || in isEliminableCastPair()
2252 (isSecondBitcast && isa<VectorType>(MidTy) != isa<VectorType>(DstTy))) in isEliminableCastPair()
2298 unsigned MidSize = MidTy->getScalarSizeInBits(); in isEliminableCastPair()
2359 MidTy->isPtrOrPtrVectorTy() && in isEliminableCastPair()
2361 SrcTy->getPointerAddressSpace() != MidTy->getPointerAddressSpace() && in isEliminableCastPair()
2362 MidTy->getPointerAddressSpace() == DstTy->getPointerAddressSpace() && in isEliminableCastPair()
2379 MidTy->isPtrOrPtrVectorTy() && in isEliminableCastPair()
2381 MidTy->getPointerAddressSpace() == DstTy->getPointerAddressSpace() && in isEliminableCastPair()
2391 MidTy->isPtrOrPtrVectorTy() && in isEliminableCastPair()
[all …]
H A DConstants.cpp1831 Type *MidTy = PointerType::get(DstElemTy, SrcScalarTy->getAddressSpace()); in getAddrSpaceCast() local
1834 MidTy = VectorType::get(MidTy, VT->getNumElements()); in getAddrSpaceCast()
1836 C = getBitCast(C, MidTy); in getAddrSpaceCast()
H A DConstantFold.cpp88 Type *MidTy = Op->getType(); in foldConstantCastPair() local
98 return CastInst::isEliminableCastPair(firstOp, secondOp, SrcTy, MidTy, DstTy, in foldConstantCastPair()
/minix/external/bsd/llvm/dist/llvm/lib/Transforms/Scalar/
H A DScalarizer.cpp508 Type *MidTy = VectorType::get(DstVT->getElementType(), FanOut); in visitBitCastInst() local
518 V = Builder.CreateBitCast(V, MidTy, V->getName() + ".cast"); in visitBitCastInst()
526 Type *MidTy = VectorType::get(SrcVT->getElementType(), FanIn); in visitBitCastInst() local
529 Value *V = UndefValue::get(MidTy); in visitBitCastInst()
/minix/external/bsd/llvm/dist/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp245 Type *MidTy = CI->getType(); // B from above in isEliminableCastPair() local
252 Type *MidIntPtrTy = DL && MidTy->isPtrOrPtrVectorTy() ? in isEliminableCastPair()
253 DL->getIntPtrType(MidTy) : nullptr; in isEliminableCastPair()
256 unsigned Res = CastInst::isEliminableCastPair(firstOp, secondOp, SrcTy, MidTy, in isEliminableCastPair()
1898 Type *MidTy = PointerType::get(DestElemTy, SrcTy->getAddressSpace()); in visitAddrSpaceCast() local
1901 MidTy = VectorType::get(MidTy, VT->getNumElements()); in visitAddrSpaceCast()
1904 Value *NewBitCast = Builder->CreateBitCast(Src, MidTy); in visitAddrSpaceCast()
/minix/external/bsd/llvm/dist/llvm/include/llvm/IR/
H A DInstrTypes.h638 Type *MidTy, ///< DstTy of 1st cast & SrcTy of 2nd cast