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

/freebsd-9.3-release/contrib/llvm/lib/ExecutionEngine/Interpreter/
H A DInterpreter.h222 GenericValue executeTruncInst(Value *SrcVal, Type *DstTy,
224 GenericValue executeSExtInst(Value *SrcVal, Type *DstTy,
226 GenericValue executeZExtInst(Value *SrcVal, Type *DstTy,
228 GenericValue executeFPTruncInst(Value *SrcVal, Type *DstTy,
230 GenericValue executeFPExtInst(Value *SrcVal, Type *DstTy,
232 GenericValue executeFPToUIInst(Value *SrcVal, Type *DstTy,
234 GenericValue executeFPToSIInst(Value *SrcVal, Type *DstTy,
236 GenericValue executeUIToFPInst(Value *SrcVal, Type *DstTy,
238 GenericValue executeSIToFPInst(Value *SrcVal, Type *DstTy,
240 GenericValue executePtrToIntInst(Value *SrcVal, Type *DstTy,
[all...]
H A DExecution.cpp1216 GenericValue Interpreter::executeTruncInst(Value *SrcVal, Type *DstTy,
1221 Type *DstVecTy = DstTy->getScalarType();
1229 IntegerType *DITy = cast<IntegerType>(DstTy);
1236 GenericValue Interpreter::executeSExtInst(Value *SrcVal, Type *DstTy,
1241 const Type *DstVecTy = DstTy->getScalarType();
1249 const IntegerType *DITy = cast<IntegerType>(DstTy);
1256 GenericValue Interpreter::executeZExtInst(Value *SrcVal, Type *DstTy,
1261 const Type *DstVecTy = DstTy->getScalarType();
1270 const IntegerType *DITy = cast<IntegerType>(DstTy);
1277 GenericValue Interpreter::executeFPTruncInst(Value *SrcVal, Type *DstTy,
[all...]
/freebsd-9.3-release/contrib/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...]
/freebsd-9.3-release/contrib/llvm/tools/clang/lib/CodeGen/
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
989 llvm::Type *DstTy = ConvertType(DstType); local
1448 llvm::Type *DstTy = ConvertType(DestTy); local
3186 llvm::Type *DstTy = ConvertType(E->getType()); local
3258 EmitScalarConversion(Value *Src, QualType SrcTy, QualType DstTy) argument
3268 EmitComplexToScalarConversion(ComplexPairTy Src, QualType SrcTy, QualType DstTy) argument
[all...]
H A DCGCall.cpp794 llvm::Type *DstTy = local
796 if (SrcTy == DstTy) {
803 if (llvm::StructType *DstSTy = dyn_cast<llvm::StructType>(DstTy)) {
805 DstTy = cast<llvm::PointerType>(DstPtr->getType())->getElementType();
811 (isa<llvm::IntegerType>(DstTy) || isa<llvm::PointerType>(DstTy))) {
812 Src = CoerceIntOrPtrToIntOrPtr(Src, DstTy, CGF);
817 uint64_t DstSize = CGF.CGM.getDataLayout().getTypeAllocSize(DstTy);
1374 llvm::Type *DstTy = local
1376 uint64_t DstSize = CGM.getDataLayout().getTypeAllocSize(DstTy);
[all...]
H A DMicrosoftCXXABI.cpp1723 const MemberPointerType *DstTy = E->getType()->castAs<MemberPointerType>(); local
1725 MSInheritanceModel DstInheritance = getInheritanceFromMemptr(DstTy);
1739 llvm::Constant *DstNull = EmitNullMemberPointer(DstTy);
1823 const MemberPointerType *DstTy = E->getType()->castAs<MemberPointerType>(); local
1828 return EmitNullMemberPointer(DstTy);
1837 MSInheritanceModel DstInheritance = getInheritanceFromMemptr(DstTy);
H A DCodeGenFunction.h2262 QualType DstTy);
2268 QualType DstTy);
/freebsd-9.3-release/contrib/llvm/lib/IR/
H A DInstructions.cpp2065 Type* DstTy = getType(); local
2066 if (SrcTy == DstTy)
2071 return DstTy->isPointerTy();
2121 /// * %S = secondOpcode MidTy %F to DstTy
2123 /// * %Replacement = resultOpcode %SrcTy %x to DstTy
2127 Type *SrcTy, Type *MidTy, Type *DstTy, Type *SrcIntPtrTy, Type *MidIntPtrTy,
2186 bool chainedBitcast = (SrcTy == DstTy && isFirstBitcast && isSecondBitcast);
2190 (isSecondBitcast && isa<VectorType>(MidTy) != isa<VectorType>(DstTy)))
2210 if (!SrcTy->isVectorTy() && DstTy->isIntegerTy())
2216 if (DstTy
2125 isEliminableCastPair( Instruction::CastOps firstOp, Instruction::CastOps secondOp, Type *SrcTy, Type *MidTy, Type *DstTy, Type *SrcIntPtrTy, Type *MidIntPtrTy, Type *DstIntPtrTy) argument
2753 castIsValid(Instruction::CastOps op, Value *S, Type *DstTy) argument
[all...]
H A DConstants.cpp1648 Constant *ConstantExpr::getPtrToInt(Constant *C, Type *DstTy) { argument
1651 assert(DstTy->getScalarType()->isIntegerTy() &&
1653 assert(isa<VectorType>(C->getType()) == isa<VectorType>(DstTy));
1655 assert(C->getType()->getVectorNumElements()==DstTy->getVectorNumElements()&&
1657 return getFoldedCast(Instruction::PtrToInt, C, DstTy);
1660 Constant *ConstantExpr::getIntToPtr(Constant *C, Type *DstTy) { argument
1663 assert(DstTy->getScalarType()->isPointerTy() &&
1665 assert(isa<VectorType>(C->getType()) == isa<VectorType>(DstTy));
1667 assert(C->getType()->getVectorNumElements()==DstTy->getVectorNumElements()&&
1669 return getFoldedCast(Instruction::IntToPtr, C, DstTy);
1672 getBitCast(Constant *C, Type *DstTy) argument
1683 getAddrSpaceCast(Constant *C, 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 ///< 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.cpp983 Type *DstTy = CE->getType(); local
984 VerifyBitcastType(CE, DstTy, SrcTy);
/freebsd-9.3-release/contrib/llvm/lib/Target/ARM/
H A DARMTargetTransformInfo.cpp204 EVT DstTy = TLI->getValueType(Dst); local
206 if (!SrcTy.isSimple() || !DstTy.isSimple())
290 DstTy.getSimpleVT(), SrcTy.getSimpleVT());
321 DstTy.getSimpleVT(), SrcTy.getSimpleVT());
353 DstTy.getSimpleVT(), SrcTy.getSimpleVT());
373 DstTy.getSimpleVT(), SrcTy.getSimpleVT());
/freebsd-9.3-release/contrib/llvm/include/llvm/IR/
H A DInstrTypes.h576 Type *DstTy, ///< DstTy of cast
589 /// the pair, casting SrcTy to DstTy.
595 Type *MidTy, ///< DstTy of 1st cast & SrcTy of 2nd cast
596 Type *DstTy, ///< DstTy of 2nd cast
599 Type *DstIntPtrTy ///< Integer type corresponding to Ptr DstTy, or null
612 /// This method can be used to determine if a cast from S to DstTy using
616 static bool castIsValid(Instruction::CastOps op, Value *S, Type *DstTy);
/freebsd-9.3-release/contrib/llvm/lib/Target/X86/
H A DX86TargetTransformInfo.cpp396 EVT DstTy = TLI->getValueType(Dst); local
399 if (!SrcTy.isSimple() || !DstTy.isSimple())
451 int Idx = ConvertCostTableLookup(AVXConversionTbl, ISD, DstTy.getSimpleVT(),
H A DX86ISelLowering.cpp8795 EVT DstTy = Op.getValueType(); local
8797 if (!IsSigned && !isIntegerTypeFTOL(DstTy)) {
8798 assert(DstTy == MVT::i32 && "Unexpected FP_TO_UINT");
8799 DstTy = MVT::i64;
8802 assert(DstTy.getSimpleVT() <= MVT::i64 &&
8803 DstTy.getSimpleVT() >= MVT::i16 &&
8807 if (DstTy == MVT::i32 &&
8811 DstTy == MVT::i64 &&
8818 unsigned MemSize = DstTy.getSizeInBits()/8;
8823 if (!IsSigned && isIntegerTypeFTOL(DstTy))
[all...]
/freebsd-9.3-release/contrib/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp237 Type *DstTy, ///< The target type for the second cast instruction
251 Type *DstIntPtrTy = TD && DstTy->isPtrOrPtrVectorTy() ?
252 TD->getIntPtrType(DstTy) : 0;
254 DstTy, SrcIntPtrTy, MidIntPtrTy,
260 (Res == Instruction::PtrToInt && DstTy != SrcIntPtrTy))
234 isEliminableCastPair( const CastInst *CI, unsigned opcode, Type *DstTy, DataLayout *TD ) argument
H A DInstCombineCalls.cpp778 Type* DstTy = cast<PointerType>(CI->getType())->getElementType(); local
779 if (!SrcTy->isSized() || !DstTy->isSized())
781 if (!TD || TD->getTypeAllocSize(SrcTy) != TD->getTypeAllocSize(DstTy))
/freebsd-9.3-release/contrib/llvm/lib/Target/PowerPC/
H A DPPCFastISel.cpp915 Type *DstTy = I->getType(); local
916 if (!isTypeLegal(DstTy, DstVT))
1022 Type *DstTy = I->getType(); local
1023 if (!isTypeLegal(DstTy, DstVT))
/freebsd-9.3-release/contrib/llvm/tools/clang/lib/Sema/
H A DSemaChecking.cpp1837 QualType DstTy = TInfo->getType(); local
1844 if (!DstTy->isVectorType() && !DstTy->isDependentType())
1848 if (!SrcTy->isDependentType() && !DstTy->isDependentType()) {
1850 unsigned DstElts = DstTy->getAs<VectorType>()->getNumElements();
1857 return Owned(new (Context) ConvertVectorExpr(E, TInfo, DstTy, VK, OK,
3953 QualType DstTy = DstArg->getType(); local
3954 bool isKnownSizeArray = isConstantSizeArrayWithMoreThanOneElement(DstTy,
H A DSemaExpr.cpp4527 QualType DstTy = GetTypeFromParser(ParsedDestTy); local
4529 if (Context.getTypeSize(DstTy) != Context.getTypeSize(SrcTy))
4532 << DstTy
4535 return Owned(new (Context) AsTypeExpr(E, DstTy, VK, OK, BuiltinLoc,
/freebsd-9.3-release/contrib/llvm/lib/Transforms/Scalar/
H A DLoopStrengthReduce.cpp3516 Type *DstTy = Base.getType();
3517 if (!DstTy) return;
3518 DstTy = SE.getEffectiveSCEVType(DstTy);
3523 if (SrcTy != DstTy && TTI.isTruncateFree(SrcTy, DstTy)) {
/freebsd-9.3-release/contrib/llvm/lib/Analysis/
H A DInstructionSimplify.cpp2044 Type *DstTy = LI->getType(); local
2049 Q.TD->getTypeSizeInBits(SrcTy) == DstTy->getPrimitiveSizeInBits()) {
2080 // reextended to DstTy.
2082 Constant *RExt = ConstantExpr::getCast(CastInst::ZExt, Trunc, DstTy);
2139 // reextended to DstTy.
2141 Constant *RExt = ConstantExpr::getCast(CastInst::SExt, Trunc, DstTy);
/freebsd-9.3-release/contrib/llvm/lib/Transforms/Vectorize/
H A DLoopVectorize.cpp2513 IntegerType *DstTy = cast<IntegerType>(II.StartValue->getType()); local
2514 Value *CNI = Builder.CreateSExtOrTrunc(NormalizedIdx, DstTy,

Completed in 530 milliseconds