/external/llvm-project/llvm/unittests/IR/ |
D | VectorTypesTest.cpp | 116 auto *ConvTy = dyn_cast<FixedVectorType>(VectorType::getInteger(V4Float64Ty)); in TEST() local 117 EXPECT_VTY_EQ(ConvTy, V4Int64Ty); in TEST() 118 EXPECT_EQ(ConvTy->getNumElements(), 4U); in TEST() 119 EXPECT_EQ(ConvTy->getElementType()->getScalarSizeInBits(), 64U); in TEST() 211 auto *ConvTy = in TEST() local 213 EXPECT_VTY_EQ(ConvTy, ScV4Int64Ty); in TEST() 214 EXPECT_EQ(ConvTy->getMinNumElements(), 4U); in TEST() 215 EXPECT_EQ(ConvTy->getElementType()->getScalarSizeInBits(), 64U); in TEST()
|
/external/clang/lib/Sema/ |
D | SemaLambda.cpp | 1184 QualType ConvTy = in addFunctionPointerConversion() local 1213 TypeSourceInfo *ConvTSI = S.Context.getTrivialTypeSourceInfo(ConvTy, Loc); in addFunctionPointerConversion() 1261 ConvTy, in addFunctionPointerConversion() 1352 QualType ConvTy = S.Context.getFunctionType(BlockPtrTy, None, ConversionEPI); in addBlockPointerConversion() local 1363 ConvTy, in addBlockPointerConversion() 1364 S.Context.getTrivialTypeSourceInfo(ConvTy, Loc), in addBlockPointerConversion()
|
D | SemaExprCXX.cpp | 1641 Sema &S, SourceLocation Loc, QualType T, QualType ConvTy) override { in BuildCXXNew() argument 1642 return S.Diag(Loc, diag::err_array_size_explicit_conversion) << T << ConvTy; in BuildCXXNew() 1646 Sema &S, CXXConversionDecl *Conv, QualType ConvTy) override { in BuildCXXNew() argument 1648 << ConvTy->isEnumeralType() << ConvTy; in BuildCXXNew() 1657 Sema &S, CXXConversionDecl *Conv, QualType ConvTy) override { in BuildCXXNew() argument 1659 << ConvTy->isEnumeralType() << ConvTy; in BuildCXXNew() 1664 QualType ConvTy) override { in BuildCXXNew() argument 1669 << T << ConvTy->isEnumeralType() << ConvTy; in BuildCXXNew() 2889 QualType ConvTy) override { in ActOnCXXDelete() argument 2890 return S.Diag(Loc, diag::err_delete_explicit_conversion) << T << ConvTy; in ActOnCXXDelete() [all …]
|
D | SemaStmt.cpp | 630 Sema &S, SourceLocation Loc, QualType T, QualType ConvTy) override { in CheckSwitchCondition() argument 631 return S.Diag(Loc, diag::err_switch_explicit_conversion) << T << ConvTy; in CheckSwitchCondition() 635 Sema &S, CXXConversionDecl *Conv, QualType ConvTy) override { in CheckSwitchCondition() argument 637 << ConvTy->isEnumeralType() << ConvTy; in CheckSwitchCondition() 646 Sema &S, CXXConversionDecl *Conv, QualType ConvTy) override { in CheckSwitchCondition() argument 648 << ConvTy->isEnumeralType() << ConvTy; in CheckSwitchCondition() 652 Sema &S, SourceLocation Loc, QualType T, QualType ConvTy) override { in CheckSwitchCondition() argument 2632 AssignConvertType ConvTy = in ActOnIndirectGotoStmt() local 2637 if (DiagnoseAssignmentResult(ConvTy, StarLoc, DestTy, ETy, E, AA_Passing)) in ActOnIndirectGotoStmt()
|
D | SemaExpr.cpp | 7114 Sema::AssignConvertType ConvTy = Sema::Compatible; in checkPointerTypesForAssignment() local 7131 ConvTy = Sema::IncompatiblePointerDiscardsQualifiers; in checkPointerTypesForAssignment() 7143 ConvTy = Sema::IncompatiblePointerDiscardsQualifiers; in checkPointerTypesForAssignment() 7147 else ConvTy = Sema::CompatiblePointerDiscardsQualifiers; in checkPointerTypesForAssignment() 7155 return ConvTy; in checkPointerTypesForAssignment() 7164 return ConvTy; in checkPointerTypesForAssignment() 7192 if (ConvTy != Sema::Compatible) in checkPointerTypesForAssignment() 7193 return ConvTy; in checkPointerTypesForAssignment() 7218 return ConvTy; in checkPointerTypesForAssignment() 7241 Sema::AssignConvertType ConvTy = Sema::Compatible; in checkBlockPointerTypesForAssignment() local [all …]
|
D | SemaOpenMP.cpp | 7390 QualType ConvTy) override { in PerformOpenMPImplicitIntegerConversion() argument 7391 return S.Diag(Loc, diag::err_omp_explicit_conversion) << T << ConvTy; in PerformOpenMPImplicitIntegerConversion() 7394 QualType ConvTy) override { in PerformOpenMPImplicitIntegerConversion() argument 7396 << ConvTy->isEnumeralType() << ConvTy; in PerformOpenMPImplicitIntegerConversion() 7403 QualType ConvTy) override { in PerformOpenMPImplicitIntegerConversion() argument 7405 << ConvTy->isEnumeralType() << ConvTy; in PerformOpenMPImplicitIntegerConversion()
|
D | SemaInit.cpp | 6789 Sema::AssignConvertType ConvTy = in Perform() local 6798 if (ConvTy != Sema::Compatible && in Perform() 6802 ConvTy = Sema::Compatible; in Perform() 6808 if (S.DiagnoseAssignmentResult(ConvTy, Kind.getLocation(), in Perform()
|
D | SemaChecking.cpp | 1227 AssignConvertType ConvTy; in CheckNeonBuiltinFunctionCall() local 1228 ConvTy = CheckSingleAssignmentConstraints(LHSTy, RHS); in CheckNeonBuiltinFunctionCall() 1231 if (DiagnoseAssignmentResult(ConvTy, Arg->getLocStart(), LHSTy, RHSTy, in CheckNeonBuiltinFunctionCall()
|
/external/llvm-project/clang/lib/Sema/ |
D | SemaLambda.cpp | 1370 QualType ConvTy = in addFunctionPointerConversion() local 1399 TypeSourceInfo *ConvTSI = S.Context.getTrivialTypeSourceInfo(ConvTy, Loc); in addFunctionPointerConversion() 1442 DeclarationNameInfo(ConversionName, Loc, ConvNameLoc), ConvTy, ConvTSI, in addFunctionPointerConversion() 1541 QualType ConvTy = S.Context.getFunctionType(BlockPtrTy, None, ConversionEPI); in addBlockPointerConversion() local 1550 S.Context, Class, Loc, DeclarationNameInfo(Name, Loc, NameLoc), ConvTy, in addBlockPointerConversion() 1551 S.Context.getTrivialTypeSourceInfo(ConvTy, Loc), in addBlockPointerConversion()
|
D | SemaExprCXX.cpp | 2043 Sema &S, SourceLocation Loc, QualType T, QualType ConvTy) override { in BuildCXXNew() argument 2044 return S.Diag(Loc, diag::err_array_size_explicit_conversion) << T << ConvTy; in BuildCXXNew() 2048 Sema &S, CXXConversionDecl *Conv, QualType ConvTy) override { in BuildCXXNew() argument 2050 << ConvTy->isEnumeralType() << ConvTy; in BuildCXXNew() 2059 Sema &S, CXXConversionDecl *Conv, QualType ConvTy) override { in BuildCXXNew() argument 2061 << ConvTy->isEnumeralType() << ConvTy; in BuildCXXNew() 2066 QualType ConvTy) override { in BuildCXXNew() argument 2071 << T << ConvTy->isEnumeralType() << ConvTy; in BuildCXXNew() 3425 QualType ConvTy) override { in ActOnCXXDelete() argument 3426 return S.Diag(Loc, diag::err_delete_explicit_conversion) << T << ConvTy; in ActOnCXXDelete() [all …]
|
D | SemaStmt.cpp | 730 Sema &S, SourceLocation Loc, QualType T, QualType ConvTy) override { in CheckSwitchCondition() argument 731 return S.Diag(Loc, diag::err_switch_explicit_conversion) << T << ConvTy; in CheckSwitchCondition() 735 Sema &S, CXXConversionDecl *Conv, QualType ConvTy) override { in CheckSwitchCondition() argument 737 << ConvTy->isEnumeralType() << ConvTy; in CheckSwitchCondition() 746 Sema &S, CXXConversionDecl *Conv, QualType ConvTy) override { in CheckSwitchCondition() argument 748 << ConvTy->isEnumeralType() << ConvTy; in CheckSwitchCondition() 752 Sema &S, SourceLocation Loc, QualType T, QualType ConvTy) override { in CheckSwitchCondition() argument 2958 AssignConvertType ConvTy = in ActOnIndirectGotoStmt() local 2963 if (DiagnoseAssignmentResult(ConvTy, StarLoc, DestTy, ETy, E, AA_Passing)) in ActOnIndirectGotoStmt()
|
D | SemaExpr.cpp | 8750 Sema::AssignConvertType ConvTy = Sema::Compatible; in checkPointerTypesForAssignment() local 8779 ConvTy = Sema::IncompatiblePointerDiscardsQualifiers; in checkPointerTypesForAssignment() 8783 else ConvTy = Sema::CompatiblePointerDiscardsQualifiers; in checkPointerTypesForAssignment() 8791 return ConvTy; in checkPointerTypesForAssignment() 8800 return ConvTy; in checkPointerTypesForAssignment() 8828 if (ConvTy != Sema::Compatible) in checkPointerTypesForAssignment() 8829 return ConvTy; in checkPointerTypesForAssignment() 8872 return ConvTy; in checkPointerTypesForAssignment() 8895 Sema::AssignConvertType ConvTy = Sema::Compatible; in checkBlockPointerTypesForAssignment() local 8905 ConvTy = Sema::CompatiblePointerDiscardsQualifiers; in checkBlockPointerTypesForAssignment() [all …]
|
D | SemaOverload.cpp | 5898 QualType ConvTy = Conv->getConversionType().getNonReferenceType(); in diagnoseAmbiguousConversion() local 5899 Converter.noteAmbiguous(SemaRef, Conv, ConvTy); in diagnoseAmbiguousConversion() 5916 QualType ConvTy = Conversion->getConversionType().getNonReferenceType(); in diagnoseNoViableConversion() local 5918 ConvTy.getAsStringInternal(TypeStr, SemaRef.getPrintingPolicy()); in diagnoseNoViableConversion() 5920 Converter.diagnoseExplicitConv(SemaRef, Loc, T, ConvTy) in diagnoseNoViableConversion() 5925 Converter.noteExplicitConv(SemaRef, Conversion, ConvTy); in diagnoseNoViableConversion()
|
D | SemaInit.cpp | 8517 Sema::AssignConvertType ConvTy = in Perform() local 8526 if (ConvTy != Sema::Compatible && in Perform() 8530 ConvTy = Sema::Compatible; in Perform() 8536 if (S.DiagnoseAssignmentResult(ConvTy, Kind.getLocation(), in Perform()
|
D | SemaOpenMP.cpp | 12722 QualType ConvTy) override { in PerformOpenMPImplicitIntegerConversion() argument 12723 return S.Diag(Loc, diag::err_omp_explicit_conversion) << T << ConvTy; in PerformOpenMPImplicitIntegerConversion() 12726 QualType ConvTy) override { in PerformOpenMPImplicitIntegerConversion() argument 12728 << ConvTy->isEnumeralType() << ConvTy; in PerformOpenMPImplicitIntegerConversion() 12735 QualType ConvTy) override { in PerformOpenMPImplicitIntegerConversion() argument 12737 << ConvTy->isEnumeralType() << ConvTy; in PerformOpenMPImplicitIntegerConversion()
|
D | SemaChecking.cpp | 2226 AssignConvertType ConvTy; in CheckNeonBuiltinFunctionCall() local 2227 ConvTy = CheckSingleAssignmentConstraints(LHSTy, RHS); in CheckNeonBuiltinFunctionCall() 2230 if (DiagnoseAssignmentResult(ConvTy, Arg->getBeginLoc(), LHSTy, RHSTy, in CheckNeonBuiltinFunctionCall()
|
/external/llvm-project/clang/lib/CodeGen/ |
D | CGStmt.cpp | 2266 llvm::Type *ConvTy = llvm::IntegerType::get(getLLVMContext(), Size); in EmitAsmStmt() local 2267 ResultRegTypes.push_back(ConvTy); in EmitAsmStmt()
|
/external/clang/include/clang/Sema/ |
D | Sema.h | 2370 Sema &S, SourceLocation Loc, QualType T, QualType ConvTy) = 0; 2374 noteExplicitConv(Sema &S, CXXConversionDecl *Conv, QualType ConvTy) = 0; 2383 noteAmbiguous(Sema &S, CXXConversionDecl *Conv, QualType ConvTy) = 0; 2388 Sema &S, SourceLocation Loc, QualType T, QualType ConvTy) = 0; 8684 bool DiagnoseAssignmentResult(AssignConvertType ConvTy,
|
/external/llvm-project/clang/include/clang/Sema/ |
D | Sema.h | 3385 Sema &S, SourceLocation Loc, QualType T, QualType ConvTy) = 0; 3389 noteExplicitConv(Sema &S, CXXConversionDecl *Conv, QualType ConvTy) = 0; 3398 noteAmbiguous(Sema &S, CXXConversionDecl *Conv, QualType ConvTy) = 0; 3403 Sema &S, SourceLocation Loc, QualType T, QualType ConvTy) = 0; 11270 bool DiagnoseAssignmentResult(AssignConvertType ConvTy,
|
/external/llvm-project/llvm/lib/Target/PowerPC/ |
D | PPCISelLowering.cpp | 8585 EVT ConvTy = IsSingle ? MVT::f32 : MVT::f64; in convertIntToFP() local 8590 DAG.getVTList(ConvTy, MVT::Other), {Chain, Src}, Flags); in convertIntToFP() 8592 return DAG.getNode(ConvOpc, dl, ConvTy, Src); in convertIntToFP()
|