/macosx-10.10/llvmCore-3425.0.34/lib/ExecutionEngine/Interpreter/ |
H A D | Interpreter.h | 215 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 D | Execution.cpp | 944 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...] |
/macosx-10.10/llvmCore-3425.0.34/lib/Linker/ |
H A D | LinkModules.cpp | 61 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...] |
/macosx-10.10/llvmCore-3425.0.34/lib/VMCore/ |
H A D | Instructions.cpp | 2055 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 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 ///< 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 D | Constants.cpp | 1548 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...] |
/macosx-10.10/llvmCore-3425.0.34/include/llvm/ |
H A D | InstrTypes.h | 573 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);
|
/macosx-10.10/llvmCore-3425.0.34/lib/Transforms/InstCombine/ |
H A D | InstCombineCalls.cpp | 770 Type* DstTy = cast<PointerType>(CI->getType())->getElementType(); local 771 if (!SrcTy->isSized() || !DstTy->isSized()) 773 if (!TD || TD->getTypeAllocSize(SrcTy) != TD->getTypeAllocSize(DstTy))
|
H A D | InstCombineCasts.cpp | 231 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
|
/macosx-10.10/llvmCore-3425.0.34/lib/Transforms/Scalar/ |
H A D | LoopStrengthReduce.cpp | 3400 Type *DstTy = Base.getType(); 3401 if (!DstTy) return; 3402 DstTy = SE.getEffectiveSCEVType(DstTy); 3407 if (SrcTy != DstTy && TLI->isTruncateFree(SrcTy, DstTy)) {
|
/macosx-10.10/llvmCore-3425.0.34/lib/Analysis/ |
H A D | InstructionSimplify.cpp | 1875 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);
|
/macosx-10.10/llvmCore-3425.0.34/lib/Target/X86/ |
H A D | X86ISelLowering.cpp | 8089 EVT DstTy = Op.getValueType(); local 8091 if (!IsSigned && !isIntegerTypeFTOL(DstTy)) { 8092 assert(DstTy == MVT::i32 && "Unexpected FP_TO_UINT"); 8093 DstTy = MVT::i64; 8096 assert(DstTy.getSimpleVT() <= MVT::i64 && 8097 DstTy.getSimpleVT() >= MVT::i16 && 8101 if (DstTy == MVT::i32 && 8105 DstTy == MVT::i64 && 8112 unsigned MemSize = DstTy.getSizeInBits()/8; 8117 if (!IsSigned && isIntegerTypeFTOL(DstTy)) [all...] |