/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/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-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()
|
/external/llvm-project/llvm/lib/Transforms/Scalar/ |
D | Scalarizer.cpp | 715 auto *MidTy = FixedVectorType::get(DstVT->getElementType(), FanOut); in visitBitCastInst() local 725 V = Builder.CreateBitCast(V, MidTy, V->getName() + ".cast"); in visitBitCastInst() 733 auto *MidTy = FixedVectorType::get(SrcVT->getElementType(), FanIn); in visitBitCastInst() local 736 Value *V = UndefValue::get(MidTy); in visitBitCastInst()
|
/external/llvm-project/llvm/lib/Transforms/InstCombine/ |
D | InstCombineCasts.cpp | 253 Type *MidTy = CI1->getDestTy(); in isEliminableCastPair() local 261 MidTy->isPtrOrPtrVectorTy() ? DL.getIntPtrType(MidTy) : nullptr; in isEliminableCastPair() 264 unsigned Res = CastInst::isEliminableCastPair(firstOp, secondOp, SrcTy, MidTy, in isEliminableCastPair() 2734 Type *MidTy = PointerType::get(DestElemTy, SrcTy->getAddressSpace()); in visitAddrSpaceCast() local 2738 MidTy = FixedVectorType::get(MidTy, in visitAddrSpaceCast() 2742 Value *NewBitCast = Builder.CreateBitCast(Src, MidTy); in visitAddrSpaceCast()
|
/external/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()
|
/external/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()
|
/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/llvm-project/llvm/lib/IR/ |
D | Instructions.cpp | 2710 Type *SrcTy, Type *MidTy, Type *DstTy, Type *SrcIntPtrTy, Type *MidIntPtrTy, in isEliminableCastPair() argument 2774 if ((IsFirstBitcast && isa<VectorType>(SrcTy) != isa<VectorType>(MidTy)) || in isEliminableCastPair() 2775 (IsSecondBitcast && isa<VectorType>(MidTy) != isa<VectorType>(DstTy))) in isEliminableCastPair() 2821 unsigned MidSize = MidTy->getScalarSizeInBits(); in isEliminableCastPair() 2875 MidTy->isPtrOrPtrVectorTy() && in isEliminableCastPair() 2877 SrcTy->getPointerAddressSpace() != MidTy->getPointerAddressSpace() && in isEliminableCastPair() 2878 MidTy->getPointerAddressSpace() == DstTy->getPointerAddressSpace() && in isEliminableCastPair() 2895 MidTy->isPtrOrPtrVectorTy() && in isEliminableCastPair() 2897 MidTy->getPointerAddressSpace() == DstTy->getPointerAddressSpace() && in isEliminableCastPair() 2907 MidTy->isPtrOrPtrVectorTy() && in isEliminableCastPair() [all …]
|
D | Constants.cpp | 2174 Type *MidTy = PointerType::get(DstElemTy, SrcScalarTy->getAddressSpace()); in getAddrSpaceCast() local 2177 MidTy = FixedVectorType::get(MidTy, in getAddrSpaceCast() 2180 C = getBitCast(C, MidTy); in getAddrSpaceCast()
|
D | AutoUpgrade.cpp | 3944 Type *MidTy = Type::getInt64Ty(Context); in UpgradeBitCastInst() local 3945 Temp = CastInst::Create(Instruction::PtrToInt, V, MidTy); in UpgradeBitCastInst() 3964 Type *MidTy = Type::getInt64Ty(Context); in UpgradeBitCastExpr() local 3966 return ConstantExpr::getIntToPtr(ConstantExpr::getPtrToInt(C, MidTy), in UpgradeBitCastExpr()
|
D | ConstantFold.cpp | 97 Type *MidTy = Op->getType(); in foldConstantCastPair() local 107 return CastInst::isEliminableCastPair(firstOp, secondOp, SrcTy, MidTy, DstTy, in foldConstantCastPair()
|
/external/llvm/include/llvm/IR/ |
D | InstrTypes.h | 818 Type *MidTy, ///< DstTy of 1st cast & SrcTy of 2nd cast
|
/external/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()
|
/external/llvm-project/llvm/lib/Analysis/ |
D | InstructionSimplify.cpp | 4496 Type *MidTy = CI->getType(); in SimplifyCastInst() local 4504 MidTy->isPtrOrPtrVectorTy() ? Q.DL.getIntPtrType(MidTy) : nullptr; in SimplifyCastInst() 4507 if (CastInst::isEliminableCastPair(FirstOp, SecondOp, SrcTy, MidTy, DstTy, in SimplifyCastInst()
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/ |
D | InstrTypes.h | 684 Type *MidTy, ///< DstTy of 1st cast & SrcTy of 2nd cast
|
/external/llvm-project/llvm/include/llvm/IR/ |
D | InstrTypes.h | 671 Type *MidTy, ///< DstTy of 1st cast & SrcTy of 2nd cast
|
/external/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
D | LegalizerHelper.cpp | 2479 LLT MidTy = LLT::scalarOrVector(NewEltsPerOldElt, NewEltTy); in bitcastExtractVectorElt() local 2493 auto NewVec = MIRBuilder.buildBuildVector(MidTy, NewOps); in bitcastExtractVectorElt()
|