Home
last modified time | relevance | path

Searched refs:DstTy (Results 1 – 25 of 42) sorted by relevance

12

/external/swiftshader/third_party/LLVM/lib/ExecutionEngine/Interpreter/
DInterpreter.h210 GenericValue executeTruncInst(Value *SrcVal, Type *DstTy,
212 GenericValue executeSExtInst(Value *SrcVal, Type *DstTy,
214 GenericValue executeZExtInst(Value *SrcVal, Type *DstTy,
216 GenericValue executeFPTruncInst(Value *SrcVal, Type *DstTy,
218 GenericValue executeFPExtInst(Value *SrcVal, Type *DstTy,
220 GenericValue executeFPToUIInst(Value *SrcVal, Type *DstTy,
222 GenericValue executeFPToSIInst(Value *SrcVal, Type *DstTy,
224 GenericValue executeUIToFPInst(Value *SrcVal, Type *DstTy,
226 GenericValue executeSIToFPInst(Value *SrcVal, Type *DstTy,
228 GenericValue executePtrToIntInst(Value *SrcVal, Type *DstTy,
[all …]
DExecution.cpp935 GenericValue Interpreter::executeTruncInst(Value *SrcVal, Type *DstTy, in executeTruncInst() argument
938 IntegerType *DITy = cast<IntegerType>(DstTy); in executeTruncInst()
944 GenericValue Interpreter::executeSExtInst(Value *SrcVal, Type *DstTy, in executeSExtInst() argument
947 IntegerType *DITy = cast<IntegerType>(DstTy); in executeSExtInst()
953 GenericValue Interpreter::executeZExtInst(Value *SrcVal, Type *DstTy, in executeZExtInst() argument
956 IntegerType *DITy = cast<IntegerType>(DstTy); in executeZExtInst()
962 GenericValue Interpreter::executeFPTruncInst(Value *SrcVal, Type *DstTy, in executeFPTruncInst() argument
965 assert(SrcVal->getType()->isDoubleTy() && DstTy->isFloatTy() && in executeFPTruncInst()
971 GenericValue Interpreter::executeFPExtInst(Value *SrcVal, Type *DstTy, in executeFPExtInst() argument
974 assert(SrcVal->getType()->isFloatTy() && DstTy->isDoubleTy() && in executeFPExtInst()
[all …]
/external/llvm/lib/ExecutionEngine/Interpreter/
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 …]
DExecution.cpp1218 GenericValue Interpreter::executeTruncInst(Value *SrcVal, Type *DstTy, in executeTruncInst() argument
1223 Type *DstVecTy = DstTy->getScalarType(); in executeTruncInst()
1231 IntegerType *DITy = cast<IntegerType>(DstTy); in executeTruncInst()
1238 GenericValue Interpreter::executeSExtInst(Value *SrcVal, Type *DstTy, in executeSExtInst() argument
1243 Type *DstVecTy = DstTy->getScalarType(); in executeSExtInst()
1251 auto *DITy = cast<IntegerType>(DstTy); in executeSExtInst()
1258 GenericValue Interpreter::executeZExtInst(Value *SrcVal, Type *DstTy, in executeZExtInst() argument
1263 Type *DstVecTy = DstTy->getScalarType(); in executeZExtInst()
1272 auto *DITy = cast<IntegerType>(DstTy); in executeZExtInst()
1279 GenericValue Interpreter::executeFPTruncInst(Value *SrcVal, Type *DstTy, in executeFPTruncInst() argument
[all …]
/external/swiftshader/third_party/LLVM/lib/Linker/
DLinkModules.cpp49 void addTypeMapping(Type *DstTy, Type *SrcTy);
68 bool areTypesIsomorphic(Type *DstTy, Type *SrcTy);
72 void TypeMapTy::addTypeMapping(Type *DstTy, Type *SrcTy) { in addTypeMapping() argument
76 if (DstTy == SrcTy) { in addTypeMapping()
77 Entry = DstTy; in addTypeMapping()
83 if (!areTypesIsomorphic(DstTy, SrcTy)) { in addTypeMapping()
94 bool TypeMapTy::areTypesIsomorphic(Type *DstTy, Type *SrcTy) { in areTypesIsomorphic() argument
96 if (DstTy->getTypeID() != SrcTy->getTypeID()) return false; in areTypesIsomorphic()
101 return Entry == DstTy; in areTypesIsomorphic()
105 if (DstTy == SrcTy) { in areTypesIsomorphic()
[all …]
/external/llvm/lib/Linker/
DIRMover.cpp57 void addTypeMapping(Type *DstTy, Type *SrcTy);
77 bool areTypesIsomorphic(Type *DstTy, Type *SrcTy);
81 void TypeMapTy::addTypeMapping(Type *DstTy, Type *SrcTy) { in addTypeMapping() argument
87 if (!areTypesIsomorphic(DstTy, SrcTy)) { in addTypeMapping()
109 bool TypeMapTy::areTypesIsomorphic(Type *DstTy, Type *SrcTy) { in areTypesIsomorphic() argument
111 if (DstTy->getTypeID() != SrcTy->getTypeID()) in areTypesIsomorphic()
117 return Entry == DstTy; in areTypesIsomorphic()
121 if (DstTy == SrcTy) { in areTypesIsomorphic()
122 Entry = DstTy; in areTypesIsomorphic()
132 Entry = DstTy; in areTypesIsomorphic()
[all …]
/external/clang/lib/CodeGen/
DCGExprScalar.cpp141 Value *EmitConversionToBool(Value *Src, QualType DstTy);
147 llvm::Type *DstTy, SourceLocation Loc);
151 Value *EmitScalarConversion(Value *Src, QualType SrcTy, QualType DstTy,
154 Value *EmitScalarConversion(Value *Src, QualType SrcTy, QualType DstTy,
160 QualType SrcTy, QualType DstTy,
599 QualType DstType, llvm::Type *DstTy, SourceLocation Loc) { in EmitFloatConversionCheck() argument
636 if (isa<llvm::IntegerType>(DstTy)) { in EmitFloatConversionCheck()
756 llvm::Type *DstTy = ConvertType(DstType); in EmitScalarConversion() local
761 if (DstTy->isFloatingPointTy()) { in EmitScalarConversion()
764 CGF.CGM.getIntrinsic(llvm::Intrinsic::convert_from_fp16, DstTy), in EmitScalarConversion()
[all …]
DMicrosoftCXXABI.cpp646 const MemberPointerType *SrcTy, const MemberPointerType *DstTy,
659 const MemberPointerType *SrcTy, const MemberPointerType *DstTy,
2617 const MemberPointerType *DstTy = MPType->castAs<MemberPointerType>(); in EmitMemberPointer() local
2620 return EmitNullMemberPointer(DstTy); in EmitMemberPointer()
2630 C = EmitMemberDataPointer(DstTy, FieldOffset); in EmitMemberPointer()
2637 Ctx.getMemberPointerType(DstTy->getPointeeType(), SrcRecTy) in EmitMemberPointer()
2663 C = EmitMemberPointerConversion(SrcTy, DstTy, CK, DerivedToBasePath.begin(), in EmitMemberPointer()
2996 const MemberPointerType *DstTy = E->getType()->castAs<MemberPointerType>(); in EmitMemberPointerConversion() local
3005 CXXRecordDecl *DstRD = DstTy->getMostRecentCXXRecordDecl(); in EmitMemberPointerConversion()
3014 llvm::Constant *DstNull = EmitNullMemberPointer(DstTy); in EmitMemberPointerConversion()
[all …]
DCGCall.cpp1221 llvm::Type *DstTy = Dst.getType()->getElementType(); in CreateCoercedStore() local
1222 if (SrcTy == DstTy) { in CreateCoercedStore()
1229 if (llvm::StructType *DstSTy = dyn_cast<llvm::StructType>(DstTy)) { in CreateCoercedStore()
1231 DstTy = Dst.getType()->getElementType(); in CreateCoercedStore()
1237 (isa<llvm::IntegerType>(DstTy) || isa<llvm::PointerType>(DstTy))) { in CreateCoercedStore()
1238 Src = CoerceIntOrPtrToIntOrPtr(Src, DstTy, CGF); in CreateCoercedStore()
1243 uint64_t DstSize = CGF.CGM.getDataLayout().getTypeAllocSize(DstTy); in CreateCoercedStore()
2334 llvm::Type *DstTy = Ptr.getElementType(); in EmitFunctionProlog() local
2335 uint64_t DstSize = CGM.getDataLayout().getTypeAllocSize(DstTy); in EmitFunctionProlog()
/external/llvm/lib/IR/
DInstructions.cpp2349 Type *DstTy = getType(); in isLosslessCast() local
2350 if (SrcTy == DstTy) in isLosslessCast()
2355 return DstTy->isPointerTy(); in isLosslessCast()
2424 Type *SrcTy, Type *MidTy, Type *DstTy, Type *SrcIntPtrTy, Type *MidIntPtrTy, in isEliminableCastPair() argument
2489 (IsSecondBitcast && isa<VectorType>(MidTy) != isa<VectorType>(DstTy))) in isEliminableCastPair()
2509 if (!SrcTy->isVectorTy() && DstTy->isIntegerTy()) in isEliminableCastPair()
2515 if (DstTy->isFloatingPointTy()) in isEliminableCastPair()
2532 if (SrcTy->getPointerAddressSpace() != DstTy->getPointerAddressSpace()) in isEliminableCastPair()
2556 unsigned DstSize = DstTy->getScalarSizeInBits(); in isEliminableCastPair()
2569 if (SrcTy == DstTy) in isEliminableCastPair()
[all …]
DConstants.cpp1674 Constant *ConstantExpr::getPtrToInt(Constant *C, Type *DstTy, in getPtrToInt() argument
1678 assert(DstTy->getScalarType()->isIntegerTy() && in getPtrToInt()
1680 assert(isa<VectorType>(C->getType()) == isa<VectorType>(DstTy)); in getPtrToInt()
1682 assert(C->getType()->getVectorNumElements()==DstTy->getVectorNumElements()&& in getPtrToInt()
1684 return getFoldedCast(Instruction::PtrToInt, C, DstTy, OnlyIfReduced); in getPtrToInt()
1687 Constant *ConstantExpr::getIntToPtr(Constant *C, Type *DstTy, in getIntToPtr() argument
1691 assert(DstTy->getScalarType()->isPointerTy() && in getIntToPtr()
1693 assert(isa<VectorType>(C->getType()) == isa<VectorType>(DstTy)); in getIntToPtr()
1695 assert(C->getType()->getVectorNumElements()==DstTy->getVectorNumElements()&& in getIntToPtr()
1697 return getFoldedCast(Instruction::IntToPtr, C, DstTy, OnlyIfReduced); in getIntToPtr()
[all …]
DAutoUpgrade.cpp699 VectorType *DstTy = cast<VectorType>(CI->getType()); in UpgradeIntrinsicCall() local
702 unsigned NumDstElts = DstTy->getNumElements(); in UpgradeIntrinsicCall()
712 Rep = Builder.CreateSIToFP(Rep, DstTy, "cvtdq2pd"); in UpgradeIntrinsicCall()
714 Rep = Builder.CreateFPExt(Rep, DstTy, "cvtps2pd"); in UpgradeIntrinsicCall()
719 VectorType *DstTy = cast<VectorType>(CI->getType()); in UpgradeIntrinsicCall() local
720 Rep = Builder.CreateFPToSI(Src, DstTy, "cvtt"); in UpgradeIntrinsicCall()
915 VectorType *DstTy = cast<VectorType>(CI->getType()); in UpgradeIntrinsicCall() local
916 unsigned NumDstElts = DstTy->getNumElements(); in UpgradeIntrinsicCall()
927 Rep = DoSext ? Builder.CreateSExt(SV, DstTy) in UpgradeIntrinsicCall()
928 : Builder.CreateZExt(SV, DstTy); in UpgradeIntrinsicCall()
DConstantFold.cpp44 static Constant *BitCastConstantVector(Constant *CV, VectorType *DstTy) { in BitCastConstantVector() argument
46 if (CV->isAllOnesValue()) return Constant::getAllOnesValue(DstTy); in BitCastConstantVector()
47 if (CV->isNullValue()) return Constant::getNullValue(DstTy); in BitCastConstantVector()
52 unsigned NumElts = DstTy->getNumElements(); in BitCastConstantVector()
56 Type *DstEltTy = DstTy->getElementType(); in BitCastConstantVector()
78 Type *DstTy ///< destination type of the first cast in foldConstantCastPair() argument
81 assert(DstTy && DstTy->isFirstClassType() && "Invalid cast destination type"); in foldConstantCastPair()
93 IntegerType *FakeIntPtrTy = Type::getInt64Ty(DstTy->getContext()); in foldConstantCastPair()
96 return CastInst::isEliminableCastPair(firstOp, secondOp, SrcTy, MidTy, DstTy, in foldConstantCastPair()
/external/spirv-llvm/lib/SPIRV/
DOCLUtil.cpp551 Type *DstTy = BIC->getDestTy(); in getSrcAndDstElememntTypeName() local
554 if (DstTy->isPointerTy()) in getSrcAndDstElememntTypeName()
555 DstTy = DstTy->getPointerElementType(); in getSrcAndDstElememntTypeName()
557 auto DstST = dyn_cast<StructType>(DstTy); in getSrcAndDstElememntTypeName()
/external/swiftshader/third_party/LLVM/lib/VMCore/
DInstructions.cpp2022 Type* DstTy = getType(); in isLosslessCast() local
2023 if (SrcTy == DstTy) in isLosslessCast()
2028 return DstTy->isPointerTy(); in isLosslessCast()
2083 Type *SrcTy, Type *MidTy, Type *DstTy, Type *IntPtrTy) { in isEliminableCastPair() argument
2139 bool chainedBitcast = (SrcTy == DstTy && isFirstBitcast && isSecondBitcast); in isEliminableCastPair()
2143 (isSecondBitcast && isa<VectorType>(MidTy) != isa<VectorType>(DstTy))) in isEliminableCastPair()
2163 if (!SrcTy->isVectorTy() && DstTy->isIntegerTy()) in isEliminableCastPair()
2169 if (DstTy->isFloatingPointTy()) in isEliminableCastPair()
2199 unsigned DstSize = DstTy->getScalarSizeInBits(); in isEliminableCastPair()
2211 if (SrcTy == DstTy) in isEliminableCastPair()
[all …]
DConstants.cpp1418 Constant *ConstantExpr::getPtrToInt(Constant *C, Type *DstTy) { in getPtrToInt() argument
1420 assert(DstTy->isIntegerTy() && "PtrToInt destination must be integral"); in getPtrToInt()
1421 return getFoldedCast(Instruction::PtrToInt, C, DstTy); in getPtrToInt()
1424 Constant *ConstantExpr::getIntToPtr(Constant *C, Type *DstTy) { in getIntToPtr() argument
1426 assert(DstTy->isPointerTy() && "IntToPtr destination must be a pointer"); in getIntToPtr()
1427 return getFoldedCast(Instruction::IntToPtr, C, DstTy); in getIntToPtr()
1430 Constant *ConstantExpr::getBitCast(Constant *C, Type *DstTy) { in getBitCast() argument
1431 assert(CastInst::castIsValid(Instruction::BitCast, C, DstTy) && in getBitCast()
1436 if (C->getType() == DstTy) return C; in getBitCast()
1438 return getFoldedCast(Instruction::BitCast, C, DstTy); in getBitCast()
DConstantFold.cpp45 VectorType *DstTy) { in BitCastConstantVector() argument
47 if (CV->isAllOnesValue()) return Constant::getAllOnesValue(DstTy); in BitCastConstantVector()
48 if (CV->isNullValue()) return Constant::getNullValue(DstTy); in BitCastConstantVector()
53 unsigned NumElts = DstTy->getNumElements(); in BitCastConstantVector()
66 Type *DstEltTy = DstTy->getElementType(); in BitCastConstantVector()
81 Type *DstTy ///< desintation type of the first cast in foldConstantCastPair() argument
84 assert(DstTy && DstTy->isFirstClassType() && "Invalid cast destination type"); in foldConstantCastPair()
94 return CastInst::isEliminableCastPair(firstOp, secondOp, SrcTy, MidTy, DstTy, in foldConstantCastPair()
95 Type::getInt64Ty(DstTy->getContext())); in foldConstantCastPair()
/external/llvm/lib/Target/ARM/
DARMTargetTransformInfo.cpp96 EVT DstTy = TLI->getValueType(DL, Dst); in getCastInstrCost() local
98 if (!SrcTy.isSimple() || !DstTy.isSimple()) in getCastInstrCost()
181 DstTy.getSimpleVT(), in getCastInstrCost()
211 DstTy.getSimpleVT(), in getCastInstrCost()
242 ISD, DstTy.getSimpleVT(), in getCastInstrCost()
261 DstTy.getSimpleVT(), in getCastInstrCost()
/external/llvm/lib/Target/NVPTX/
DNVPTXISelLowering.h460 bool isTruncateFree(Type *SrcTy, Type *DstTy) const override { in isTruncateFree() argument
462 if (!SrcTy->isIntegerTy() || !DstTy->isIntegerTy()) in isTruncateFree()
465 DstTy->getPrimitiveSizeInBits() == 32; in isTruncateFree()
/external/swiftshader/third_party/LLVM/include/llvm/
DInstrTypes.h572 Type *DstTy, ///< DstTy of cast
592 Type *DstTy, ///< DstTy of 2nd cast
610 static bool castIsValid(Instruction::CastOps op, Value *S, Type *DstTy);
/external/llvm/lib/Target/AArch64/
DAArch64TargetTransformInfo.cpp184 EVT DstTy = TLI->getValueType(DL, Dst); in getCastInstrCost() local
186 if (!SrcTy.isSimple() || !DstTy.isSimple()) in getCastInstrCost()
287 DstTy.getSimpleVT(), in getCastInstrCost()
/external/swiftshader/third_party/LLVM/lib/Target/CBackend/
DCBackend.cpp212 void printCast(unsigned opcode, Type *SrcTy, Type *DstTy);
687 void CWriter::printCast(unsigned opc, Type *SrcTy, Type *DstTy) { in printCast() argument
698 printType(Out, DstTy); in printCast()
705 printSimpleType(Out, DstTy, false); in printCast()
711 printSimpleType(Out, DstTy, true); in printCast()
2229 Type *DstTy = I.getType(); in isFPIntBitCast() local
2230 return (SrcTy->isFloatingPointTy() && DstTy->isIntegerTy()) || in isFPIntBitCast()
2231 (DstTy->isFloatingPointTy() && SrcTy->isIntegerTy()); in isFPIntBitCast()
2685 Type *DstTy = I.getType(); in visitCastInst() local
2700 printCast(I.getOpcode(), SrcTy, DstTy); in visitCastInst()
[all …]
/external/llvm/lib/Target/X86/
DX86TargetTransformInfo.cpp828 EVT DstTy = TLI->getValueType(DL, Dst); in getCastInstrCost() local
831 if (!SrcTy.isSimple() || !DstTy.isSimple()) in getCastInstrCost()
836 DstTy.getSimpleVT(), in getCastInstrCost()
842 DstTy.getSimpleVT(), in getCastInstrCost()
848 DstTy.getSimpleVT(), in getCastInstrCost()
855 DstTy.getSimpleVT(), in getCastInstrCost()
862 DstTy.getSimpleVT(), in getCastInstrCost()
869 DstTy.getSimpleVT(), in getCastInstrCost()
/external/llvm/lib/Analysis/
DDependenceAnalysis.cpp788 IntegerType *DstTy = dyn_cast<IntegerType>(Dst->getType()); in unifySubscriptType() local
789 if (SrcTy == nullptr || DstTy == nullptr) { in unifySubscriptType()
790 assert(SrcTy == DstTy && "This function only unify integer types and " in unifySubscriptType()
799 if (DstTy->getBitWidth() > widestWidthSeen) { in unifySubscriptType()
800 widestWidthSeen = DstTy->getBitWidth(); in unifySubscriptType()
801 widestType = DstTy; in unifySubscriptType()
813 IntegerType *DstTy = dyn_cast<IntegerType>(Dst->getType()); in unifySubscriptType() local
814 if (SrcTy == nullptr || DstTy == nullptr) { in unifySubscriptType()
815 assert(SrcTy == DstTy && "This function only unify integer types and " in unifySubscriptType()
823 if (DstTy->getBitWidth() < widestWidthSeen) { in unifySubscriptType()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineCasts.cpp236 Type *DstTy, ///< Target type for the second cast in isEliminableCastPair() argument
249 DstTy->isPtrOrPtrVectorTy() ? DL.getIntPtrType(DstTy) : nullptr; in isEliminableCastPair()
251 DstTy, SrcIntPtrTy, MidIntPtrTy, in isEliminableCastPair()
257 (Res == Instruction::PtrToInt && DstTy != SrcIntPtrTy)) in isEliminableCastPair()

12