Searched defs:DstTy (Results 1 - 19 of 19) sorted by relevance

/external/llvm/lib/Target/AArch64/
H A DAArch64TargetTransformInfo.cpp301 EVT DstTy = TLI->getValueType(Dst); local
303 if (!SrcTy.isSimple() || !DstTy.isSimple())
370 ConversionTbl, array_lengthof(ConversionTbl), ISD, DstTy.getSimpleVT(),
/external/llvm/lib/Target/ARM/
H A DARMTargetTransformInfo.cpp205 EVT DstTy = TLI->getValueType(Dst); local
207 if (!SrcTy.isSimple() || !DstTy.isSimple())
291 DstTy.getSimpleVT(), SrcTy.getSimpleVT());
322 DstTy.getSimpleVT(), SrcTy.getSimpleVT());
354 DstTy.getSimpleVT(), SrcTy.getSimpleVT());
374 DstTy.getSimpleVT(), SrcTy.getSimpleVT());
/external/llvm/lib/Target/X86/
H A DX86TargetTransformInfo.cpp561 EVT DstTy = TLI->getValueType(Dst); local
564 if (!SrcTy.isSimple() || !DstTy.isSimple())
667 DstTy.getSimpleVT(), SrcTy.getSimpleVT());
673 int Idx = ConvertCostTableLookup(AVXConversionTbl, ISD, DstTy.getSimpleVT(),
/external/llvm/lib/IR/
H A DConstantFold.cpp44 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 DVerifier.cpp1000 Type *DstTy = CE->getType(); local
1001 VerifyBitcastType(CE, DstTy, SrcTy);
H A DConstants.cpp1697 Constant *ConstantExpr::getPtrToInt(Constant *C, Type *DstTy) { argument
1700 assert(DstTy->getScalarType()->isIntegerTy() &&
1702 assert(isa<VectorType>(C->getType()) == isa<VectorType>(DstTy));
1704 assert(C->getType()->getVectorNumElements()==DstTy->getVectorNumElements()&&
1706 return getFoldedCast(Instruction::PtrToInt, C, DstTy);
1709 Constant *ConstantExpr::getIntToPtr(Constant *C, Type *DstTy) { argument
1712 assert(DstTy->getScalarType()->isPointerTy() &&
1714 assert(isa<VectorType>(C->getType()) == isa<VectorType>(DstTy));
1716 assert(C->getType()->getVectorNumElements()==DstTy->getVectorNumElements()&&
1718 return getFoldedCast(Instruction::IntToPtr, C, DstTy);
1721 getBitCast(Constant *C, Type *DstTy) argument
1732 getAddrSpaceCast(Constant *C, Type *DstTy) argument
[all...]
H A DInstructions.cpp2077 Type* DstTy = getType(); local
2078 if (SrcTy == DstTy)
2083 return DstTy->isPointerTy();
2152 /// * %S = secondOpcode MidTy %F to DstTy
2154 /// * %Replacement = resultOpcode %SrcTy %x to DstTy
2158 Type *SrcTy, Type *MidTy, Type *DstTy, Type *SrcIntPtrTy, Type *MidIntPtrTy,
2217 bool chainedBitcast = (SrcTy == DstTy && isFirstBitcast && isSecondBitcast);
2221 (isSecondBitcast && isa<VectorType>(MidTy) != isa<VectorType>(DstTy)))
2241 if (!SrcTy->isVectorTy() && DstTy->isIntegerTy())
2247 if (DstTy
2156 isEliminableCastPair( Instruction::CastOps firstOp, Instruction::CastOps secondOp, Type *SrcTy, Type *MidTy, Type *DstTy, Type *SrcIntPtrTy, Type *MidIntPtrTy, Type *DstIntPtrTy) argument
2778 castIsValid(Instruction::CastOps op, Value *S, Type *DstTy) argument
[all...]
/external/llvm/lib/Analysis/
H A DInstructionSimplify.cpp2023 Type *DstTy = LI->getType(); local
2028 Q.DL->getTypeSizeInBits(SrcTy) == DstTy->getPrimitiveSizeInBits()) {
2059 // reextended to DstTy.
2061 Constant *RExt = ConstantExpr::getCast(CastInst::ZExt, Trunc, DstTy);
2118 // reextended to DstTy.
2120 Constant *RExt = ConstantExpr::getCast(CastInst::SExt, Trunc, DstTy);
/external/llvm/lib/Linker/
H A DLinkModules.cpp64 void addTypeMapping(Type *DstTy, Type *SrcTy);
95 bool areTypesIsomorphic(Type *DstTy, Type *SrcTy);
99 void TypeMapTy::addTypeMapping(Type *DstTy, Type *SrcTy) { argument
103 if (DstTy == SrcTy) {
104 Entry = DstTy;
110 if (!areTypesIsomorphic(DstTy, SrcTy)) {
121 bool TypeMapTy::areTypesIsomorphic(Type *DstTy, Type *SrcTy) { argument
123 if (DstTy->getTypeID() != SrcTy->getTypeID()) return false;
128 return Entry == DstTy;
132 if (DstTy
[all...]
/external/llvm/lib/Target/NVPTX/
H A DNVPTXAsmPrinter.cpp159 PointerType *DstTy = cast<PointerType>(CE->getType()); local
161 if (SrcTy->getAddressSpace() == 1 && DstTy->getAddressSpace() == 0) {
/external/llvm/lib/Target/PowerPC/
H A DPPCFastISel.cpp919 Type *DstTy = I->getType(); local
920 if (!isTypeLegal(DstTy, DstVT))
1026 Type *DstTy = I->getType(); local
1027 if (!isTypeLegal(DstTy, DstVT))
/external/llvm/lib/Transforms/InstCombine/
H A DInstCombineCalls.cpp1025 Type* DstTy = cast<PointerType>(CI->getType())->getElementType(); local
1026 if (!SrcTy->isSized() || !DstTy->isSized())
1028 if (!DL || DL->getTypeAllocSize(SrcTy) != DL->getTypeAllocSize(DstTy))
H A DInstCombineCasts.cpp240 Type *DstTy, ///< The target type for the second cast instruction
254 Type *DstIntPtrTy = DL && DstTy->isPtrOrPtrVectorTy() ?
255 DL->getIntPtrType(DstTy) : nullptr;
257 DstTy, SrcIntPtrTy, MidIntPtrTy,
263 (Res == Instruction::PtrToInt && DstTy != SrcIntPtrTy))
237 isEliminableCastPair( const CastInst *CI, unsigned opcode, Type *DstTy, const DataLayout *DL ) argument
/external/clang/lib/CodeGen/
H A DCGCall.cpp840 llvm::Type *DstTy = local
842 if (SrcTy == DstTy) {
849 if (llvm::StructType *DstSTy = dyn_cast<llvm::StructType>(DstTy)) {
851 DstTy = cast<llvm::PointerType>(DstPtr->getType())->getElementType();
857 (isa<llvm::IntegerType>(DstTy) || isa<llvm::PointerType>(DstTy))) {
858 Src = CoerceIntOrPtrToIntOrPtr(Src, DstTy, CGF);
863 uint64_t DstSize = CGF.CGM.getDataLayout().getTypeAllocSize(DstTy);
1531 llvm::Type *DstTy = local
1533 uint64_t DstSize = CGM.getDataLayout().getTypeAllocSize(DstTy);
[all...]
H A DCGExprScalar.cpp104 Value *EmitConversionToBool(Value *Src, QualType DstTy);
110 QualType DstType, llvm::Type *DstTy);
114 Value *EmitScalarConversion(Value *Src, QualType SrcTy, QualType DstTy);
120 QualType SrcTy, QualType DstTy);
559 llvm::Type *DstTy) {
595 if (isa<llvm::IntegerType>(DstTy)) {
716 llvm::Type *DstTy = ConvertType(DstType);
719 if (SrcTy == DstTy)
725 if (isa<llvm::PointerType>(DstTy)) {
728 return Builder.CreateBitCast(Src, DstTy, "con
555 EmitFloatConversionCheck(Value *OrigSrc, QualType OrigSrcType, Value *Src, QualType SrcType, QualType DstType, llvm::Type *DstTy) argument
813 EmitComplexToScalarConversion(CodeGenFunction::ComplexPairTy Src, QualType SrcTy, QualType DstTy) argument
988 llvm::Type *DstTy = ConvertType(DstType); local
1300 llvm::Type *DstTy = ConvertType(DestTy); local
1456 llvm::Type *DstTy = ConvertType(DestTy); local
3224 llvm::Type *DstTy = ConvertType(E->getType()); local
3296 EmitScalarConversion(Value *Src, QualType SrcTy, QualType DstTy) argument
3306 EmitComplexToScalarConversion(ComplexPairTy Src, QualType SrcTy, QualType DstTy) argument
[all...]
H A DMicrosoftCXXABI.cpp2266 const MemberPointerType *DstTy = E->getType()->castAs<MemberPointerType>(); local
2275 CXXRecordDecl *DstRD = DstTy->getMostRecentCXXRecordDecl();
2284 llvm::Constant *DstNull = EmitNullMemberPointer(DstTy);
2370 const MemberPointerType *DstTy = E->getType()->castAs<MemberPointerType>(); local
2375 return EmitNullMemberPointer(DstTy);
2384 MSInheritanceAttr::Spelling DstInheritance = getInheritanceFromMemptr(DstTy);
/external/llvm/lib/Transforms/Vectorize/
H A DLoopVectorize.cpp3002 IntegerType *DstTy = cast<IntegerType>(II.StartValue->getType()); local
3003 Value *CNI = Builder.CreateSExtOrTrunc(NormalizedIdx, DstTy,
/external/clang/lib/Sema/
H A DSemaChecking.cpp1900 QualType DstTy = TInfo->getType(); local
1907 if (!DstTy->isVectorType() && !DstTy->isDependentType())
1911 if (!SrcTy->isDependentType() && !DstTy->isDependentType()) {
1913 unsigned DstElts = DstTy->getAs<VectorType>()->getNumElements();
1921 ConvertVectorExpr(E, TInfo, DstTy, VK, OK, BuiltinLoc, RParenLoc);
4390 QualType DstTy = DstArg->getType(); local
4391 bool isKnownSizeArray = isConstantSizeArrayWithMoreThanOneElement(DstTy,
H A DSemaExpr.cpp4616 QualType DstTy = GetTypeFromParser(ParsedDestTy); local
4618 if (Context.getTypeSize(DstTy) != Context.getTypeSize(SrcTy))
4621 << DstTy
4624 return new (Context) AsTypeExpr(E, DstTy, VK, OK, BuiltinLoc, RParenLoc);

Completed in 731 milliseconds