Home
last modified time | relevance | path

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

12

/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaCast.cpp649 assert((SrcType->isAnyPointerType() || SrcType->isMemberPointerType() || in CastsAwayConstness()
823 SrcPointee = SrcType; in CheckDynamicCast()
830 SrcPointee = SrcType; in CheckDynamicCast()
1071 if (((SrcType->isBlockPointerType() || SrcType->isFunctionPointerType()) && in checkCastFunctionType()
1935 SrcType = Self.Context.getPointerType(SrcType); in TryConstCast()
2008 SrcTy = SrcType; in CheckCompatibleReinterpretCast()
2263 SrcType = Self.Context.getPointerType(SrcType); in TryReinterpretCast()
2269 SrcType = Self.Context.getCanonicalType(SrcType); in TryReinterpretCast()
2824 if ((SrcType->isAnyPointerType() || SrcType->isBlockPointerType()) in DiagnoseBadFunctionCast()
2979 if (!SrcType->isScalarType() && !SrcType->isVectorType() && in CheckCStyleCast()
[all …]
H A DSemaExprObjC.cpp4188 QualType SrcType = castExpr->getType(); in CheckObjCBridgeRelatedCast() local
4192 SrcType = PDecl->getType(); in CheckObjCBridgeRelatedCast()
4196 SrcType = Getter->getReturnType(); in CheckObjCBridgeRelatedCast()
4232 QualType T = CfToNs ? SrcType : DestType; in checkObjCBridgeRelatedComponents()
4249 << SrcType << DestType; in checkObjCBridgeRelatedComponents()
4260 << SrcType << DestType; in checkObjCBridgeRelatedComponents()
4275 << SrcType << DestType << Sel << false; in checkObjCBridgeRelatedComponents()
4289 << SrcType << DestType << Sel << true; in checkObjCBridgeRelatedComponents()
4300 QualType DestType, QualType SrcType, in CheckObjCBridgeRelatedConversions() argument
4330 << SrcType << DestType << ClassMethod->getSelector() << false in CheckObjCBridgeRelatedConversions()
[all …]
H A DSema.cpp571 QualType SrcType, in diagnoseNullableToNonnullConversion() argument
573 Optional<NullabilityKind> ExprNullability = SrcType->getNullability(Context); in diagnoseNullableToNonnullConversion()
582 Diag(Loc, diag::warn_nullability_lost) << SrcType << DstType; in diagnoseNullableToNonnullConversion()
H A DSemaExpr.cpp16884 DiagnoseAssignmentEnum(DstType, SrcType, SrcExpr); in DiagnoseAssignmentResult()
16894 ConvHints.tryToFixConversion(SrcExpr, SrcType, DstType, *this); in DiagnoseAssignmentResult()
16904 ConvHints.tryToFixConversion(SrcExpr, SrcType, DstType, *this); in DiagnoseAssignmentResult()
16927 SrcType->isObjCObjectPointerType(); in DiagnoseAssignmentResult()
16931 SrcType = SrcType.getUnqualifiedType(); in DiagnoseAssignmentResult()
16954 if (SrcType->isArrayType()) SrcType = Context.getArrayDecayedType(SrcType); in DiagnoseAssignmentResult()
16958 Qualifiers lhq = SrcType->getPointeeType().getQualifiers(); in DiagnoseAssignmentResult()
17014 if (SrcType->isObjCQualifiedIdType()) { in DiagnoseAssignmentResult()
17016 SrcType->castAs<ObjCObjectPointerType>(); in DiagnoseAssignmentResult()
17077 SecondType = SrcType; in DiagnoseAssignmentResult()
[all …]
H A DSemaStmt.cpp1628 Sema::DiagnoseAssignmentEnum(QualType DstType, QualType SrcType, in DiagnoseAssignmentEnum() argument
1634 if (!Context.hasSameUnqualifiedType(SrcType, DstType) && in DiagnoseAssignmentEnum()
1635 SrcType->isIntegerType()) { in DiagnoseAssignmentEnum()
/llvm-project-15.0.7/llvm/include/llvm/CodeGen/GlobalISel/
H A DMachineIRBuilder.h153 case SrcType::Ty_Reg: in addSrcToMIB()
156 case SrcType::Ty_MIB: in addSrcToMIB()
159 case SrcType::Ty_Imm: in addSrcToMIB()
168 case SrcType::Ty_Imm: in getLLTTy()
170 case SrcType::Ty_Reg: in getLLTTy()
172 case SrcType::Ty_MIB: in getLLTTy()
181 case SrcType::Ty_Imm: in getReg()
183 case SrcType::Ty_Reg: in getReg()
185 case SrcType::Ty_MIB: in getReg()
202 case SrcType::Ty_Imm: in getImm()
[all …]
/llvm-project-15.0.7/llvm/test/LTO/X86/Inputs/
H A Dtype-mapping-src.ll4 %SrcType = type { i8 }
7 @x = external global %SrcType
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGExprScalar.cpp882 if (SrcType->isRealFloatingType()) in EmitConversionToBool()
1221 SrcElementType = SrcType; in EmitScalarCast()
1274 if (SrcType->isFixedPointType()) { in EmitScalarConversion()
1289 if (SrcType->isIntegerType() || SrcType->isRealFloatingType()) in EmitScalarConversion()
1300 SrcType = CGF.getContext().getCanonicalType(SrcType); in EmitScalarConversion()
1302 if (SrcType == DstType) return Src; in EmitScalarConversion()
1307 QualType OrigSrcType = SrcType; in EmitScalarConversion()
1380 SrcType.getTypePtr() && in EmitScalarConversion()
1679 SrcType = CGF.getContext().getCanonicalType(SrcType); in VisitConvertVectorExpr()
1681 if (SrcType == DstType) return Src; in VisitConvertVectorExpr()
[all …]
H A DCGExprComplex.cpp85 ComplexPairTy EmitComplexToComplexCast(ComplexPairTy Val, QualType SrcType,
88 ComplexPairTy EmitScalarToComplexCast(llvm::Value *Val, QualType SrcType,
427 QualType SrcType, in EmitComplexToComplexCast() argument
431 SrcType = SrcType->castAs<ComplexType>()->getElementType(); in EmitComplexToComplexCast()
438 Val.first = CGF.EmitScalarConversion(Val.first, SrcType, DestType, Loc); in EmitComplexToComplexCast()
440 Val.second = CGF.EmitScalarConversion(Val.second, SrcType, DestType, Loc); in EmitComplexToComplexCast()
445 QualType SrcType, in EmitScalarToComplexCast() argument
450 Val = CGF.EmitScalarConversion(Val, SrcType, DestType, Loc); in EmitScalarToComplexCast()
H A DCGStmtOpenMP.cpp5848 QualType SrcType, QualType DestType, in convertToScalarValue() argument
5853 return Val.isScalar() ? CGF.EmitScalarConversion(Val.getScalarVal(), SrcType, in convertToScalarValue()
5856 Val.getComplexVal(), SrcType, DestType, Loc); in convertToScalarValue()
5860 convertToComplexValue(CodeGenFunction &CGF, RValue Val, QualType SrcType, in convertToComplexValue() argument
5870 Val.getScalarVal(), SrcType, DestElementType, Loc); in convertToComplexValue()
5875 QualType SrcElementType = SrcType->castAs<ComplexType>()->getElementType(); in convertToComplexValue()
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DAMDGPUPreLegalizerCombiner.cpp66 const LLT SrcType = MRI.getType(MI.getOperand(1).getReg()); in matchClampI64ToI16() local
67 if (SrcType != LLT::scalar(64)) in matchClampI64ToI16()
/llvm-project-15.0.7/llvm/lib/CodeGen/GlobalISel/
H A DCSEMIRBuilder.cpp88 case SrcOp::SrcType::Ty_Imm: in profileSrcOp()
91 case SrcOp::SrcType::Ty_Predicate: in profileSrcOp()
H A DCombinerHelper.cpp309 LLT SrcType = MRI.getType(Src1); in matchCombineShuffleVector() local
314 unsigned SrcNumElts = SrcType.isVector() ? SrcType.getNumElements() : 1; in matchCombineShuffleVector()
368 UndefReg = Builder.buildUndef(SrcType).getReg(0); in matchCombineShuffleVector()
H A DMachineIRBuilder.cpp1117 assert(SrcOps[0].getSrcOpKind() == SrcOp::SrcType::Ty_Predicate && in buildInstr()
/llvm-project-15.0.7/llvm/test/LTO/X86/
H A Dtype-mapping-bug.ll7 ; @x in Src will be linked with this @x, causing SrcType in Src to be mapped
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineVectorOps.cpp2195 Type *SrcType = X->getType(); in foldTruncShuffle() local
2196 if (!SrcType->isVectorTy() || !SrcType->isIntOrIntVectorTy() || in foldTruncShuffle()
2197 cast<FixedVectorType>(SrcType)->getNumElements() != in foldTruncShuffle()
2199 SrcType->getScalarSizeInBits() % DestType->getScalarSizeInBits() != 0) in foldTruncShuffle()
2208 SrcType->getScalarSizeInBits() / DestType->getScalarSizeInBits(); in foldTruncShuffle()
H A DInstructionCombining.cpp2164 PointerType *SrcType = cast<PointerType>(BCI->getSrcTy()); in visitGEPOfBitcast() local
2165 if (SrcType->isOpaque()) in visitGEPOfBitcast()
2169 Type *SrcEltType = SrcType->getNonOpaquePointerElementType(); in visitGEPOfBitcast()
2238 if (SrcType->getPointerAddressSpace() != GEP.getAddressSpace()) in visitGEPOfBitcast()
2247 if (findElementAtOffset(SrcType, Offset.getSExtValue(), NewIndices, DL)) { in visitGEPOfBitcast()
H A DInstCombineCompares.cpp2975 Type *SrcType = Bitcast->getSrcTy(); in foldICmpBitCast() local
2980 if (SrcType->isVectorTy() == DstType->isVectorTy() && in foldICmpBitCast()
2981 SrcType->getScalarSizeInBits() == DstType->getScalarSizeInBits()) { in foldICmpBitCast()
3026 if (!(XType->isPPC_FP128Ty() || SrcType->isPPC_FP128Ty())) { in foldICmpBitCast()
3050 Op1 = Builder.CreateBitCast(Op1, SrcType); in foldICmpBitCast()
3056 !SrcType->isIntOrIntVectorTy()) in foldICmpBitCast()
3097 auto *VecTy = cast<VectorType>(SrcType); in foldICmpBitCast()
/llvm-project-15.0.7/llvm/lib/Target/PowerPC/
H A DPPCTargetTransformInfo.cpp452 Type *SrcType = CI->getArgOperand(0)->getType()->getScalarType(); in mightUseCTR() local
454 if (SrcType->isPPC_FP128Ty() || DstType->isPPC_FP128Ty() || in mightUseCTR()
455 isLargeIntegerTy(!TM.isPPC64(), SrcType) || in mightUseCTR()
/llvm-project-15.0.7/clang/lib/AST/
H A DExprCXX.cpp769 QualType SrcType = getSubExpr()->getType(); in isAlwaysNull() local
772 if (const auto *SrcPTy = SrcType->getAs<PointerType>()) { in isAlwaysNull()
773 SrcType = SrcPTy->getPointeeType(); in isAlwaysNull()
781 cast<CXXRecordDecl>(SrcType->castAs<RecordType>()->getDecl()); in isAlwaysNull()
H A DExprConstant.cpp2541 QualType SrcType, const APFloat &Value, in HandleFloatToIntCast() argument
2610 QualType SrcType, QualType DestType, in HandleFloatToFloatCast() argument
2622 QualType DestType, QualType SrcType, in HandleIntToIntCast() argument
2636 QualType SrcType, const APSInt &Value, in HandleIntToFloatCast() argument
13408 QualType SrcType = SubExpr->getType(); in VisitCastExpr() local
13486 APFixedPoint Src(Info.Ctx.getFixedPointSemantics(SrcType)); in VisitCastExpr()
13519 return Info.Ctx.getTypeSize(DestType) == Info.Ctx.getTypeSize(SrcType); in VisitCastExpr()
13522 return Success(HandleIntToIntCast(Info, E, DestType, SrcType, in VisitCastExpr()
13538 if (Info.Ctx.getTypeSize(DestType) != Info.Ctx.getTypeSize(SrcType)) in VisitCastExpr()
13549 if (!V.toIntegralConstant(AsInt, SrcType, Info.Ctx)) in VisitCastExpr()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/WebAssembly/
H A DWebAssemblyISelLowering.cpp2449 MVT SrcType = CastOp.getSimpleValueType(); in performVECTOR_SHUFFLECombine() local
2451 if (!SrcType.is128BitVector() || in performVECTOR_SHUFFLECombine()
2452 SrcType.getVectorNumElements() != DstType.getVectorNumElements()) in performVECTOR_SHUFFLECombine()
2455 SrcType, SDLoc(N), CastOp, DAG.getUNDEF(SrcType), Shuffle->getMask()); in performVECTOR_SHUFFLECombine()
/llvm-project-15.0.7/llvm/lib/Target/BPF/
H A DBPFInstrInfo.td838 class BSWAP<bits<32> SizeOp, string OpcodeStr, BPFSrcType SrcType, list<dag> Pattern>
839 : TYPE_ALU_JMP<BPF_END.Value, SrcType.Value,
/llvm-project-15.0.7/clang/include/clang/Sema/
H A DSema.h5193 void diagnoseNullableToNonnullConversion(QualType DstType, QualType SrcType,
6382 void CheckCompatibleReinterpretCast(QualType SrcType, QualType DestType,
10212 QualType DestType, QualType SrcType,
10220 QualType DestType, QualType SrcType,
12070 QualType DstType, QualType SrcType,
12082 void DiagnoseAssignmentEnum(QualType DstType, QualType SrcType,
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DScalarEvolution.cpp2557 if (auto *SrcType = FindTruncSrcType()) { in getAddExpr() local
2564 if (T->getOperand()->getType() != SrcType) { in getAddExpr()
2570 LargeOps.push_back(getAnyExtendExpr(C, SrcType)); in getAddExpr()
2576 if (T->getOperand()->getType() != SrcType) { in getAddExpr()
2582 LargeMulOps.push_back(getAnyExtendExpr(C, SrcType)); in getAddExpr()

12