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

/external/llvm/lib/Linker/
H A DLinkModules.cpp59 void addTypeMapping(Type *DstTy, Type *SrcTy);
90 bool areTypesIsomorphic(Type *DstTy, Type *SrcTy);
94 void TypeMapTy::addTypeMapping(Type *DstTy, Type *SrcTy) { argument
98 if (DstTy == SrcTy) {
99 Entry = DstTy;
105 if (!areTypesIsomorphic(DstTy, SrcTy)) {
116 bool TypeMapTy::areTypesIsomorphic(Type *DstTy, Type *SrcTy) { argument
118 if (DstTy->getTypeID() != SrcTy->getTypeID()) return false;
123 return Entry == DstTy;
127 if (DstTy
[all...]
/external/llvm/lib/Transforms/InstCombine/
H A DInstCombineCalls.cpp768 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 DInstCombineCasts.cpp231 Type *DstTy, ///< The target type for the second cast instruction
243 DstTy,
251 (!TD || DstTy != TD->getIntPtrType(CI->getContext()))))
228 isEliminableCastPair( const CastInst *CI, unsigned opcode, Type *DstTy, TargetData *TD ) argument
/external/llvm/lib/VMCore/
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();
79 Type *DstTy ///< desintation type of the first cast
82 assert(DstTy && DstTy->isFirstClassType() && "Invalid cast destination type");
92 return CastInst::isEliminableCastPair(firstOp, secondOp, SrcTy, MidTy, DstTy,
93 Type::getInt64Ty(DstTy
[all...]
H A DConstants.cpp1548 Constant *ConstantExpr::getPtrToInt(Constant *C, Type *DstTy) { argument
1551 assert(DstTy->getScalarType()->isIntegerTy() &&
1553 assert(isa<VectorType>(C->getType()) == isa<VectorType>(DstTy));
1555 assert(C->getType()->getVectorNumElements()==DstTy->getVectorNumElements()&&
1557 return getFoldedCast(Instruction::PtrToInt, C, DstTy);
1560 Constant *ConstantExpr::getIntToPtr(Constant *C, Type *DstTy) { argument
1563 assert(DstTy->getScalarType()->isPointerTy() &&
1565 assert(isa<VectorType>(C->getType()) == isa<VectorType>(DstTy));
1567 assert(C->getType()->getVectorNumElements()==DstTy->getVectorNumElements()&&
1569 return getFoldedCast(Instruction::IntToPtr, C, DstTy);
1572 getBitCast(Constant *C, Type *DstTy) argument
[all...]
H A DInstructions.cpp2049 Type* DstTy = getType(); local
2050 if (SrcTy == DstTy)
2055 return DstTy->isPointerTy();
2103 /// * %S = secondOpcode MidTy %F to DstTy
2105 /// * %Replacement = resultOpcode %SrcTy %x to DstTy
2109 Type *SrcTy, Type *MidTy, Type *DstTy, Type *IntPtrTy) {
2165 bool chainedBitcast = (SrcTy == DstTy && isFirstBitcast && isSecondBitcast);
2169 (isSecondBitcast && isa<VectorType>(MidTy) != isa<VectorType>(DstTy)))
2189 if (!SrcTy->isVectorTy() && DstTy->isIntegerTy())
2195 if (DstTy
2107 isEliminableCastPair( Instruction::CastOps firstOp, Instruction::CastOps secondOp, Type *SrcTy, Type *MidTy, Type *DstTy, Type *IntPtrTy) argument
2611 castIsValid(Instruction::CastOps op, Value *S, Type *DstTy) argument
[all...]
/external/clang/lib/CodeGen/
H A DCGCall.cpp686 llvm::Type *DstTy = local
688 if (SrcTy == DstTy) {
695 if (llvm::StructType *DstSTy = dyn_cast<llvm::StructType>(DstTy)) {
697 DstTy = cast<llvm::PointerType>(DstPtr->getType())->getElementType();
703 (isa<llvm::IntegerType>(DstTy) || isa<llvm::PointerType>(DstTy))) {
704 Src = CoerceIntOrPtrToIntOrPtr(Src, DstTy, CGF);
709 uint64_t DstSize = CGF.CGM.getTargetData().getTypeAllocSize(DstTy);
730 CGF.Builder.CreateBitCast(Tmp, llvm::PointerType::getUnqual(DstTy));
1184 llvm::Type *DstTy local
[all...]
H A DCGExprScalar.cpp98 Value *EmitConversionToBool(Value *Src, QualType DstTy);
102 Value *EmitScalarConversion(Value *Src, QualType SrcTy, QualType DstTy);
108 QualType SrcTy, QualType DstTy);
564 llvm::Type *DstTy = ConvertType(DstType);
567 if (SrcTy == DstTy)
573 if (isa<llvm::PointerType>(DstTy)) {
576 return Builder.CreateBitCast(Src, DstTy, "conv");
586 return Builder.CreateIntToPtr(IntResult, DstTy, "conv");
591 assert(isa<llvm::IntegerType>(DstTy) && "not ptr->int?");
592 return Builder.CreatePtrToInt(Src, DstTy, "con
662 EmitComplexToScalarConversion(CodeGenFunction::ComplexPairTy Src, QualType SrcTy, QualType DstTy) argument
1184 llvm::Type *DstTy = ConvertType(DestTy); local
2684 llvm::Type *DstTy = ConvertType(E->getType()); local
2756 EmitScalarConversion(Value *Src, QualType SrcTy, QualType DstTy) argument
2766 EmitComplexToScalarConversion(ComplexPairTy Src, QualType SrcTy, QualType DstTy) argument
[all...]
/external/llvm/lib/Analysis/
H A DInstructionSimplify.cpp1869 Type *DstTy = LI->getType(); local
1874 Q.TD->getPointerSizeInBits() == DstTy->getPrimitiveSizeInBits()) {
1905 // reextended to DstTy.
1907 Constant *RExt = ConstantExpr::getCast(CastInst::ZExt, Trunc, DstTy);
1964 // reextended to DstTy.
1966 Constant *RExt = ConstantExpr::getCast(CastInst::SExt, Trunc, DstTy);
/external/clang/lib/Sema/
H A DSemaExpr.cpp3731 QualType DstTy = GetTypeFromParser(ParsedDestTy); local
3733 if (Context.getTypeSize(DstTy) != Context.getTypeSize(SrcTy))
3736 << DstTy
3739 return Owned(new (Context) AsTypeExpr(E, DstTy, VK, OK, BuiltinLoc,
/external/llvm/lib/Target/X86/
H A DX86ISelLowering.cpp7798 EVT DstTy = Op.getValueType(); local
7800 if (!IsSigned && !isIntegerTypeFTOL(DstTy)) {
7801 assert(DstTy == MVT::i32 && "Unexpected FP_TO_UINT");
7802 DstTy = MVT::i64;
7805 assert(DstTy.getSimpleVT() <= MVT::i64 &&
7806 DstTy.getSimpleVT() >= MVT::i16 &&
7810 if (DstTy == MVT::i32 &&
7814 DstTy == MVT::i64 &&
7821 unsigned MemSize = DstTy.getSizeInBits()/8;
7826 if (!IsSigned && isIntegerTypeFTOL(DstTy))
[all...]

Completed in 670 milliseconds