/external/llvm/lib/IR/ |
D | Instructions.cpp | 2273 Type* SrcTy = getOperand(0)->getType(); in isLosslessCast() local 2275 if (SrcTy == DstTy) in isLosslessCast() 2279 if (SrcTy->isPointerTy()) in isLosslessCast() 2293 Type *SrcTy, in isNoopCast() argument 2317 SrcTy->getScalarSizeInBits(); in isNoopCast() 2349 Type *SrcTy, Type *MidTy, Type *DstTy, Type *SrcIntPtrTy, Type *MidIntPtrTy, in isEliminableCastPair() argument 2413 if ((IsFirstBitcast && isa<VectorType>(SrcTy) != isa<VectorType>(MidTy)) || in isEliminableCastPair() 2434 if (!SrcTy->isVectorTy() && DstTy->isIntegerTy()) in isEliminableCastPair() 2446 if (SrcTy->isIntegerTy()) in isEliminableCastPair() 2452 if (SrcTy->isFloatingPointTy()) in isEliminableCastPair() [all …]
|
D | Verifier.cpp | 2025 Type *SrcTy = I.getOperand(0)->getType(); in visitTruncInst() local 2029 unsigned SrcBitSize = SrcTy->getScalarSizeInBits(); in visitTruncInst() 2032 Assert(SrcTy->isIntOrIntVectorTy(), "Trunc only operates on integer", &I); in visitTruncInst() 2034 Assert(SrcTy->isVectorTy() == DestTy->isVectorTy(), in visitTruncInst() 2043 Type *SrcTy = I.getOperand(0)->getType(); in visitZExtInst() local 2047 Assert(SrcTy->isIntOrIntVectorTy(), "ZExt only operates on integer", &I); in visitZExtInst() 2049 Assert(SrcTy->isVectorTy() == DestTy->isVectorTy(), in visitZExtInst() 2051 unsigned SrcBitSize = SrcTy->getScalarSizeInBits(); in visitZExtInst() 2061 Type *SrcTy = I.getOperand(0)->getType(); in visitSExtInst() local 2065 unsigned SrcBitSize = SrcTy->getScalarSizeInBits(); in visitSExtInst() [all …]
|
D | AutoUpgrade.cpp | 491 VectorType *SrcTy = cast<VectorType>(CI->getArgOperand(0)->getType()); in UpgradeIntrinsicCall() local 501 CI->getArgOperand(0), UndefValue::get(SrcTy), ShuffleMask); in UpgradeIntrinsicCall() 846 Type *SrcTy = V->getType(); in UpgradeBitCastInst() local 847 if (SrcTy->isPtrOrPtrVectorTy() && DestTy->isPtrOrPtrVectorTy() && in UpgradeBitCastInst() 848 SrcTy->getPointerAddressSpace() != DestTy->getPointerAddressSpace()) { in UpgradeBitCastInst() 866 Type *SrcTy = C->getType(); in UpgradeBitCastExpr() local 867 if (SrcTy->isPtrOrPtrVectorTy() && DestTy->isPtrOrPtrVectorTy() && in UpgradeBitCastExpr() 868 SrcTy->getPointerAddressSpace() != DestTy->getPointerAddressSpace()) { in UpgradeBitCastExpr()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineCasts.cpp | 238 Type *SrcTy = CI->getOperand(0)->getType(); // A from above in isEliminableCastPair() local 245 SrcTy->isPtrOrPtrVectorTy() ? DL.getIntPtrType(SrcTy) : nullptr; in isEliminableCastPair() 250 unsigned Res = CastInst::isEliminableCastPair(firstOp, secondOp, SrcTy, MidTy, in isEliminableCastPair() 256 if ((Res == Instruction::IntToPtr && SrcTy != DstIntPtrTy) || in isEliminableCastPair() 496 Type *DestTy = CI.getType(), *SrcTy = Src->getType(); in visitTrunc() local 502 if ((DestTy->isVectorTy() || ShouldChangeType(SrcTy, DestTy)) && in visitTrunc() 516 Constant *One = ConstantInt::get(SrcTy, 1); in visitTrunc() 567 if (Src->hasOneUse() && isa<IntegerType>(SrcTy) && in visitTrunc() 568 ShouldChangeType(SrcTy, DestTy) && in visitTrunc() 848 Type *SrcTy = Src->getType(), *DestTy = CI.getType(); in visitZExt() local [all …]
|
D | InstCombineVectorOps.cpp | 939 VectorType *SrcTy = cast<VectorType>(V->getType()); in visitShuffleVectorInst() local 940 unsigned VecBitWidth = SrcTy->getBitWidth(); in visitShuffleVectorInst() 941 unsigned SrcElemBitWidth = DL.getTypeSizeInBits(SrcTy->getElementType()); in visitShuffleVectorInst() 943 unsigned SrcNumElems = SrcTy->getNumElements(); in visitShuffleVectorInst()
|
/external/llvm/lib/Linker/ |
D | IRMover.cpp | 54 void addTypeMapping(Type *DstTy, Type *SrcTy); 62 Type *get(Type *SrcTy); 63 Type *get(Type *SrcTy, SmallPtrSet<StructType *, 8> &Visited); 72 Type *remapType(Type *SrcTy) override { return get(SrcTy); } in remapType() argument 74 bool areTypesIsomorphic(Type *DstTy, Type *SrcTy); 78 void TypeMapTy::addTypeMapping(Type *DstTy, Type *SrcTy) { in addTypeMapping() argument 84 if (!areTypesIsomorphic(DstTy, SrcTy)) { in addTypeMapping() 106 bool TypeMapTy::areTypesIsomorphic(Type *DstTy, Type *SrcTy) { in areTypesIsomorphic() argument 108 if (DstTy->getTypeID() != SrcTy->getTypeID()) in areTypesIsomorphic() 112 Type *&Entry = MappedTypes[SrcTy]; in areTypesIsomorphic() [all …]
|
/external/llvm/lib/Target/ARM/ |
D | ARMTargetTransformInfo.cpp | 69 EVT SrcTy = TLI->getValueType(DL, Src); in getCastInstrCost() local 72 if (!SrcTy.isSimple() || !DstTy.isSimple()) in getCastInstrCost() 153 if (SrcTy.isVector() && ST->hasNEON()) { in getCastInstrCost() 156 SrcTy.getSimpleVT())) in getCastInstrCost() 183 if (SrcTy.isFloatingPoint() && ST->hasNEON()) { in getCastInstrCost() 186 SrcTy.getSimpleVT())) in getCastInstrCost() 214 if (SrcTy.isInteger() && ST->hasNEON()) { in getCastInstrCost() 217 SrcTy.getSimpleVT())) in getCastInstrCost() 233 if (SrcTy.isInteger()) { in getCastInstrCost() 236 SrcTy.getSimpleVT())) in getCastInstrCost()
|
/external/llvm/lib/Target/NVPTX/ |
D | NVPTXFavorNonGenericAddrSpaces.cpp | 130 PointerType *SrcTy = cast<PointerType>(Src->getType()); in isEliminableAddrSpaceCast() local 136 if (SrcTy->getElementType() != DestTy->getElementType()) in isEliminableAddrSpaceCast() 141 return (SrcTy->getAddressSpace() != AddressSpace::ADDRESS_SPACE_GENERIC && in isEliminableAddrSpaceCast()
|
D | NVPTXISelLowering.h | 458 bool isTruncateFree(Type *SrcTy, Type *DstTy) const override { in isTruncateFree() argument 460 if (!SrcTy->isIntegerTy() || !DstTy->isIntegerTy()) in isTruncateFree() 462 return SrcTy->getPrimitiveSizeInBits() == 64 && in isTruncateFree()
|
/external/llvm/lib/ExecutionEngine/Interpreter/ |
D | Execution.cpp | 1221 Type *SrcTy = SrcVal->getType(); in executeTruncInst() local 1222 if (SrcTy->isVectorTy()) { in executeTruncInst() 1240 Type *SrcTy = SrcVal->getType(); in executeSExtInst() local 1242 if (SrcTy->isVectorTy()) { in executeSExtInst() 1260 Type *SrcTy = SrcVal->getType(); in executeZExtInst() local 1262 if (SrcTy->isVectorTy()) { in executeZExtInst() 1326 Type *SrcTy = SrcVal->getType(); in executeFPToUIInst() local 1329 if (SrcTy->getTypeID() == Type::VectorTyID) { in executeFPToUIInst() 1331 Type *SrcVecTy = SrcTy->getScalarType(); in executeFPToUIInst() 1350 assert(SrcTy->isFloatingPointTy() && "Invalid FPToUI instruction"); in executeFPToUIInst() [all …]
|
/external/clang/lib/CodeGen/ |
D | CGExprScalar.cpp | 151 Value *EmitScalarConversion(Value *Src, QualType SrcTy, QualType DstTy, 154 Value *EmitScalarConversion(Value *Src, QualType SrcTy, QualType DstTy, 160 QualType SrcTy, QualType DstTy, 604 llvm::Type *SrcTy = Src->getType(); in EmitFloatConversionCheck() local 607 if (llvm::IntegerType *IntTy = dyn_cast<llvm::IntegerType>(SrcTy)) { in EmitFloatConversionCheck() 750 llvm::Type *SrcTy = Src->getType(); in EmitScalarConversion() local 779 SrcTy = CGF.FloatTy; in EmitScalarConversion() 784 if (SrcTy == DstTy) in EmitScalarConversion() 792 if (isa<llvm::PointerType>(SrcTy)) in EmitScalarConversion() 806 if (isa<llvm::PointerType>(SrcTy)) { in EmitScalarConversion() [all …]
|
D | CGCall.cpp | 901 llvm::Type *SrcTy = SrcPtr.getElementType(); in EnterStructPointerForCoercedAccess() local 902 if (llvm::StructType *SrcSTy = dyn_cast<llvm::StructType>(SrcTy)) in EnterStructPointerForCoercedAccess() 971 llvm::Type *SrcTy = Src.getElementType(); in CreateCoercedLoad() local 974 if (SrcTy == Ty) in CreateCoercedLoad() 979 if (llvm::StructType *SrcSTy = dyn_cast<llvm::StructType>(SrcTy)) { in CreateCoercedLoad() 981 SrcTy = Src.getType()->getElementType(); in CreateCoercedLoad() 984 uint64_t SrcSize = CGF.CGM.getDataLayout().getTypeAllocSize(SrcTy); in CreateCoercedLoad() 989 (isa<llvm::IntegerType>(SrcTy) || isa<llvm::PointerType>(SrcTy))) { in CreateCoercedLoad() 1049 llvm::Type *SrcTy = Src->getType(); in CreateCoercedStore() local 1051 if (SrcTy == DstTy) { in CreateCoercedStore() [all …]
|
D | CGObjC.cpp | 2928 QualType SrcTy = Ty; in GenerateObjCAtomicSetterCopyHelperFunction() local 2929 SrcTy.addConst(); in GenerateObjCAtomicSetterCopyHelperFunction() 2930 SrcTy = C.getPointerType(SrcTy); in GenerateObjCAtomicSetterCopyHelperFunction() 2935 ImplicitParamDecl srcDecl(getContext(), FD, SourceLocation(), nullptr, SrcTy); in GenerateObjCAtomicSetterCopyHelperFunction() 2957 DeclRefExpr SrcExpr(&srcDecl, false, SrcTy, in GenerateObjCAtomicSetterCopyHelperFunction() 2959 UnaryOperator SRC(&SrcExpr, UO_Deref, SrcTy->getPointeeType(), in GenerateObjCAtomicSetterCopyHelperFunction() 3009 QualType SrcTy = Ty; in GenerateObjCAtomicGetterCopyHelperFunction() local 3010 SrcTy.addConst(); in GenerateObjCAtomicGetterCopyHelperFunction() 3011 SrcTy = C.getPointerType(SrcTy); in GenerateObjCAtomicGetterCopyHelperFunction() 3016 ImplicitParamDecl srcDecl(getContext(), FD, SourceLocation(), nullptr, SrcTy); in GenerateObjCAtomicGetterCopyHelperFunction() [all …]
|
D | MicrosoftCXXABI.cpp | 646 const MemberPointerType *SrcTy, const MemberPointerType *DstTy, 659 const MemberPointerType *SrcTy, const MemberPointerType *DstTy, 2628 const MemberPointerType *SrcTy = in EmitMemberPointer() local 2655 C = EmitMemberPointerConversion(SrcTy, DstTy, CK, DerivedToBasePath.begin(), in EmitMemberPointer() 2986 const MemberPointerType *SrcTy = in EmitMemberPointerConversion() local 2989 bool IsFunc = SrcTy->isMemberFunctionPointer(); in EmitMemberPointerConversion() 2996 CXXRecordDecl *SrcRD = SrcTy->getMostRecentCXXRecordDecl(); in EmitMemberPointerConversion() 3005 llvm::Value *IsNotNull = EmitMemberPointerIsNotNull(CGF, Src, SrcTy); in EmitMemberPointerConversion() 3024 SrcTy, DstTy, E->getCastKind(), E->path_begin(), E->path_end(), Src, in EmitMemberPointerConversion() 3038 const MemberPointerType *SrcTy, const MemberPointerType *DstTy, CastKind CK, in EmitNonNullMemberPointerConversion() argument [all …]
|
D | CGObjCMac.cpp | 4322 llvm::Type * SrcTy = src->getType(); in EmitObjCWeakAssign() local 4323 if (!isa<llvm::PointerType>(SrcTy)) { in EmitObjCWeakAssign() 4324 unsigned Size = CGM.getDataLayout().getTypeAllocSize(SrcTy); in EmitObjCWeakAssign() 4344 llvm::Type * SrcTy = src->getType(); in EmitObjCGlobalAssign() local 4345 if (!isa<llvm::PointerType>(SrcTy)) { in EmitObjCGlobalAssign() 4346 unsigned Size = CGM.getDataLayout().getTypeAllocSize(SrcTy); in EmitObjCGlobalAssign() 4371 llvm::Type * SrcTy = src->getType(); in EmitObjCIvarAssign() local 4372 if (!isa<llvm::PointerType>(SrcTy)) { in EmitObjCIvarAssign() 4373 unsigned Size = CGM.getDataLayout().getTypeAllocSize(SrcTy); in EmitObjCIvarAssign() 4391 llvm::Type * SrcTy = src->getType(); in EmitObjCStrongCastAssign() local [all …]
|
/external/llvm/lib/Analysis/ |
D | ConstantFolding.cpp | 493 Type *SrcTy = C->getType(); in ConstantFoldLoadThroughBitcast() local 497 if (DL.getTypeSizeInBits(DestTy) == DL.getTypeSizeInBits(SrcTy)) { in ConstantFoldLoadThroughBitcast() 501 if (SrcTy->isIntegerTy() && DestTy->isPointerTy()) in ConstantFoldLoadThroughBitcast() 503 else if (SrcTy->isPointerTy() && DestTy->isIntegerTy()) in ConstantFoldLoadThroughBitcast() 512 if (!SrcTy->isAggregateType()) in ConstantFoldLoadThroughBitcast() 677 static Constant *CastGEPIndices(Type *SrcTy, ArrayRef<Constant *> Ops, in CastGEPIndices() argument 704 Constant *C = ConstantExpr::getGetElementPtr(SrcTy, Ops[0], NewIdxs); in CastGEPIndices() 730 static Constant *SymbolicallyEvaluateGEP(Type *SrcTy, ArrayRef<Constant *> Ops, in SymbolicallyEvaluateGEP() argument 872 Constant *C = ConstantExpr::getGetElementPtr(SrcTy, Ptr, NewIdxs); in SymbolicallyEvaluateGEP() 1092 Type *SrcTy = nullptr; in ConstantFoldInstOperands() local [all …]
|
D | CostModel.cpp | 452 Type *SrcTy = I->getOperand(0)->getType(); in getInstructionCost() local 453 return TTI->getCastInstrCost(I->getOpcode(), I->getType(), SrcTy); in getInstructionCost()
|
D | ScalarEvolution.cpp | 3410 Type *SrcTy = V->getType(); in getTruncateOrZeroExtend() local 3411 assert((SrcTy->isIntegerTy() || SrcTy->isPointerTy()) && in getTruncateOrZeroExtend() 3414 if (getTypeSizeInBits(SrcTy) == getTypeSizeInBits(Ty)) in getTruncateOrZeroExtend() 3416 if (getTypeSizeInBits(SrcTy) > getTypeSizeInBits(Ty)) in getTruncateOrZeroExtend() 3427 Type *SrcTy = V->getType(); in getTruncateOrSignExtend() local 3428 assert((SrcTy->isIntegerTy() || SrcTy->isPointerTy()) && in getTruncateOrSignExtend() 3431 if (getTypeSizeInBits(SrcTy) == getTypeSizeInBits(Ty)) in getTruncateOrSignExtend() 3433 if (getTypeSizeInBits(SrcTy) > getTypeSizeInBits(Ty)) in getTruncateOrSignExtend() 3443 Type *SrcTy = V->getType(); in getNoopOrZeroExtend() local 3444 assert((SrcTy->isIntegerTy() || SrcTy->isPointerTy()) && in getNoopOrZeroExtend() [all …]
|
/external/llvm/lib/Target/X86/ |
D | X86TargetTransformInfo.cpp | 803 EVT SrcTy = TLI->getValueType(DL, Src); in getCastInstrCost() local 807 if (!SrcTy.isSimple() || !DstTy.isSimple()) in getCastInstrCost() 813 SrcTy.getSimpleVT())) in getCastInstrCost() 819 SrcTy.getSimpleVT())) in getCastInstrCost() 825 SrcTy.getSimpleVT())) in getCastInstrCost() 832 SrcTy.getSimpleVT())) in getCastInstrCost() 839 SrcTy.getSimpleVT())) in getCastInstrCost() 846 SrcTy.getSimpleVT())) in getCastInstrCost() 994 int X86TTIImpl::getMaskedMemoryOpCost(unsigned Opcode, Type *SrcTy, in getMaskedMemoryOpCost() argument 997 VectorType *SrcVTy = dyn_cast<VectorType>(SrcTy); in getMaskedMemoryOpCost() [all …]
|
/external/llvm/include/llvm/Transforms/Utils/ |
D | ValueMapper.h | 34 virtual Type *remapType(Type *SrcTy) = 0;
|
/external/clang/lib/Sema/ |
D | SemaCast.cpp | 1670 QualType SrcTy, DestTy; in CheckCompatibleReinterpretCast() local 1675 SrcTy = SrcType->getPointeeType(); in CheckCompatibleReinterpretCast() 1681 SrcTy = SrcType; in CheckCompatibleReinterpretCast() 1686 if (Context.hasSameUnqualifiedType(DestTy, SrcTy)) { in CheckCompatibleReinterpretCast() 1691 SrcTy->isAnyCharacterType() || SrcTy->isVoidType()) { in CheckCompatibleReinterpretCast() 1695 if (SrcTy->getAs<TagType>() || DestTy->getAs<TagType>()) { in CheckCompatibleReinterpretCast() 1700 if ((SrcTy->isUnsignedIntegerType() && DestTy->isSignedIntegerType()) || in CheckCompatibleReinterpretCast() 1701 (SrcTy->isSignedIntegerType() && DestTy->isUnsignedIntegerType())) { in CheckCompatibleReinterpretCast() 1702 if (Context.getTypeSize(DestTy) == Context.getTypeSize(SrcTy)) { in CheckCompatibleReinterpretCast()
|
/external/llvm/lib/Target/AArch64/ |
D | AArch64TargetTransformInfo.cpp | 183 EVT SrcTy = TLI->getValueType(DL, Src); in getCastInstrCost() local 186 if (!SrcTy.isSimple() || !DstTy.isSimple()) in getCastInstrCost() 288 SrcTy.getSimpleVT())) in getCastInstrCost()
|
/external/llvm/lib/Transforms/IPO/ |
D | ArgumentPromotion.cpp | 676 Type *SrcTy; in DoPromotion() local 678 SrcTy = L->getType(); in DoPromotion() 680 SrcTy = cast<GetElementPtrInst>(UI)->getSourceElementType(); in DoPromotion() 692 ArgIndices.insert(std::make_pair(SrcTy, Indices)); in DoPromotion()
|
D | MergeFunctions.cpp | 1649 Type *SrcTy = V->getType(); in createCast() local 1650 if (SrcTy->isStructTy()) { in createCast() 1652 assert(SrcTy->getStructNumElements() == DestTy->getStructNumElements()); in createCast() 1654 for (unsigned int I = 0, E = SrcTy->getStructNumElements(); I < E; ++I) { in createCast() 1665 if (SrcTy->isIntegerTy() && DestTy->isPointerTy()) in createCast() 1667 else if (SrcTy->isPointerTy() && DestTy->isIntegerTy()) in createCast()
|
/external/llvm/include/llvm/IR/ |
D | InstrTypes.h | 758 Type *SrcTy, ///< The Type from which the value should be cast. 764 Type *SrcTy, ///< The Type from which the value should be cast. 774 Type *SrcTy, ///< The Type from which the value should be cast. 813 Type *SrcTy, ///< SrcTy of cast 837 Type *SrcTy, ///< SrcTy of 1st cast
|