Searched refs:DstTy (Results 1 - 17 of 17) sorted by relevance

/external/llvm/lib/ExecutionEngine/Interpreter/
H A DInterpreter.h215 GenericValue executeTruncInst(Value *SrcVal, Type *DstTy,
217 GenericValue executeSExtInst(Value *SrcVal, Type *DstTy,
219 GenericValue executeZExtInst(Value *SrcVal, Type *DstTy,
221 GenericValue executeFPTruncInst(Value *SrcVal, Type *DstTy,
223 GenericValue executeFPExtInst(Value *SrcVal, Type *DstTy,
225 GenericValue executeFPToUIInst(Value *SrcVal, Type *DstTy,
227 GenericValue executeFPToSIInst(Value *SrcVal, Type *DstTy,
229 GenericValue executeUIToFPInst(Value *SrcVal, Type *DstTy,
231 GenericValue executeSIToFPInst(Value *SrcVal, Type *DstTy,
233 GenericValue executePtrToIntInst(Value *SrcVal, Type *DstTy,
[all...]
H A DExecution.cpp944 GenericValue Interpreter::executeTruncInst(Value *SrcVal, Type *DstTy,
947 IntegerType *DITy = cast<IntegerType>(DstTy);
953 GenericValue Interpreter::executeSExtInst(Value *SrcVal, Type *DstTy,
956 IntegerType *DITy = cast<IntegerType>(DstTy);
962 GenericValue Interpreter::executeZExtInst(Value *SrcVal, Type *DstTy,
965 IntegerType *DITy = cast<IntegerType>(DstTy);
971 GenericValue Interpreter::executeFPTruncInst(Value *SrcVal, Type *DstTy,
974 assert(SrcVal->getType()->isDoubleTy() && DstTy->isFloatTy() &&
980 GenericValue Interpreter::executeFPExtInst(Value *SrcVal, Type *DstTy,
983 assert(SrcVal->getType()->isFloatTy() && DstTy
[all...]
/external/llvm/lib/Linker/
H A DLinkModules.cpp61 void addTypeMapping(Type *DstTy, Type *SrcTy);
92 bool areTypesIsomorphic(Type *DstTy, Type *SrcTy);
96 void TypeMapTy::addTypeMapping(Type *DstTy, Type *SrcTy) { argument
100 if (DstTy == SrcTy) {
101 Entry = DstTy;
107 if (!areTypesIsomorphic(DstTy, SrcTy)) {
118 bool TypeMapTy::areTypesIsomorphic(Type *DstTy, Type *SrcTy) { argument
120 if (DstTy->getTypeID() != SrcTy->getTypeID()) return false;
125 return Entry == DstTy;
129 if (DstTy
[all...]
/external/clang/lib/CodeGen/
H A DCGExprScalar.cpp100 Value *EmitConversionToBool(Value *Src, QualType DstTy);
104 Value *EmitScalarConversion(Value *Src, QualType SrcTy, QualType DstTy);
110 QualType SrcTy, QualType DstTy);
562 llvm::Type *DstTy = ConvertType(DstType);
565 if (SrcTy == DstTy)
571 if (isa<llvm::PointerType>(DstTy)) {
574 return Builder.CreateBitCast(Src, DstTy, "conv");
584 return Builder.CreateIntToPtr(IntResult, DstTy, "conv");
589 assert(isa<llvm::IntegerType>(DstTy) && "not ptr->int?");
590 return Builder.CreatePtrToInt(Src, DstTy, "con
660 EmitComplexToScalarConversion(CodeGenFunction::ComplexPairTy Src, QualType SrcTy, QualType DstTy) argument
1185 llvm::Type *DstTy = ConvertType(DestTy); local
2682 llvm::Type *DstTy = ConvertType(E->getType()); local
2754 EmitScalarConversion(Value *Src, QualType SrcTy, QualType DstTy) argument
2764 EmitComplexToScalarConversion(ComplexPairTy Src, QualType SrcTy, QualType DstTy) argument
[all...]
H A DCGCall.cpp736 llvm::Type *DstTy = local
738 if (SrcTy == DstTy) {
745 if (llvm::StructType *DstSTy = dyn_cast<llvm::StructType>(DstTy)) {
747 DstTy = cast<llvm::PointerType>(DstPtr->getType())->getElementType();
753 (isa<llvm::IntegerType>(DstTy) || isa<llvm::PointerType>(DstTy))) {
754 Src = CoerceIntOrPtrToIntOrPtr(Src, DstTy, CGF);
759 uint64_t DstSize = CGF.CGM.getTargetData().getTypeAllocSize(DstTy);
780 CGF.Builder.CreateBitCast(Tmp, llvm::PointerType::getUnqual(DstTy));
1230 llvm::Type *DstTy local
[all...]
H A DCodeGenFunction.h2381 QualType DstTy);
2387 QualType DstTy);
/external/llvm/lib/VMCore/
H A DInstructions.cpp2055 Type* DstTy = getType(); local
2056 if (SrcTy == DstTy)
2061 return DstTy->isPointerTy();
2109 /// * %S = secondOpcode MidTy %F to DstTy
2111 /// * %Replacement = resultOpcode %SrcTy %x to DstTy
2115 Type *SrcTy, Type *MidTy, Type *DstTy, Type *IntPtrTy) {
2171 bool chainedBitcast = (SrcTy == DstTy && isFirstBitcast && isSecondBitcast);
2175 (isSecondBitcast && isa<VectorType>(MidTy) != isa<VectorType>(DstTy)))
2195 if (!SrcTy->isVectorTy() && DstTy->isIntegerTy())
2201 if (DstTy
2113 isEliminableCastPair( Instruction::CastOps firstOp, Instruction::CastOps secondOp, Type *SrcTy, Type *MidTy, Type *DstTy, Type *IntPtrTy) argument
2617 castIsValid(Instruction::CastOps op, Value *S, Type *DstTy) argument
[all...]
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 ///< desintation type of the first cast
81 assert(DstTy && DstTy->isFirstClassType() && "Invalid cast destination type");
91 return CastInst::isEliminableCastPair(firstOp, secondOp, SrcTy, MidTy, DstTy,
92 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...]
/external/llvm/include/llvm/
H A DInstrTypes.h573 Type *DstTy, ///< DstTy of cast
586 /// the pair, casting SrcTy to DstTy.
592 Type *MidTy, ///< DstTy of 1st cast & SrcTy of 2nd cast
593 Type *DstTy, ///< DstTy of 2nd cast
607 /// This method can be used to determine if a cast from S to DstTy using
611 static bool castIsValid(Instruction::CastOps op, Value *S, Type *DstTy);
/external/llvm/lib/Transforms/InstCombine/
H A DInstCombineCalls.cpp747 Type* DstTy = cast<PointerType>(CI->getType())->getElementType(); local
748 if (!SrcTy->isSized() || !DstTy->isSized())
750 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/Transforms/Scalar/
H A DLoopStrengthReduce.cpp3400 Type *DstTy = Base.getType();
3401 if (!DstTy) return;
3402 DstTy = SE.getEffectiveSCEVType(DstTy);
3407 if (SrcTy != DstTy && TLI->isTruncateFree(SrcTy, DstTy)) {
/external/llvm/lib/Analysis/
H A DInstructionSimplify.cpp1875 Type *DstTy = LI->getType(); local
1880 Q.TD->getPointerSizeInBits() == DstTy->getPrimitiveSizeInBits()) {
1911 // reextended to DstTy.
1913 Constant *RExt = ConstantExpr::getCast(CastInst::ZExt, Trunc, DstTy);
1970 // reextended to DstTy.
1972 Constant *RExt = ConstantExpr::getCast(CastInst::SExt, Trunc, DstTy);
/external/llvm/lib/Target/X86/
H A DX86ISelLowering.cpp8075 EVT DstTy = Op.getValueType(); local
8077 if (!IsSigned && !isIntegerTypeFTOL(DstTy)) {
8078 assert(DstTy == MVT::i32 && "Unexpected FP_TO_UINT");
8079 DstTy = MVT::i64;
8082 assert(DstTy.getSimpleVT() <= MVT::i64 &&
8083 DstTy.getSimpleVT() >= MVT::i16 &&
8087 if (DstTy == MVT::i32 &&
8091 DstTy == MVT::i64 &&
8098 unsigned MemSize = DstTy.getSizeInBits()/8;
8103 if (!IsSigned && isIntegerTypeFTOL(DstTy))
[all...]
/external/clang/lib/Sema/
H A DSemaChecking.cpp3397 QualType DstTy = DstArg->getType(); local
3398 bool isKnownSizeArray = isConstantSizeArrayWithMoreThanOneElement(DstTy,
H A DSemaExpr.cpp3922 QualType DstTy = GetTypeFromParser(ParsedDestTy); local
3924 if (Context.getTypeSize(DstTy) != Context.getTypeSize(SrcTy))
3927 << DstTy
3930 return Owned(new (Context) AsTypeExpr(E, DstTy, VK, OK, BuiltinLoc,

Completed in 317 milliseconds