/external/llvm/lib/Transforms/Scalar/ |
D | Scalarizer.cpp | 511 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/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/ |
D | Scalarizer.cpp | 629 Type *MidTy = VectorType::get(DstVT->getElementType(), FanOut); in visitBitCastInst() local 639 V = Builder.CreateBitCast(V, MidTy, V->getName() + ".cast"); in visitBitCastInst() 647 Type *MidTy = VectorType::get(SrcVT->getElementType(), FanIn); in visitBitCastInst() local 650 Value *V = UndefValue::get(MidTy); in visitBitCastInst()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineCasts.cpp | 239 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/swiftshader/third_party/llvm-7.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() 2387 Type *MidTy = PointerType::get(DestElemTy, SrcTy->getAddressSpace()); in visitAddrSpaceCast() local 2390 MidTy = VectorType::get(MidTy, VT->getNumElements()); in visitAddrSpaceCast() 2393 Value *NewBitCast = Builder.CreateBitCast(Src, MidTy); in visitAddrSpaceCast()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/ |
D | Instructions.cpp | 2246 Type *SrcTy, Type *MidTy, Type *DstTy, Type *SrcIntPtrTy, Type *MidIntPtrTy, in isEliminableCastPair() argument 2310 if ((IsFirstBitcast && isa<VectorType>(SrcTy) != isa<VectorType>(MidTy)) || in isEliminableCastPair() 2311 (IsSecondBitcast && isa<VectorType>(MidTy) != isa<VectorType>(DstTy))) in isEliminableCastPair() 2357 unsigned MidSize = MidTy->getScalarSizeInBits(); in isEliminableCastPair() 2411 MidTy->isPtrOrPtrVectorTy() && in isEliminableCastPair() 2413 SrcTy->getPointerAddressSpace() != MidTy->getPointerAddressSpace() && in isEliminableCastPair() 2414 MidTy->getPointerAddressSpace() == DstTy->getPointerAddressSpace() && in isEliminableCastPair() 2431 MidTy->isPtrOrPtrVectorTy() && in isEliminableCastPair() 2433 MidTy->getPointerAddressSpace() == DstTy->getPointerAddressSpace() && in isEliminableCastPair() 2443 MidTy->isPtrOrPtrVectorTy() && in isEliminableCastPair() [all …]
|
D | Constants.cpp | 1773 Type *MidTy = PointerType::get(DstElemTy, SrcScalarTy->getAddressSpace()); in getAddrSpaceCast() local 1776 MidTy = VectorType::get(MidTy, VT->getNumElements()); in getAddrSpaceCast() 1778 C = getBitCast(C, MidTy); in getAddrSpaceCast()
|
D | AutoUpgrade.cpp | 3486 Type *MidTy = Type::getInt64Ty(Context); in UpgradeBitCastInst() local 3487 Temp = CastInst::Create(Instruction::PtrToInt, V, MidTy); in UpgradeBitCastInst() 3506 Type *MidTy = Type::getInt64Ty(Context); in UpgradeBitCastExpr() local 3508 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()
|
/external/llvm/lib/IR/ |
D | Instructions.cpp | 2424 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 …]
|
D | AutoUpgrade.cpp | 1409 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()
|
D | Constants.cpp | 1723 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()
|
D | ConstantFold.cpp | 86 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/ |
D | Instructions.cpp | 2083 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()
|
D | ConstantFold.cpp | 89 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/ |
D | InstrTypes.h | 591 Type *MidTy, ///< DstTy of 1st cast & SrcTy of 2nd cast
|
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/ |
D | InstCombineCasts.cpp | 238 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/ |
D | InstrTypes.h | 818 Type *MidTy, ///< DstTy of 1st cast & SrcTy of 2nd cast
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/ |
D | InstrTypes.h | 837 Type *MidTy, ///< DstTy of 1st cast & SrcTy of 2nd cast
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/ |
D | InstructionSimplify.cpp | 4146 Type *MidTy = CI->getType(); in SimplifyCastInst() local 4154 MidTy->isPtrOrPtrVectorTy() ? Q.DL.getIntPtrType(MidTy) : nullptr; in SimplifyCastInst() 4157 if (CastInst::isEliminableCastPair(FirstOp, SecondOp, SrcTy, MidTy, DstTy, in SimplifyCastInst()
|