Home
last modified time | relevance | path

Searched refs:ParamTy (Results 1 – 25 of 29) sorted by relevance

12

/freebsd/contrib/llvm-project/llvm/lib/Transforms/ObjCARC/
H A DObjCARC.cpp86 Type *ParamTy = Func->getArg(0)->getType(); in insertRVCallWithColors() local
87 Value *CallArg = Builder.CreateBitCast(AnnotatedCall, ParamTy); in insertRVCallWithColors()
H A DObjCARCOpts.cpp1141 Type *ParamTy = CInst->getArgOperand(0)->getType(); in OptimizeIndividualCallImpl() local
1155 if (Op->getType() != ParamTy) in OptimizeIndividualCallImpl()
1156 Op = new BitCastInst(Op, ParamTy, "", InsertPos); in OptimizeIndividualCallImpl()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DInnerPointerChecker.cpp156 QualType ParamTy = FD->getParamDecl(I)->getType(); in checkFunctionArguments() local
157 if (!ParamTy->isReferenceType() || in checkFunctionArguments()
158 ParamTy->getPointeeType().isConstQualified()) in checkFunctionArguments()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DTargetLibraryInfo.cpp1128 Type *ParamTy = FTy.getParamType(0); in isValidProtoForLibFunc() local
1133 return (ParamTy->isArrayTy() && ParamTy->getArrayNumElements() == 2 && in isValidProtoForLibFunc()
1134 ParamTy->getArrayElementType() == RetTy); in isValidProtoForLibFunc()
1136 return ParamTy == RetTy && FTy.getParamType(1) == RetTy; in isValidProtoForLibFunc()
1148 Type *ParamTy = FTy.getParamType(0); in isValidProtoForLibFunc() local
1152 return (Ty->getElementType(0) == ParamTy && in isValidProtoForLibFunc()
1153 Ty->getElementType(1) == ParamTy); in isValidProtoForLibFunc()
1159 return Ty->getElementType() == ParamTy; in isValidProtoForLibFunc()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaSwift.cpp574 QualType ParamTy = Param->getType(); in DiagnoseName() local
575 if (ParamTy->isReferenceType() || ParamTy->isPointerType()) in DiagnoseName()
576 return !ParamTy->getPointeeType().isConstQualified(); in DiagnoseName()
H A DSemaTemplateDeductionGuide.cpp659 QualType ParamTy = NewDI->getType(); in transformFunctionTypeParam() local
662 ParamTy.getNonLValueExprType(SemaRef.Context), in transformFunctionTypeParam()
663 ParamTy->isLValueReferenceType() ? VK_LValue in transformFunctionTypeParam()
664 : ParamTy->isRValueReferenceType() ? VK_XValue in transformFunctionTypeParam()
H A DSemaTemplateVariadic.cpp1084 QualType ParamTy = Param->getType(); in containsUnexpandedParameterPacks() local
1085 assert(!ParamTy.isNull() && "Couldn't parse type?"); in containsUnexpandedParameterPacks()
1086 if (ParamTy->containsUnexpandedParameterPack()) return true; in containsUnexpandedParameterPacks()
H A DSemaType.cpp5186 QualType ParamTy = Param->getType(); in GetFullTypeForDeclarator() local
5187 assert(!ParamTy.isNull() && "Couldn't parse type?"); in GetFullTypeForDeclarator()
5192 if (ParamTy->isVoidType()) { in GetFullTypeForDeclarator()
5198 ParamTy = Context.IntTy; in GetFullTypeForDeclarator()
5199 Param->setType(ParamTy); in GetFullTypeForDeclarator()
5203 ParamTy = Context.IntTy; in GetFullTypeForDeclarator()
5204 Param->setType(ParamTy); in GetFullTypeForDeclarator()
5207 if (ParamTy.hasQualifiers()) in GetFullTypeForDeclarator()
5226 } else if (ParamTy->isHalfType()) { in GetFullTypeForDeclarator()
5233 << ParamTy << 0; in GetFullTypeForDeclarator()
[all …]
H A DSemaChecking.cpp1878 QualType ParamTy = [&]() { in BuiltinLaunder() local
1888 TheCall->setType(ParamTy); in BuiltinLaunder()
1891 if (!ParamTy->isPointerType()) in BuiltinLaunder()
1893 if (ParamTy->isFunctionPointerType()) in BuiltinLaunder()
1895 if (ParamTy->isVoidPointerType()) in BuiltinLaunder()
1911 if (S.RequireCompleteType(TheCall->getBeginLoc(), ParamTy->getPointeeType(), in BuiltinLaunder()
1915 assert(ParamTy->getPointeeType()->isObjectType() && in BuiltinLaunder()
1919 InitializedEntity::InitializeParameter(S.Context, ParamTy, false); in BuiltinLaunder()
1936 QualType ParamTy = Arg.get()->getType(); in BuiltinIsWithinLifetime() local
1942 if (const auto *PT = ParamTy->getAs<PointerType>()) { in BuiltinIsWithinLifetime()
[all …]
H A DSema.cpp2286 for (const auto &ParamTy : FPTy->param_types()) in checkTypeSupport() local
2287 CheckType(ParamTy); in checkTypeSupport()
H A DSemaDeclAttr.cpp556 QualType ParamTy = getFunctionOrMethodParamType(D, Idx.getASTIndex()); in checkParamIsIntegerType() local
557 if (!ParamTy->isIntegerType() && !ParamTy->isCharType()) { in checkParamIsIntegerType()
3698 QualType ParamTy = FD->getParamDecl(0)->getType(); in handleCleanupAttr() local
3700 FD->getParamDecl(0)->getLocation(), ParamTy, Ty))) { in handleCleanupAttr()
3702 << NI.getName() << ParamTy << Ty; in handleCleanupAttr()
H A DSemaOverload.cpp9473 for (QualType ParamTy : CandidateTypes[0].pointer_types()) { in addUnaryStarPointerOverloads() local
9474 QualType PointeeTy = ParamTy->getPointeeType(); in addUnaryStarPointerOverloads()
9482 S.AddBuiltinCandidate(&ParamTy, Args, CandidateSet); in addUnaryStarPointerOverloads()
9513 for (QualType ParamTy : CandidateTypes[0].pointer_types()) in addUnaryPlusPointerOverloads() local
9514 S.AddBuiltinCandidate(&ParamTy, Args, CandidateSet); in addUnaryPlusPointerOverloads()
10079 QualType ParamTy = S.Context.BoolTy; in addExclaimOverload() local
10080 S.AddBuiltinCandidate(&ParamTy, Args, CandidateSet, in addExclaimOverload()
H A DSemaLookup.cpp3729 QualType ParamTy = FD->getParamDecl(ArgIdx)->getType(); in LookupLiteralOperator() local
3730 if (!Context.hasSameUnqualifiedType(ArgTys[ArgIdx], ParamTy)) { in LookupLiteralOperator()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DExprEngineCallAndReturn.cpp718 QualType ParamTy = PVD->getType(); in evalCall() local
719 if (ParamTy.isNull() || in evalCall()
720 (!ParamTy->isPointerType() && !ParamTy->isReferenceType())) in evalCall()
722 QualType Pointee = ParamTy->getPointeeType(); in evalCall()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DCodeExtractor.cpp842 std::vector<Type *> ParamTy; in constructFunctionDeclaration() local
853 ParamTy.push_back(value->getType()); in constructFunctionDeclaration()
863 ParamTy.push_back( in constructFunctionDeclaration()
868 (ParamTy.size() + AggParamTy.size()) == in constructFunctionDeclaration()
877 ParamTy.push_back(PointerType::get( in constructFunctionDeclaration()
884 for (Type *i : ParamTy) in constructFunctionDeclaration()
890 RetTy, ParamTy, AllowVarArgs && oldFunction->isVarArg()); in constructFunctionDeclaration()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPULibFunc.cpp1000 Type *ParamTy = getIntrinsicParamType(C, P, true); in getFunctionType() local
1001 if (!ParamTy) in getFunctionType()
1004 Args.push_back(ParamTy); in getFunctionType()
H A DAMDGPUPromoteAlloca.cpp1355 for (Type *ParamTy : FTy->params()) { in hasSufficientLocalMem()
1356 PointerType *PtrTy = dyn_cast<PointerType>(ParamTy); in hasSufficientLocalMem()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DExprCXX.cpp994 QualType ParamTy = in getLiteralOperatorKind() local
996 if (ParamTy->isPointerType()) in getLiteralOperatorKind()
998 if (ParamTy->isAnyCharacterType()) in getLiteralOperatorKind()
1000 if (ParamTy->isIntegerType()) in getLiteralOperatorKind()
1002 if (ParamTy->isFloatingType()) in getLiteralOperatorKind()
H A DDeclCXX.cpp901 const auto *ParamTy = in addedMember() local
903 if (!ParamTy || ParamTy->getPointeeType().isConstQualified()) in addedMember()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DIntrinsics.cpp106 for (Type *ParamTy : TETy->type_params()) in getMangledTypeStr()
107 Result += "_" + getMangledTypeStr(ParamTy, HasUnnamedType); in getMangledTypeStr()
H A DVerifier.cpp3806 for (Type *ParamTy : FTy->params()) { in visitCallBase()
3807 Check(!ParamTy->isMetadataTy(), in visitCallBase()
3809 Check(!ParamTy->isTokenTy(), in visitCallBase()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineCalls.cpp4469 Type *ParamTy = FT->getParamType(i); in transformConstExprCastCall() local
4472 if (!CastInst::isBitOrNoopPointerCastable(ActTy, ParamTy, DL)) in transformConstExprCastCall()
4478 ParamTy, CallerPAL.getParamAttrs(i), in transformConstExprCastCall()
4523 Type *ParamTy = FT->getParamType(i); in transformConstExprCastCall() local
4526 if ((*AI)->getType() != ParamTy) in transformConstExprCastCall()
4527 NewArg = Builder.CreateBitOrPointerCast(*AI, ParamTy); in transformConstExprCastCall()
4533 ParamTy, CallerPAL.getParamAttrs(i), AttributeFuncs::ASK_SAFE_TO_DROP); in transformConstExprCastCall()
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyLowerEmscriptenEHSjLj.cpp430 for (Type *ParamTy : FTy->params()) in getSignature()
431 OS << "_" << *ParamTy; in getSignature()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGNonTrivialStruct.cpp324 QualType ParamTy = Ctx.getPointerType(Ctx.VoidPtrTy); in getFunctionInfo() local
328 Ctx, nullptr, SourceLocation(), &Ctx.Idents.get(ValNameStr[I]), ParamTy, in getFunctionInfo()
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVGlobalRegistry.cpp1072 for (const auto &ParamTy : FType->params()) in createSPIRVType() local
1073 ParamTypes.push_back(findSPIRVType(ParamTy, MIRBuilder, AccQual, in createSPIRVType()

12