Home
last modified time | relevance | path

Searched refs:MidTy (Results 1 – 19 of 19) 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/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/
DScalarizer.cpp629 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/
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/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/
DInstCombineCasts.cpp236 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/
DInstructions.cpp2246 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 …]
DConstants.cpp1773 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()
DAutoUpgrade.cpp3486 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()
DConstantFold.cpp87 Type *MidTy = Op->getType(); in foldConstantCastPair() local
97 return CastInst::isEliminableCastPair(firstOp, secondOp, SrcTy, MidTy, DstTy, in foldConstantCastPair()
/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
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/
DInstrTypes.h837 Type *MidTy, ///< DstTy of 1st cast & SrcTy of 2nd cast
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/
DInstructionSimplify.cpp4146 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()