/external/llvm/lib/Target/ARM/ |
H A D | ARMTargetTransformInfo.cpp | 96 EVT DstTy = TLI->getValueType(DL, Dst); local 98 if (!SrcTy.isSimple() || !DstTy.isSimple()) 181 DstTy.getSimpleVT(), 211 DstTy.getSimpleVT(), 242 ISD, DstTy.getSimpleVT(), 261 DstTy.getSimpleVT(),
|
/external/llvm/lib/Target/AArch64/ |
H A D | AArch64TargetTransformInfo.cpp | 184 EVT DstTy = TLI->getValueType(DL, Dst); local 186 if (!SrcTy.isSimple() || !DstTy.isSimple()) 287 DstTy.getSimpleVT(),
|
/external/spirv-llvm/lib/SPIRV/ |
H A D | OCLUtil.cpp | 551 Type *DstTy = BIC->getDestTy(); local 554 if (DstTy->isPointerTy()) 555 DstTy = DstTy->getPointerElementType(); 557 auto DstST = dyn_cast<StructType>(DstTy);
|
/external/swiftshader/third_party/LLVM/lib/Linker/ |
H A D | LinkModules.cpp | 49 void addTypeMapping(Type *DstTy, Type *SrcTy); 68 bool areTypesIsomorphic(Type *DstTy, Type *SrcTy); 72 void TypeMapTy::addTypeMapping(Type *DstTy, Type *SrcTy) { argument 76 if (DstTy == SrcTy) { 77 Entry = DstTy; 83 if (!areTypesIsomorphic(DstTy, SrcTy)) { 94 bool TypeMapTy::areTypesIsomorphic(Type *DstTy, Type *SrcTy) { argument 96 if (DstTy->getTypeID() != SrcTy->getTypeID()) return false; 101 return Entry == DstTy; 105 if (DstTy [all...] |
/external/llvm/lib/IR/ |
H A D | AutoUpgrade.cpp | 699 VectorType *DstTy = cast<VectorType>(CI->getType()); local 702 unsigned NumDstElts = DstTy->getNumElements(); 712 Rep = Builder.CreateSIToFP(Rep, DstTy, "cvtdq2pd"); 714 Rep = Builder.CreateFPExt(Rep, DstTy, "cvtps2pd"); 719 VectorType *DstTy = cast<VectorType>(CI->getType()); local 720 Rep = Builder.CreateFPToSI(Src, DstTy, "cvtt"); 915 VectorType *DstTy = cast<VectorType>(CI->getType()); local 916 unsigned NumDstElts = DstTy->getNumElements(); 927 Rep = DoSext ? Builder.CreateSExt(SV, DstTy) 928 : Builder.CreateZExt(SV, DstTy); [all...] |
H A D | ConstantFold.cpp | 44 static Constant *BitCastConstantVector(Constant *CV, VectorType *DstTy) { argument 46 if (CV->isAllOnesValue()) return Constant::getAllOnesValue(DstTy); 47 if (CV->isNullValue()) return Constant::getNullValue(DstTy); 52 unsigned NumElts = DstTy->getNumElements(); 56 Type *DstEltTy = DstTy->getElementType(); 78 Type *DstTy ///< destination type of the first cast 81 assert(DstTy && DstTy->isFirstClassType() && "Invalid cast destination type"); 93 IntegerType *FakeIntPtrTy = Type::getInt64Ty(DstTy->getContext()); 96 return CastInst::isEliminableCastPair(firstOp, secondOp, SrcTy, MidTy, DstTy, [all...] |
H A D | Constants.cpp | 1674 Constant *ConstantExpr::getPtrToInt(Constant *C, Type *DstTy, argument 1678 assert(DstTy->getScalarType()->isIntegerTy() && 1680 assert(isa<VectorType>(C->getType()) == isa<VectorType>(DstTy)); 1682 assert(C->getType()->getVectorNumElements()==DstTy->getVectorNumElements()&& 1684 return getFoldedCast(Instruction::PtrToInt, C, DstTy, OnlyIfReduced); 1687 Constant *ConstantExpr::getIntToPtr(Constant *C, Type *DstTy, argument 1691 assert(DstTy->getScalarType()->isPointerTy() && 1693 assert(isa<VectorType>(C->getType()) == isa<VectorType>(DstTy)); 1695 assert(C->getType()->getVectorNumElements()==DstTy->getVectorNumElements()&& 1697 return getFoldedCast(Instruction::IntToPtr, C, DstTy, OnlyIfReduce 1700 getBitCast(Constant *C, Type *DstTy, bool OnlyIfReduced) argument 1712 getAddrSpaceCast(Constant *C, Type *DstTy, bool OnlyIfReduced) argument [all...] |
/external/llvm/lib/Target/X86/ |
H A D | X86TargetTransformInfo.cpp | 828 EVT DstTy = TLI->getValueType(DL, Dst); local 831 if (!SrcTy.isSimple() || !DstTy.isSimple()) 836 DstTy.getSimpleVT(), 842 DstTy.getSimpleVT(), 848 DstTy.getSimpleVT(), 855 DstTy.getSimpleVT(), 862 DstTy.getSimpleVT(), 869 DstTy.getSimpleVT(),
|
/external/swiftshader/third_party/LLVM/lib/Analysis/ |
H A D | InstructionSimplify.cpp | 1615 Type *DstTy = LI->getType(); local 1620 TD->getPointerSizeInBits() == DstTy->getPrimitiveSizeInBits()) { 1651 // reextended to DstTy. 1653 Constant *RExt = ConstantExpr::getCast(CastInst::ZExt, Trunc, DstTy); 1711 // reextended to DstTy. 1713 Constant *RExt = ConstantExpr::getCast(CastInst::SExt, Trunc, DstTy);
|
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/ |
H A D | InstCombineCalls.cpp | 768 Type* DstTy = cast<PointerType>(CI->getType())->getElementType(); local 769 if (!SrcTy->isSized() || !DstTy->isSized()) 771 if (!TD || TD->getTypeAllocSize(SrcTy) != TD->getTypeAllocSize(DstTy))
|
H A D | InstCombineCasts.cpp | 233 Type *DstTy, ///< The target type for the second cast instruction 245 DstTy, 253 (!TD || DstTy != TD->getIntPtrType(CI->getContext())))) 230 isEliminableCastPair( const CastInst *CI, unsigned opcode, Type *DstTy, TargetData *TD ) argument
|
/external/swiftshader/third_party/LLVM/lib/VMCore/ |
H A D | ConstantFold.cpp | 45 VectorType *DstTy) { 47 if (CV->isAllOnesValue()) return Constant::getAllOnesValue(DstTy); 48 if (CV->isNullValue()) return Constant::getNullValue(DstTy); 53 unsigned NumElts = DstTy->getNumElements(); 66 Type *DstEltTy = DstTy->getElementType(); 81 Type *DstTy ///< desintation type of the first cast 84 assert(DstTy && DstTy->isFirstClassType() && "Invalid cast destination type"); 94 return CastInst::isEliminableCastPair(firstOp, secondOp, SrcTy, MidTy, DstTy, 95 Type::getInt64Ty(DstTy 44 BitCastConstantVector(ConstantVector *CV, VectorType *DstTy) argument [all...] |
H A D | Constants.cpp | 1418 Constant *ConstantExpr::getPtrToInt(Constant *C, Type *DstTy) { argument 1420 assert(DstTy->isIntegerTy() && "PtrToInt destination must be integral"); 1421 return getFoldedCast(Instruction::PtrToInt, C, DstTy); 1424 Constant *ConstantExpr::getIntToPtr(Constant *C, Type *DstTy) { argument 1426 assert(DstTy->isPointerTy() && "IntToPtr destination must be a pointer"); 1427 return getFoldedCast(Instruction::IntToPtr, C, DstTy); 1430 Constant *ConstantExpr::getBitCast(Constant *C, Type *DstTy) { argument 1431 assert(CastInst::castIsValid(Instruction::BitCast, C, DstTy) && 1436 if (C->getType() == DstTy) return C; 1438 return getFoldedCast(Instruction::BitCast, C, DstTy); [all...] |
H A D | Instructions.cpp | 2022 Type* DstTy = getType(); local 2023 if (SrcTy == DstTy) 2028 return DstTy->isPointerTy(); 2077 /// * %S = secondOpcode MidTy %F to DstTy 2079 /// * %Replacement = resultOpcode %SrcTy %x to DstTy 2083 Type *SrcTy, Type *MidTy, Type *DstTy, Type *IntPtrTy) { 2139 bool chainedBitcast = (SrcTy == DstTy && isFirstBitcast && isSecondBitcast); 2143 (isSecondBitcast && isa<VectorType>(MidTy) != isa<VectorType>(DstTy))) 2163 if (!SrcTy->isVectorTy() && DstTy->isIntegerTy()) 2169 if (DstTy 2081 isEliminableCastPair( Instruction::CastOps firstOp, Instruction::CastOps secondOp, Type *SrcTy, Type *MidTy, Type *DstTy, Type *IntPtrTy) argument 2601 castIsValid(Instruction::CastOps op, Value *S, Type *DstTy) argument [all...] |
/external/clang/lib/CodeGen/ |
H A D | CGCall.cpp | 1221 llvm::Type *DstTy = Dst.getType()->getElementType(); local 1222 if (SrcTy == DstTy) { 1229 if (llvm::StructType *DstSTy = dyn_cast<llvm::StructType>(DstTy)) { 1231 DstTy = Dst.getType()->getElementType(); 1237 (isa<llvm::IntegerType>(DstTy) || isa<llvm::PointerType>(DstTy))) { 1238 Src = CoerceIntOrPtrToIntOrPtr(Src, DstTy, CGF); 1243 uint64_t DstSize = CGF.CGM.getDataLayout().getTypeAllocSize(DstTy); 2334 llvm::Type *DstTy = Ptr.getElementType(); 2335 uint64_t DstSize = CGM.getDataLayout().getTypeAllocSize(DstTy); [all...] |
H A D | CGExprScalar.cpp | 141 Value *EmitConversionToBool(Value *Src, QualType DstTy); 147 llvm::Type *DstTy, SourceLocation Loc); 151 Value *EmitScalarConversion(Value *Src, QualType SrcTy, QualType DstTy, 154 Value *EmitScalarConversion(Value *Src, QualType SrcTy, QualType DstTy, 160 QualType SrcTy, QualType DstTy, 599 QualType DstType, llvm::Type *DstTy, SourceLocation Loc) { 636 if (isa<llvm::IntegerType>(DstTy)) { 756 llvm::Type *DstTy = ConvertType(DstType); 761 if (DstTy->isFloatingPointTy()) { 764 CGF.CGM.getIntrinsic(llvm::Intrinsic::convert_from_fp16, DstTy), 597 EmitFloatConversionCheck( Value *OrigSrc, QualType OrigSrcType, Value *Src, QualType SrcType, QualType DstType, llvm::Type *DstTy, SourceLocation Loc) argument 898 EmitComplexToScalarConversion( CodeGenFunction::ComplexPairTy Src, QualType SrcTy, QualType DstTy, SourceLocation Loc) argument 1056 llvm::Type *DstTy = ConvertType(DstType); local 1379 llvm::Type *DstTy = ConvertType(DestTy); local 1529 llvm::Type *DstTy = ConvertType(DestTy); local 3401 llvm::Type *DstTy = ConvertType(E->getType()); local 3452 EmitScalarConversion(Value *Src, QualType SrcTy, QualType DstTy, SourceLocation Loc) argument 3462 EmitComplexToScalarConversion(ComplexPairTy Src, QualType SrcTy, QualType DstTy, SourceLocation Loc) argument [all...] |
H A D | MicrosoftCXXABI.cpp | 646 const MemberPointerType *SrcTy, const MemberPointerType *DstTy, 659 const MemberPointerType *SrcTy, const MemberPointerType *DstTy, 2617 const MemberPointerType *DstTy = MPType->castAs<MemberPointerType>(); local 2620 return EmitNullMemberPointer(DstTy); 2630 C = EmitMemberDataPointer(DstTy, FieldOffset); 2637 Ctx.getMemberPointerType(DstTy->getPointeeType(), SrcRecTy) 2663 C = EmitMemberPointerConversion(SrcTy, DstTy, CK, DerivedToBasePath.begin(), 2996 const MemberPointerType *DstTy = E->getType()->castAs<MemberPointerType>(); local 3005 CXXRecordDecl *DstRD = DstTy->getMostRecentCXXRecordDecl(); 3014 llvm::Constant *DstNull = EmitNullMemberPointer(DstTy); 3045 EmitNonNullMemberPointerConversion( const MemberPointerType *SrcTy, const MemberPointerType *DstTy, CastKind CK, CastExpr::path_const_iterator PathBegin, CastExpr::path_const_iterator PathEnd, llvm::Value *Src, CGBuilderTy &Builder) argument 3192 const MemberPointerType *DstTy = E->getType()->castAs<MemberPointerType>(); local 3200 EmitMemberPointerConversion( const MemberPointerType *SrcTy, const MemberPointerType *DstTy, CastKind CK, CastExpr::path_const_iterator PathBegin, CastExpr::path_const_iterator PathEnd, llvm::Constant *Src) argument [all...] |
/external/llvm/lib/Linker/ |
H A D | IRMover.cpp | 57 void addTypeMapping(Type *DstTy, Type *SrcTy); 77 bool areTypesIsomorphic(Type *DstTy, Type *SrcTy); 81 void TypeMapTy::addTypeMapping(Type *DstTy, Type *SrcTy) { argument 87 if (!areTypesIsomorphic(DstTy, SrcTy)) { 109 bool TypeMapTy::areTypesIsomorphic(Type *DstTy, Type *SrcTy) { argument 111 if (DstTy->getTypeID() != SrcTy->getTypeID()) 117 return Entry == DstTy; 121 if (DstTy == SrcTy) { 122 Entry = DstTy; 132 Entry = DstTy; 773 ArrayType *DstTy = cast<ArrayType>(DstGV->getValueType()); local [all...] |
/external/llvm/lib/Target/NVPTX/ |
H A D | NVPTXAsmPrinter.cpp | 2081 PointerType *DstTy = cast<PointerType>(CE->getType()); local 2082 if (DstTy->getAddressSpace() == 0) {
|
/external/llvm/lib/Target/PowerPC/ |
H A D | PPCFastISel.cpp | 1001 Type *DstTy = I->getType(); local 1002 if (!isTypeLegal(DstTy, DstVT)) 1110 Type *DstTy = I->getType(); local 1111 if (!isTypeLegal(DstTy, DstVT))
|
/external/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineCasts.cpp | 236 Type *DstTy, ///< Target type for the second cast 249 DstTy->isPtrOrPtrVectorTy() ? DL.getIntPtrType(DstTy) : nullptr; 251 DstTy, SrcIntPtrTy, MidIntPtrTy, 257 (Res == Instruction::PtrToInt && DstTy != SrcIntPtrTy)) 234 isEliminableCastPair(const CastInst *CI, unsigned opcode, Type *DstTy, const DataLayout &DL) argument
|
H A D | InstCombineCalls.cpp | 2378 Type* DstTy = cast<PointerType>(CI->getType())->getElementType(); local 2379 if (!SrcTy->isSized() || !DstTy->isSized()) 2381 if (DL.getTypeAllocSize(SrcTy) != DL.getTypeAllocSize(DstTy))
|
/external/llvm/lib/Analysis/ |
H A D | DependenceAnalysis.cpp | 788 IntegerType *DstTy = dyn_cast<IntegerType>(Dst->getType()); local 789 if (SrcTy == nullptr || DstTy == nullptr) { 790 assert(SrcTy == DstTy && "This function only unify integer types and " 799 if (DstTy->getBitWidth() > widestWidthSeen) { 800 widestWidthSeen = DstTy->getBitWidth(); 801 widestType = DstTy; 813 IntegerType *DstTy = dyn_cast<IntegerType>(Dst->getType()); local 814 if (SrcTy == nullptr || DstTy == nullptr) { 815 assert(SrcTy == DstTy && "This function only unify integer types and " 823 if (DstTy [all...] |
H A D | InstructionSimplify.cpp | 2454 Type *DstTy = LI->getType(); local 2459 Q.DL.getTypeSizeInBits(SrcTy) == DstTy->getPrimitiveSizeInBits()) { 2490 // reextended to DstTy. 2492 Constant *RExt = ConstantExpr::getCast(CastInst::ZExt, Trunc, DstTy); 2549 // reextended to DstTy. 2551 Constant *RExt = ConstantExpr::getCast(CastInst::SExt, Trunc, DstTy);
|
/external/swiftshader/third_party/LLVM/lib/Target/CBackend/ |
H A D | CBackend.cpp | 212 void printCast(unsigned opcode, Type *SrcTy, Type *DstTy); 687 void CWriter::printCast(unsigned opc, Type *SrcTy, Type *DstTy) { argument 696 case Instruction::FPTrunc: // For these the DstTy sign doesn't matter 698 printType(Out, DstTy); 705 printSimpleType(Out, DstTy, false); 711 printSimpleType(Out, DstTy, true); 2229 Type *DstTy = I.getType(); local 2230 return (SrcTy->isFloatingPointTy() && DstTy->isIntegerTy()) || 2231 (DstTy->isFloatingPointTy() && SrcTy->isIntegerTy()); 2685 Type *DstTy local [all...] |