Home
last modified time | relevance | path

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

/external/llvm/lib/Transforms/Scalar/
DScalarizer.cpp511 Type *MidTy = VectorType::get(DstVT->getElementType(), FanOut); in visitBitCastInst() local
521 V = Builder.CreateBitCast(V, MidTy, V->getName() + ".cast"); in visitBitCastInst()
529 Type *MidTy = VectorType::get(SrcVT->getElementType(), FanIn); in visitBitCastInst() local
532 Value *V = UndefValue::get(MidTy); in visitBitCastInst()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineCasts.cpp239 Type *MidTy = CI->getType(); // B from above in isEliminableCastPair() local
247 MidTy->isPtrOrPtrVectorTy() ? DL.getIntPtrType(MidTy) : nullptr; in isEliminableCastPair()
250 unsigned Res = CastInst::isEliminableCastPair(firstOp, secondOp, SrcTy, MidTy, in isEliminableCastPair()
1933 Type *MidTy = PointerType::get(DestElemTy, SrcTy->getAddressSpace()); in visitAddrSpaceCast() local
1936 MidTy = VectorType::get(MidTy, VT->getNumElements()); in visitAddrSpaceCast()
1939 Value *NewBitCast = Builder->CreateBitCast(Src, MidTy); in visitAddrSpaceCast()
/external/llvm/lib/IR/
DInstructions.cpp2424 Type *SrcTy, Type *MidTy, Type *DstTy, Type *SrcIntPtrTy, Type *MidIntPtrTy, in isEliminableCastPair() argument
2488 if ((IsFirstBitcast && isa<VectorType>(SrcTy) != isa<VectorType>(MidTy)) || in isEliminableCastPair()
2489 (IsSecondBitcast && isa<VectorType>(MidTy) != isa<VectorType>(DstTy))) in isEliminableCastPair()
2535 unsigned MidSize = MidTy->getScalarSizeInBits(); in isEliminableCastPair()
2596 MidTy->isPtrOrPtrVectorTy() && in isEliminableCastPair()
2598 SrcTy->getPointerAddressSpace() != MidTy->getPointerAddressSpace() && in isEliminableCastPair()
2599 MidTy->getPointerAddressSpace() == DstTy->getPointerAddressSpace() && in isEliminableCastPair()
2616 MidTy->isPtrOrPtrVectorTy() && in isEliminableCastPair()
2618 MidTy->getPointerAddressSpace() == DstTy->getPointerAddressSpace() && in isEliminableCastPair()
2628 MidTy->isPtrOrPtrVectorTy() && in isEliminableCastPair()
[all …]
DAutoUpgrade.cpp1409 Type *MidTy = Type::getInt64Ty(Context); in UpgradeBitCastInst() local
1410 Temp = CastInst::Create(Instruction::PtrToInt, V, MidTy); in UpgradeBitCastInst()
1429 Type *MidTy = Type::getInt64Ty(Context); in UpgradeBitCastExpr() local
1431 return ConstantExpr::getIntToPtr(ConstantExpr::getPtrToInt(C, MidTy), in UpgradeBitCastExpr()
DConstants.cpp1723 Type *MidTy = PointerType::get(DstElemTy, SrcScalarTy->getAddressSpace()); in getAddrSpaceCast() local
1726 MidTy = VectorType::get(MidTy, VT->getNumElements()); in getAddrSpaceCast()
1728 C = getBitCast(C, MidTy); in getAddrSpaceCast()
DConstantFold.cpp86 Type *MidTy = Op->getType(); in foldConstantCastPair() local
96 return CastInst::isEliminableCastPair(firstOp, secondOp, SrcTy, MidTy, DstTy, in foldConstantCastPair()
/external/swiftshader/third_party/LLVM/lib/VMCore/
DInstructions.cpp2083 Type *SrcTy, Type *MidTy, Type *DstTy, Type *IntPtrTy) { in isEliminableCastPair() argument
2142 if ((isFirstBitcast && isa<VectorType>(SrcTy) != isa<VectorType>(MidTy)) || in isEliminableCastPair()
2143 (isSecondBitcast && isa<VectorType>(MidTy) != isa<VectorType>(DstTy))) in isEliminableCastPair()
2189 unsigned MidSize = MidTy->getScalarSizeInBits(); in isEliminableCastPair()
2217 if (SrcTy->isPointerTy() && MidTy->isPointerTy()) in isEliminableCastPair()
2222 if (MidTy->isPointerTy() && DstTy->isPointerTy()) in isEliminableCastPair()
DConstantFold.cpp89 Type *MidTy = Op->getType(); in foldConstantCastPair() local
94 return CastInst::isEliminableCastPair(firstOp, secondOp, SrcTy, MidTy, DstTy, in foldConstantCastPair()
/external/swiftshader/third_party/LLVM/include/llvm/
DInstrTypes.h591 Type *MidTy, ///< DstTy of 1st cast & SrcTy of 2nd cast
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineCasts.cpp238 Type *MidTy = CI->getType(); // B from above in isEliminableCastPair() local
244 unsigned Res = CastInst::isEliminableCastPair(firstOp, secondOp, SrcTy, MidTy, in isEliminableCastPair()
/external/llvm/include/llvm/IR/
DInstrTypes.h818 Type *MidTy, ///< DstTy of 1st cast & SrcTy of 2nd cast