Searched refs:MidTy (Results 1 – 8 of 8) sorted by relevance
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/ |
D | Scalarizer.cpp | 703 Type *MidTy = VectorType::get(DstVT->getElementType(), FanOut); in visitBitCastInst() local 713 V = Builder.CreateBitCast(V, MidTy, V->getName() + ".cast"); in visitBitCastInst() 721 Type *MidTy = VectorType::get(SrcVT->getElementType(), FanIn); in visitBitCastInst() local 724 Value *V = UndefValue::get(MidTy); in visitBitCastInst()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombineCasts.cpp | 236 Type *MidTy = CI1->getDestTy(); in isEliminableCastPair() local 244 MidTy->isPtrOrPtrVectorTy() ? DL.getIntPtrType(MidTy) : nullptr; in isEliminableCastPair() 247 unsigned Res = CastInst::isEliminableCastPair(firstOp, secondOp, SrcTy, MidTy, in isEliminableCastPair() 2578 Type *MidTy = PointerType::get(DestElemTy, SrcTy->getAddressSpace()); in visitAddrSpaceCast() local 2581 MidTy = VectorType::get(MidTy, VT->getNumElements()); in visitAddrSpaceCast() 2584 Value *NewBitCast = Builder.CreateBitCast(Src, MidTy); in visitAddrSpaceCast()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/IR/ |
D | Instructions.cpp | 2524 Type *SrcTy, Type *MidTy, Type *DstTy, Type *SrcIntPtrTy, Type *MidIntPtrTy, in isEliminableCastPair() argument 2588 if ((IsFirstBitcast && isa<VectorType>(SrcTy) != isa<VectorType>(MidTy)) || in isEliminableCastPair() 2589 (IsSecondBitcast && isa<VectorType>(MidTy) != isa<VectorType>(DstTy))) in isEliminableCastPair() 2635 unsigned MidSize = MidTy->getScalarSizeInBits(); in isEliminableCastPair() 2689 MidTy->isPtrOrPtrVectorTy() && in isEliminableCastPair() 2691 SrcTy->getPointerAddressSpace() != MidTy->getPointerAddressSpace() && in isEliminableCastPair() 2692 MidTy->getPointerAddressSpace() == DstTy->getPointerAddressSpace() && in isEliminableCastPair() 2709 MidTy->isPtrOrPtrVectorTy() && in isEliminableCastPair() 2711 MidTy->getPointerAddressSpace() == DstTy->getPointerAddressSpace() && in isEliminableCastPair() 2721 MidTy->isPtrOrPtrVectorTy() && in isEliminableCastPair() [all …]
|
D | Constants.cpp | 1895 Type *MidTy = PointerType::get(DstElemTy, SrcScalarTy->getAddressSpace()); in getAddrSpaceCast() local 1898 MidTy = VectorType::get(MidTy, VT->getNumElements()); in getAddrSpaceCast() 1900 C = getBitCast(C, MidTy); in getAddrSpaceCast()
|
D | AutoUpgrade.cpp | 3800 Type *MidTy = Type::getInt64Ty(Context); in UpgradeBitCastInst() local 3801 Temp = CastInst::Create(Instruction::PtrToInt, V, MidTy); in UpgradeBitCastInst() 3820 Type *MidTy = Type::getInt64Ty(Context); in UpgradeBitCastExpr() local 3822 return ConstantExpr::getIntToPtr(ConstantExpr::getPtrToInt(C, MidTy), in UpgradeBitCastExpr()
|
D | ConstantFold.cpp | 87 Type *MidTy = Op->getType(); in foldConstantCastPair() local 97 return CastInst::isEliminableCastPair(firstOp, secondOp, SrcTy, MidTy, DstTy, in foldConstantCastPair()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/ |
D | InstructionSimplify.cpp | 4337 Type *MidTy = CI->getType(); in SimplifyCastInst() local 4345 MidTy->isPtrOrPtrVectorTy() ? Q.DL.getIntPtrType(MidTy) : nullptr; in SimplifyCastInst() 4348 if (CastInst::isEliminableCastPair(FirstOp, SecondOp, SrcTy, MidTy, DstTy, in SimplifyCastInst()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/ |
D | InstrTypes.h | 684 Type *MidTy, ///< DstTy of 1st cast & SrcTy of 2nd cast
|