Home
last modified time | relevance | path

Searched refs:SrcType (Results 1 – 19 of 19) sorted by relevance

/freebsd-11-stable/contrib/llvm-project/clang/lib/Sema/
HDSemaCast.cpp135 void checkAddressSpaceCast(QualType SrcType, QualType DestType);
189 static TryCastResult TryStaticPointerDowncast(Sema &Self, QualType SrcType,
195 static TryCastResult TryStaticDowncast(Sema &Self, CanQualType SrcType,
203 QualType SrcType,
592 CastsAwayConstness(Sema &Self, QualType SrcType, QualType DestType, in CastsAwayConstness() argument
603 assert((SrcType->isAnyPointerType() || SrcType->isMemberPointerType() || in CastsAwayConstness()
604 SrcType->isBlockPointerType()) && in CastsAwayConstness()
611 QualType UnwrappedSrcType = Self.Context.getCanonicalType(SrcType), in CastsAwayConstness()
759 QualType SrcType = Self.Context.getCanonicalType(OrigSrcType); in CheckDynamicCast() local
762 if (const PointerType *SrcPointer = SrcType->getAs<PointerType>()) { in CheckDynamicCast()
[all …]
HDSemaExprObjC.cpp4040 QualType SrcType = castExpr->getType(); in CheckObjCBridgeRelatedCast() local
4044 SrcType = PDecl->getType(); in CheckObjCBridgeRelatedCast()
4048 SrcType = Getter->getReturnType(); in CheckObjCBridgeRelatedCast()
4052 ARCConversionTypeClass srcExprACTC = classifyTypeForARCConversion(SrcType); in CheckObjCBridgeRelatedCast()
4056 CheckObjCBridgeRelatedConversions(castExpr->getBeginLoc(), castType, SrcType, in CheckObjCBridgeRelatedCast()
4078 QualType DestType, QualType SrcType, in checkObjCBridgeRelatedComponents() argument
4084 QualType T = CfToNs ? SrcType : DestType; in checkObjCBridgeRelatedComponents()
4101 << SrcType << DestType; in checkObjCBridgeRelatedComponents()
4112 << SrcType << DestType; in checkObjCBridgeRelatedComponents()
4127 << SrcType << DestType << Sel << false; in checkObjCBridgeRelatedComponents()
[all …]
HDSema.cpp488 QualType SrcType, in diagnoseNullableToNonnullConversion() argument
490 Optional<NullabilityKind> ExprNullability = SrcType->getNullability(Context); in diagnoseNullableToNonnullConversion()
498 Diag(Loc, diag::warn_nullability_lost) << SrcType << DstType; in diagnoseNullableToNonnullConversion()
HDSemaExpr.cpp12909 QualType SrcType) { in needsConversionOfHalfVec() argument
12912 isVector(SrcType, Ctx.HalfTy); in needsConversionOfHalfVec()
14764 QualType DstType, QualType SrcType, in DiagnoseAssignmentResult() argument
14783 DiagnoseAssignmentEnum(DstType, SrcType, SrcExpr); in DiagnoseAssignmentResult()
14788 ConvHints.tryToFixConversion(SrcExpr, SrcType, DstType, *this); in DiagnoseAssignmentResult()
14793 ConvHints.tryToFixConversion(SrcExpr, SrcType, DstType, *this); in DiagnoseAssignmentResult()
14799 else if (SrcType->isFunctionPointerType() && in DiagnoseAssignmentResult()
14806 SrcType->isObjCObjectPointerType(); in DiagnoseAssignmentResult()
14808 ConvHints.tryToFixConversion(SrcExpr, SrcType, DstType, *this); in DiagnoseAssignmentResult()
14811 SrcType = SrcType.getUnqualifiedType(); in DiagnoseAssignmentResult()
[all …]
HDSemaStmt.cpp1260 Sema::DiagnoseAssignmentEnum(QualType DstType, QualType SrcType, in DiagnoseAssignmentEnum() argument
1266 if (!Context.hasSameUnqualifiedType(SrcType, DstType) && in DiagnoseAssignmentEnum()
1267 SrcType->isIntegerType()) { in DiagnoseAssignmentEnum()
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/
HDMachineIRBuilder.h129 enum class SrcType { Ty_Reg, Ty_MIB, Ty_Predicate, Ty_Imm }; enum
130 SrcOp(Register R) : Reg(R), Ty(SrcType::Ty_Reg) {} in SrcOp()
131 SrcOp(const MachineOperand &Op) : Reg(Op.getReg()), Ty(SrcType::Ty_Reg) {} in SrcOp()
132 SrcOp(const MachineInstrBuilder &MIB) : SrcMIB(MIB), Ty(SrcType::Ty_MIB) {} in SrcOp()
133 SrcOp(const CmpInst::Predicate P) : Pred(P), Ty(SrcType::Ty_Predicate) {} in SrcOp()
139 SrcOp(uint64_t V) : Imm(V), Ty(SrcType::Ty_Imm) {} in SrcOp()
140 SrcOp(int64_t V) : Imm(V), Ty(SrcType::Ty_Imm) {} in SrcOp()
144 case SrcType::Ty_Predicate: in addSrcToMIB()
147 case SrcType::Ty_Reg: in addSrcToMIB()
150 case SrcType::Ty_MIB: in addSrcToMIB()
[all …]
/freebsd-11-stable/contrib/llvm-project/clang/lib/CodeGen/
HDCGExprScalar.cpp321 Value *Src, QualType SrcType, QualType DstType,
336 void EmitIntegerTruncationCheck(Value *Src, QualType SrcType, Value *Dst,
342 void EmitIntegerSignChangeCheck(Value *Src, QualType SrcType, Value *Dst,
859 Value *ScalarExprEmitter::EmitConversionToBool(Value *Src, QualType SrcType) { in EmitConversionToBool() argument
860 assert(SrcType.isCanonical() && "EmitScalarConversion strips typedefs"); in EmitConversionToBool()
862 if (SrcType->isRealFloatingType()) in EmitConversionToBool()
865 if (const MemberPointerType *MPT = dyn_cast<MemberPointerType>(SrcType)) in EmitConversionToBool()
868 assert((SrcType->isIntegerType() || isa<llvm::PointerType>(Src->getType())) && in EmitConversionToBool()
875 return EmitPointerToBoolConversion(Src, SrcType); in EmitConversionToBool()
879 Value *OrigSrc, QualType OrigSrcType, Value *Src, QualType SrcType, in EmitFloatConversionCheck() argument
[all …]
HDCGExprComplex.cpp84 ComplexPairTy EmitComplexToComplexCast(ComplexPairTy Val, QualType SrcType,
87 ComplexPairTy EmitScalarToComplexCast(llvm::Value *Val, QualType SrcType,
424 QualType SrcType, in EmitComplexToComplexCast() argument
428 SrcType = SrcType->castAs<ComplexType>()->getElementType(); in EmitComplexToComplexCast()
434 Val.first = CGF.EmitScalarConversion(Val.first, SrcType, DestType, Loc); in EmitComplexToComplexCast()
435 Val.second = CGF.EmitScalarConversion(Val.second, SrcType, DestType, Loc); in EmitComplexToComplexCast()
440 QualType SrcType, in EmitScalarToComplexCast() argument
445 Val = CGF.EmitScalarConversion(Val, SrcType, DestType, Loc); in EmitScalarToComplexCast()
HDCGStmtOpenMP.cpp3883 QualType SrcType, QualType DestType, in convertToScalarValue() argument
3888 return Val.isScalar() ? CGF.EmitScalarConversion(Val.getScalarVal(), SrcType, in convertToScalarValue()
3891 Val.getComplexVal(), SrcType, DestType, Loc); in convertToScalarValue()
3895 convertToComplexValue(CodeGenFunction &CGF, RValue Val, QualType SrcType, in convertToComplexValue() argument
3905 Val.getScalarVal(), SrcType, DestElementType, Loc); in convertToComplexValue()
3910 QualType SrcElementType = SrcType->castAs<ComplexType>()->getElementType(); in convertToComplexValue()
HDCGBuiltin.cpp14268 llvm::Type *SrcType = nullptr; member
14279 SrcType = Src->getType(); in BuiltinAlignArgs()
14280 if (SrcType->isPointerTy()) { in BuiltinAlignArgs()
14283 CGF.CGM.getDataLayout().getIndexTypeSizeInBits(SrcType)); in BuiltinAlignArgs()
14285 assert(SrcType->isIntegerTy()); in BuiltinAlignArgs()
14286 IntType = cast<llvm::IntegerType>(SrcType); in BuiltinAlignArgs()
14300 if (Args.SrcType->isPointerTy()) in EmitBuiltinIsAligned()
14346 Result = Builder.CreatePointerCast(Result, Args.SrcType); in EmitBuiltinAlignTo()
14351 assert(Result->getType() == Args.SrcType); in EmitBuiltinAlignTo()
/freebsd-11-stable/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
HDCombinerHelper.cpp207 LLT SrcType = MRI.getType(Src1); in matchCombineShuffleVector() local
212 unsigned SrcNumElts = SrcType.isVector() ? SrcType.getNumElements() : 1; in matchCombineShuffleVector()
266 UndefReg = Builder.buildUndef(SrcType).getReg(0); in matchCombineShuffleVector()
HDCSEMIRBuilder.cpp73 case SrcOp::SrcType::Ty_Predicate: in profileSrcOp()
HDMachineIRBuilder.cpp1019 assert(SrcOps[0].getSrcOpKind() == SrcOp::SrcType::Ty_Predicate && in buildInstr()
/freebsd-11-stable/contrib/llvm-project/clang/lib/AST/
HDExprCXX.cpp834 QualType SrcType = getSubExpr()->getType(); in isAlwaysNull() local
837 if (const auto *SrcPTy = SrcType->getAs<PointerType>()) { in isAlwaysNull()
838 SrcType = SrcPTy->getPointeeType(); in isAlwaysNull()
846 cast<CXXRecordDecl>(SrcType->castAs<RecordType>()->getDecl()); in isAlwaysNull()
HDExprConstant.cpp2342 QualType SrcType, const APFloat &Value, in HandleFloatToIntCast() argument
2357 QualType SrcType, QualType DestType, in HandleFloatToFloatCast() argument
2367 QualType DestType, QualType SrcType, in HandleIntToIntCast() argument
2380 QualType SrcType, const APSInt &Value, in HandleIntToFloatCast() argument
12350 QualType SrcType = SubExpr->getType(); in VisitCastExpr() local
12425 APFixedPoint Src(Info.Ctx.getFixedPointSemantics(SrcType)); in VisitCastExpr()
12456 return Info.Ctx.getTypeSize(DestType) <= Info.Ctx.getTypeSize(SrcType); in VisitCastExpr()
12458 return Info.Ctx.getTypeSize(DestType) == Info.Ctx.getTypeSize(SrcType); in VisitCastExpr()
12461 return Success(HandleIntToIntCast(Info, E, DestType, SrcType, in VisitCastExpr()
12477 if (Info.Ctx.getTypeSize(DestType) != Info.Ctx.getTypeSize(SrcType)) in VisitCastExpr()
[all …]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
HDInstructionCombining.cpp2197 PointerType *SrcType = cast<PointerType>(BCI->getSrcTy()); in visitGetElementPtrInst() local
2198 Type *SrcEltType = SrcType->getElementType(); in visitGetElementPtrInst()
2258 if (SrcType->getPointerAddressSpace() != GEP.getAddressSpace()) in visitGetElementPtrInst()
2267 if (FindElementAtOffset(SrcType, Offset.getSExtValue(), NewIndices)) { in visitGetElementPtrInst()
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/BPF/
HDBPFInstrInfo.td664 class BSWAP<bits<32> SizeOp, string OpcodeStr, BPFSrcType SrcType, list<dag> Pattern>
665 : TYPE_ALU_JMP<BPF_END.Value, SrcType.Value,
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/Sema/
HDSema.h4409 void diagnoseNullableToNonnullConversion(QualType DstType, QualType SrcType,
5557 void CheckCompatibleReinterpretCast(QualType SrcType, QualType DestType,
9267 QualType DestType, QualType SrcType,
9275 QualType DestType, QualType SrcType,
10711 QualType DstType, QualType SrcType,
10723 void DiagnoseAssignmentEnum(QualType DstType, QualType SrcType,
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Analysis/
HDScalarEvolution.cpp2500 if (auto *SrcType = FindTruncSrcType()) { in getAddExpr() local
2507 if (T->getOperand()->getType() != SrcType) { in getAddExpr()
2513 LargeOps.push_back(getAnyExtendExpr(C, SrcType)); in getAddExpr()
2519 if (T->getOperand()->getType() != SrcType) { in getAddExpr()
2525 LargeMulOps.push_back(getAnyExtendExpr(C, SrcType)); in getAddExpr()