Home
last modified time | relevance | path

Searched refs:DestTy (Results 1 – 25 of 39) sorted by relevance

12

/external/llvm/include/llvm/Support/
DTargetFolder.h156 Type *DestTy) const { in CreateCast() argument
157 if (C->getType() == DestTy) in CreateCast()
159 return Fold(ConstantExpr::getCast(Op, C, DestTy)); in CreateCast()
161 Constant *CreateIntCast(Constant *C, Type *DestTy, in CreateIntCast() argument
163 if (C->getType() == DestTy) in CreateIntCast()
165 return Fold(ConstantExpr::getIntegerCast(C, DestTy, isSigned)); in CreateIntCast()
167 Constant *CreatePointerCast(Constant *C, Type *DestTy) const { in CreatePointerCast() argument
168 return ConstantExpr::getPointerCast(C, DestTy); in CreatePointerCast()
170 Constant *CreateBitCast(Constant *C, Type *DestTy) const { in CreateBitCast() argument
171 return CreateCast(Instruction::BitCast, C, DestTy); in CreateBitCast()
[all …]
DConstantFolder.h144 Type *DestTy) const { in CreateCast() argument
145 return ConstantExpr::getCast(Op, C, DestTy); in CreateCast()
147 Constant *CreatePointerCast(Constant *C, Type *DestTy) const { in CreatePointerCast() argument
148 return ConstantExpr::getPointerCast(C, DestTy); in CreatePointerCast()
150 Constant *CreateIntCast(Constant *C, Type *DestTy, in CreateIntCast() argument
152 return ConstantExpr::getIntegerCast(C, DestTy, isSigned); in CreateIntCast()
154 Constant *CreateFPCast(Constant *C, Type *DestTy) const { in CreateFPCast() argument
155 return ConstantExpr::getFPCast(C, DestTy); in CreateFPCast()
158 Constant *CreateBitCast(Constant *C, Type *DestTy) const { in CreateBitCast() argument
159 return CreateCast(Instruction::BitCast, C, DestTy); in CreateBitCast()
[all …]
DNoFolder.h203 Type *DestTy) const { in CreateCast() argument
204 return CastInst::Create(Op, C, DestTy); in CreateCast()
206 Instruction *CreatePointerCast(Constant *C, Type *DestTy) const { in CreatePointerCast() argument
207 return CastInst::CreatePointerCast(C, DestTy); in CreatePointerCast()
209 Instruction *CreateIntCast(Constant *C, Type *DestTy, in CreateIntCast() argument
211 return CastInst::CreateIntegerCast(C, DestTy, isSigned); in CreateIntCast()
213 Instruction *CreateFPCast(Constant *C, Type *DestTy) const { in CreateFPCast() argument
214 return CastInst::CreateFPCast(C, DestTy); in CreateFPCast()
217 Instruction *CreateBitCast(Constant *C, Type *DestTy) const { in CreateBitCast() argument
218 return CreateCast(Instruction::BitCast, C, DestTy); in CreateBitCast()
[all …]
DIRBuilder.h913 Value *CreateTrunc(Value *V, Type *DestTy, const Twine &Name = "") {
914 return CreateCast(Instruction::Trunc, V, DestTy, Name);
916 Value *CreateZExt(Value *V, Type *DestTy, const Twine &Name = "") {
917 return CreateCast(Instruction::ZExt, V, DestTy, Name);
919 Value *CreateSExt(Value *V, Type *DestTy, const Twine &Name = "") {
920 return CreateCast(Instruction::SExt, V, DestTy, Name);
922 Value *CreateFPToUI(Value *V, Type *DestTy, const Twine &Name = ""){
923 return CreateCast(Instruction::FPToUI, V, DestTy, Name);
925 Value *CreateFPToSI(Value *V, Type *DestTy, const Twine &Name = ""){
926 return CreateCast(Instruction::FPToSI, V, DestTy, Name);
[all …]
/external/llvm/lib/Transforms/InstCombine/
DInstCombineCasts.cpp438 Type *DestTy = CI.getType(), *SrcTy = Src->getType(); in visitTrunc() local
444 if ((DestTy->isVectorTy() || ShouldChangeType(SrcTy, DestTy)) && in visitTrunc()
445 CanEvaluateTruncated(Src, DestTy)) { in visitTrunc()
451 Value *Res = EvaluateInDifferentType(Src, DestTy, false); in visitTrunc()
452 assert(Res->getType() == DestTy); in visitTrunc()
457 if (DestTy->getScalarSizeInBits() == 1) { in visitTrunc()
761 Type *SrcTy = Src->getType(), *DestTy = CI.getType(); in visitZExt() local
768 if ((DestTy->isVectorTy() || ShouldChangeType(SrcTy, DestTy)) && in visitZExt()
769 CanEvaluateZExtd(Src, DestTy, BitsToClear)) { in visitZExt()
776 Value *Res = EvaluateInDifferentType(Src, DestTy, false); in visitZExt()
[all …]
DInstCombineLoadStoreAlloca.cpp95 PointerType *DestTy = cast<PointerType>(CI->getType()); in InstCombineLoadCast() local
96 Type *DestPTy = DestTy->getElementType(); in InstCombineLoadCast()
100 if (DestTy->getAddressSpace() != SrcTy->getAddressSpace()) in InstCombineLoadCast()
/external/llvm/lib/VMCore/
DConstantFold.cpp98 static Constant *FoldBitCast(Constant *V, Type *DestTy) { in FoldBitCast() argument
100 if (SrcTy == DestTy) in FoldBitCast()
106 if (PointerType *DPTy = dyn_cast<PointerType>(DestTy)) in FoldBitCast()
136 if (VectorType *DestPTy = dyn_cast<VectorType>(DestTy)) { in FoldBitCast()
143 return Constant::getNullValue(DestTy); in FoldBitCast()
159 return ConstantPointerNull::get(cast<PointerType>(DestTy)); in FoldBitCast()
163 if (DestTy->isIntegerTy()) in FoldBitCast()
168 if (DestTy->isFloatingPointTy()) in FoldBitCast()
169 return ConstantFP::get(DestTy->getContext(), in FoldBitCast()
171 !DestTy->isPPC_FP128Ty())); in FoldBitCast()
[all …]
DVerifier.cpp840 Type *DestTy = I.getType(); in visitTruncInst() local
844 unsigned DestBitSize = DestTy->getScalarSizeInBits(); in visitTruncInst()
847 Assert1(DestTy->isIntOrIntVectorTy(), "Trunc only produces integer", &I); in visitTruncInst()
848 Assert1(SrcTy->isVectorTy() == DestTy->isVectorTy(), in visitTruncInst()
858 Type *DestTy = I.getType(); in visitZExtInst() local
862 Assert1(DestTy->isIntOrIntVectorTy(), "ZExt only produces an integer", &I); in visitZExtInst()
863 Assert1(SrcTy->isVectorTy() == DestTy->isVectorTy(), in visitZExtInst()
866 unsigned DestBitSize = DestTy->getScalarSizeInBits(); in visitZExtInst()
876 Type *DestTy = I.getType(); in visitSExtInst() local
880 unsigned DestBitSize = DestTy->getScalarSizeInBits(); in visitSExtInst()
[all …]
DCore.cpp1940 LLVMTypeRef DestTy, const char *Name) { in LLVMBuildTrunc() argument
1941 return wrap(unwrap(B)->CreateTrunc(unwrap(Val), unwrap(DestTy), Name)); in LLVMBuildTrunc()
1945 LLVMTypeRef DestTy, const char *Name) { in LLVMBuildZExt() argument
1946 return wrap(unwrap(B)->CreateZExt(unwrap(Val), unwrap(DestTy), Name)); in LLVMBuildZExt()
1950 LLVMTypeRef DestTy, const char *Name) { in LLVMBuildSExt() argument
1951 return wrap(unwrap(B)->CreateSExt(unwrap(Val), unwrap(DestTy), Name)); in LLVMBuildSExt()
1955 LLVMTypeRef DestTy, const char *Name) { in LLVMBuildFPToUI() argument
1956 return wrap(unwrap(B)->CreateFPToUI(unwrap(Val), unwrap(DestTy), Name)); in LLVMBuildFPToUI()
1960 LLVMTypeRef DestTy, const char *Name) { in LLVMBuildFPToSI() argument
1961 return wrap(unwrap(B)->CreateFPToSI(unwrap(Val), unwrap(DestTy), Name)); in LLVMBuildFPToSI()
[all …]
DConstantsContext.h162 Type *DestTy) in ExtractValueConstantExpr() argument
163 : ConstantExpr(DestTy, Instruction::ExtractValue, &Op<0>(), 1), in ExtractValueConstantExpr()
187 Type *DestTy) in InsertValueConstantExpr() argument
188 : ConstantExpr(DestTy, Instruction::InsertValue, &Op<0>(), 2), in InsertValueConstantExpr()
206 Type *DestTy);
210 Type *DestTy, in Create() argument
213 new(IdxList.size() + 1) GetElementPtrConstantExpr(C, IdxList, DestTy); in Create()
DInstructions.cpp1767 Type *DestTy, in isNoopCast() argument
1786 DestTy->getScalarSizeInBits(); in isNoopCast()
2145 bool CastInst::isCastable(Type *SrcTy, Type *DestTy) { in isCastable() argument
2146 if (!SrcTy->isFirstClassType() || !DestTy->isFirstClassType()) in isCastable()
2149 if (SrcTy == DestTy) in isCastable()
2153 if (VectorType *DestVecTy = dyn_cast<VectorType>(DestTy)) in isCastable()
2157 DestTy = DestVecTy->getElementType(); in isCastable()
2162 unsigned DestBits = DestTy->getPrimitiveSizeInBits(); // 0 for ptr in isCastable()
2165 if (DestTy->isIntegerTy()) { // Casting to integral in isCastable()
2175 } else if (DestTy->isFloatingPointTy()) { // Casting to floating pt in isCastable()
[all …]
DConstantFold.h33 Type *DestTy ///< The destination type
/external/llvm/utils/TableGen/
DCallingConvEmitter.cpp179 Record *DestTy = Action->getValueAsDef("DestTy"); in EmitAction() local
180 O << IndentStr << "LocVT = " << getEnumName(getValueType(DestTy)) <<";\n"; in EmitAction()
188 Record *DestTy = Action->getValueAsDef("DestTy"); in EmitAction() local
189 O << IndentStr << "LocVT = " << getEnumName(getValueType(DestTy)) <<";\n"; in EmitAction()
192 Record *DestTy = Action->getValueAsDef("DestTy"); in EmitAction() local
193 O << IndentStr << "LocVT = " << getEnumName(getValueType(DestTy)) <<";\n"; in EmitAction()
/external/llvm/include/llvm-c/
DCore.h919 LLVMTypeRef DestTy, const char *Name);
921 LLVMTypeRef DestTy, const char *Name);
923 LLVMTypeRef DestTy, const char *Name);
925 LLVMTypeRef DestTy, const char *Name);
927 LLVMTypeRef DestTy, const char *Name);
929 LLVMTypeRef DestTy, const char *Name);
931 LLVMTypeRef DestTy, const char *Name);
933 LLVMTypeRef DestTy, const char *Name);
935 LLVMTypeRef DestTy, const char *Name);
937 LLVMTypeRef DestTy, const char *Name);
[all …]
/external/llvm/lib/Analysis/
DConstantFolding.cpp46 static Constant *FoldBitCast(Constant *C, Type *DestTy, in FoldBitCast() argument
50 VectorType *DestVTy = dyn_cast<VectorType>(DestTy); in FoldBitCast()
52 return ConstantExpr::getBitCast(C, DestTy); in FoldBitCast()
58 return FoldBitCast(ConstantVector::get(Ops), DestTy, TD); in FoldBitCast()
64 return ConstantExpr::getBitCast(C, DestTy); in FoldBitCast()
70 return ConstantExpr::getBitCast(C, DestTy); in FoldBitCast()
92 if (!C) return ConstantExpr::getBitCast(C, DestTy); in FoldBitCast()
95 return ConstantExpr::getBitCast(C, DestTy); in FoldBitCast()
131 return ConstantExpr::getBitCast(C, DestTy); in FoldBitCast()
155 return ConstantExpr::getBitCast(C, DestTy); in FoldBitCast()
[all …]
/external/clang/lib/CodeGen/
DCGExprComplex.cpp142 ComplexPairTy EmitCast(CastExpr::CastKind CK, Expr *Op, QualType DestTy);
357 QualType DestTy) { in EmitCast() argument
375 CGF.ConvertType(CGF.getContext().getPointerType(DestTy))); in EmitCast()
377 return EmitLoadOfComplex(V, DestTy.isVolatileQualified()); in EmitCast()
422 DestTy = DestTy->getAs<ComplexType>()->getElementType(); in EmitCast()
423 Elt = CGF.EmitScalarConversion(Elt, Op->getType(), DestTy); in EmitCast()
433 return EmitComplexToComplexCast(Visit(Op), Op->getType(), DestTy); in EmitCast()
DCGExprCXX.cpp1555 QualType SrcTy, QualType DestTy, in EmitDynamicCastCall() argument
1559 llvm::Type *DestLTy = CGF.ConvertType(DestTy); in EmitDynamicCastCall()
1561 if (const PointerType *PTy = DestTy->getAs<PointerType>()) { in EmitDynamicCastCall()
1586 if (const PointerType *DestPTy = DestTy->getAs<PointerType>()) { in EmitDynamicCastCall()
1591 DestRecordTy = DestTy->castAs<ReferenceType>()->getPointeeType(); in EmitDynamicCastCall()
1613 if (DestTy->isReferenceType()) { in EmitDynamicCastCall()
1628 QualType DestTy) { in EmitDynamicCastToNull() argument
1629 llvm::Type *DestLTy = CGF.ConvertType(DestTy); in EmitDynamicCastToNull()
1630 if (DestTy->isPointerType()) in EmitDynamicCastToNull()
1643 QualType DestTy = DCE->getTypeAsWritten(); in EmitDynamicCast() local
[all …]
DCGExprConstant.cpp954 llvm::Type *DestTy = getTypes().ConvertTypeForMem(DestType); in EmitConstantExpr() local
973 if (isa<llvm::PointerType>(DestTy)) in EmitConstantExpr()
974 return llvm::ConstantExpr::getBitCast(C, DestTy); in EmitConstantExpr()
976 return llvm::ConstantExpr::getPtrToInt(C, DestTy); in EmitConstantExpr()
982 if (isa<llvm::PointerType>(DestTy)) in EmitConstantExpr()
983 return llvm::ConstantExpr::getIntToPtr(C, DestTy); in EmitConstantExpr()
986 if (C->getType() != DestTy) in EmitConstantExpr()
987 return llvm::ConstantExpr::getTrunc(C, DestTy); in EmitConstantExpr()
DCGExprScalar.cpp1007 QualType DestTy = CE->getType(); in VisitCastExpr() local
1010 if (!DestTy->isVoidType()) in VisitCastExpr()
1023 ConvertType(CGF.getContext().getPointerType(DestTy))); in VisitCastExpr()
1024 return EmitLoadOfLValue(CGF.MakeAddrLValue(V, DestTy)); in VisitCastExpr()
1031 return Builder.CreateBitCast(Src, ConvertType(DestTy)); in VisitCastExpr()
1039 DestTy->getCXXRecordDeclForPointerType(); in VisitCastExpr()
1090 cast<llvm::PointerType>(ConvertType(DestTy))); in VisitCastExpr()
1135 assert(CGF.getContext().hasSameUnqualifiedType(E->getType(), DestTy)); in VisitCastExpr()
1143 assert(CGF.getContext().hasSameUnqualifiedType(E->getType(), DestTy)); in VisitCastExpr()
1157 return Builder.CreateIntToPtr(IntResult, ConvertType(DestTy)); in VisitCastExpr()
[all …]
DItaniumCXXABI.cpp349 const MemberPointerType *DestTy = E->getType()->getAs<MemberPointerType>(); in EmitMemberPointerConversion() local
352 const CXXRecordDecl *DestDecl = DestTy->getClass()->getAsCXXRecordDecl(); in EmitMemberPointerConversion()
406 const MemberPointerType *DestTy = in EmitMemberPointerConversion() local
416 DerivedDecl = DestTy->getClass()->getAsCXXRecordDecl(); in EmitMemberPointerConversion()
/external/llvm/include/llvm/Target/
DTargetCallingConv.td110 ValueType DestTy = destTy;
116 ValueType DestTy = destTy;
122 ValueType DestTy = destTy;
/external/llvm/include/llvm/Analysis/
DConstantFolding.h52 Constant *ConstantFoldInstOperands(unsigned Opcode, Type *DestTy,
/external/clang/lib/Sema/
DSemaCXXCast.cpp1380 QualType SrcTy, DestTy; in CheckCompatibleReinterpretCast() local
1386 DestTy = DestType->getPointeeType(); in CheckCompatibleReinterpretCast()
1392 DestTy = DestType->getPointeeType(); in CheckCompatibleReinterpretCast()
1396 if (Context.hasSameUnqualifiedType(DestTy, SrcTy)) { in CheckCompatibleReinterpretCast()
1400 if (DestTy->isAnyCharacterType() || DestTy->isVoidType() || in CheckCompatibleReinterpretCast()
1405 if (SrcTy->getAs<TagType>() || DestTy->getAs<TagType>()) { in CheckCompatibleReinterpretCast()
1410 if ((SrcTy->isUnsignedIntegerType() && DestTy->isSignedIntegerType()) || in CheckCompatibleReinterpretCast()
1411 (SrcTy->isSignedIntegerType() && DestTy->isUnsignedIntegerType())) { in CheckCompatibleReinterpretCast()
1412 if (Context.getTypeSize(DestTy) == Context.getTypeSize(SrcTy)) { in CheckCompatibleReinterpretCast()
/external/llvm/lib/ExecutionEngine/
DExecutionEngine.cpp654 Type* DestTy = CE->getType(); in getConstantValue() local
658 assert(DestTy->isFloatingPointTy() && "invalid bitcast"); in getConstantValue()
659 if (DestTy->isFloatTy()) in getConstantValue()
661 else if (DestTy->isDoubleTy()) in getConstantValue()
665 assert(DestTy->isIntegerTy(32) && "Invalid bitcast"); in getConstantValue()
669 assert(DestTy->isIntegerTy(64) && "Invalid bitcast"); in getConstantValue()
673 assert(DestTy->isPointerTy() && "Invalid bitcast"); in getConstantValue()
/external/llvm/lib/AsmParser/
DLLParser.cpp2059 Type *DestTy = 0; in ParseValID() local
2065 ParseType(DestTy) || in ParseValID()
2068 if (!CastInst::castIsValid((Instruction::CastOps)Opc, SrcVal, DestTy)) in ParseValID()
2071 getTypeString(DestTy) + "'"); in ParseValID()
2073 SrcVal, DestTy); in ParseValID()
3323 Type *DestTy = 0; in ParseCast() local
3326 ParseType(DestTy)) in ParseCast()
3329 if (!CastInst::castIsValid((Instruction::CastOps)Opc, Op, DestTy)) { in ParseCast()
3330 CastInst::castIsValid((Instruction::CastOps)Opc, Op, DestTy); in ParseCast()
3333 getTypeString(DestTy) + "'"); in ParseCast()
[all …]

12