Searched refs:FPT (Results 1 - 25 of 33) sorted by relevance

12

/external/compiler-rt/test/profile/Inputs/
H A Dinstrprof-value-prof-evict.c47 typedef void (*FPT)(void); typedef
51 FPT getCalleeFunc(int I) { return CalleeAddrs[I]; }
59 FPT FP = getCalleeFunc(Sequence[I]); \
H A Dinstrprof-value-prof-real.c27 typedef void (*FPT)(void); typedef
29 FPT getFunc(int I) { return CalleeAddrs[I]; }
41 FPT Fp = getFunc(I);
/external/clang/lib/StaticAnalyzer/Checkers/
H A DCheckSecuritySyntaxOnly.cpp310 const FunctionProtoType *FPT = FD->getType()->getAs<FunctionProtoType>(); local
311 if (!FPT)
315 if (FPT->getNumParams() != 1)
319 const PointerType *PT = FPT->getParamType(0)->getAs<PointerType>();
346 const FunctionProtoType *FPT = FD->getType()->getAs<FunctionProtoType>(); local
347 if (!FPT)
351 if (FPT->getNumParams() != 2)
355 if (!FPT->getParamType(0)->isIntegralOrUnscopedEnumerationType())
359 const PointerType *PT = FPT->getParamType(1)->getAs<PointerType>();
390 const FunctionProtoType *FPT local
559 const FunctionProtoType *FPT = FD->getType()->getAs<FunctionProtoType>(); local
[all...]
/external/clang/lib/CodeGen/
H A DCodeGenTypes.cpp229 if (const FunctionProtoType *FPT = dyn_cast<FunctionProtoType>(FT))
230 for (unsigned i = 0, e = FPT->getNumParams(); i != e; i++)
231 if (!isFuncParamTypeConvertible(FPT->getParamType(i)))
323 if (const FunctionProtoType *FPT = dyn_cast<FunctionProtoType>(FT))
324 for (unsigned i = 0, e = FPT->getNumParams(); i != e; i++)
325 if (const RecordType *RT = FPT->getParamType(i)->getAs<RecordType>())
345 if (const FunctionProtoType *FPT = dyn_cast<FunctionProtoType>(FT)) {
347 CanQual<FunctionProtoType>::CreateUnsafe(QualType(FPT, 0)), FD);
H A DCGExprCXX.cpp56 const FunctionProtoType *FPT = MD->getType()->castAs<FunctionProtoType>(); local
57 RequiredArgs required = RequiredArgs::forPrototypePlus(FPT, Args.size(), MD);
63 CGF.EmitCallArgs(Args, FPT, drop_begin(CE->arguments(), ArgsToSkip),
67 FPT->getNumParams() == 0 &&
77 const FunctionProtoType *FPT = MD->getType()->castAs<FunctionProtoType>(); local
81 return EmitCall(CGM.getTypes().arrangeCXXMethodCall(Args, FPT, required),
295 const FunctionProtoType *FPT = local
328 RequiredArgs::forPrototypePlus(FPT, 1, /*FD=*/nullptr);
331 EmitCallArgs(Args, FPT, E->arguments());
332 return EmitCall(CGM.getTypes().arrangeCXXMethodCall(Args, FPT, require
[all...]
H A DCGVTables.cpp148 const FunctionProtoType *FPT = MD->getType()->getAs<FunctionProtoType>(); local
149 QualType ResultType = FPT->getReturnType();
217 const FunctionProtoType *FPT = MD->getType()->getAs<FunctionProtoType>(); local
222 : FPT->getReturnType();
290 const FunctionProtoType *FPT = MD->getType()->getAs<FunctionProtoType>(); local
294 CallArgs, FPT, RequiredArgs::forPrototypePlus(FPT, 1, MD));
314 : FPT->getReturnType();
H A DCGCXXABI.cpp83 const FunctionProtoType *FPT = local
88 CGM.getTypes().arrangeCXXMethodType(RD, FPT, /*FD=*/nullptr));
H A DCGCall.cpp102 /// Adds the formal paramaters in FPT to the given prefix. If any parameter in
103 /// FPT has pass_object_size attrs, then we'll add parameters for those, too.
107 CanQual<FunctionProtoType> FPT,
110 if (FPT->hasExtParameterInfos() || !paramInfos.empty()) {
112 auto protoParamInfos = FPT->getExtParameterInfos();
120 prefix.append(FPT->param_type_begin(), FPT->param_type_end());
124 // In the vast majority cases, we'll have precisely FPT->getNumParams()
127 prefix.reserve(prefix.size() + FPT->getNumParams());
129 assert(FD->getNumParams() == FPT
104 appendParameterTypes(const CodeGenTypes &CGT, SmallVectorImpl<CanQualType> &prefix, SmallVectorImpl<FunctionProtoType::ExtParameterInfo> &paramInfos, CanQual<FunctionProtoType> FPT, const FunctionDecl *FD) argument
360 CanQual<FunctionProtoType> FPT = GetFormalType(D); local
[all...]
H A DCGDebugInfo.cpp915 else if (const FunctionProtoType *FPT = dyn_cast<FunctionProtoType>(Ty)) {
916 for (unsigned i = 0, e = FPT->getNumParams(); i != e; ++i)
917 EltTys.push_back(getOrCreateType(FPT->getParamType(i), Unit));
918 if (FPT->isVariadic())
2162 const FunctionProtoType *FPT = local
2166 Ty->getClass(), FPT->getTypeQuals())),
2167 FPT, U),
2829 else if (auto *FPT = dyn_cast<FunctionProtoType>(FnType))
2830 if (FPT->getNumParams() > 1)
2831 SelfDeclTy = FPT
[all...]
H A DMicrosoftCXXABI.cpp1244 const FunctionProtoType *FPT = CD->getType()->castAs<FunctionProtoType>(); local
1246 if (FPT->isVariadic())
1380 const FunctionProtoType *FPT = MD->getType()->castAs<FunctionProtoType>(); local
1381 if (FPT->isVariadic())
1466 const FunctionProtoType *FPT = D->getType()->castAs<FunctionProtoType>(); local
1474 if (FPT->isVariadic())
2680 const FunctionProtoType *FPT = MD->getType()->castAs<FunctionProtoType>(); local
2684 if (Types.isFuncTypeConvertible(FPT)) {
3230 const FunctionProtoType *FPT = local
3234 CGM.getTypes().arrangeCXXMethodType(RD, FPT, /*F
3877 const auto *FPT = CD->getType()->castAs<FunctionProtoType>(); local
[all...]
H A DCGClass.cpp2071 const FunctionProtoType *FPT = D->getType()->castAs<FunctionProtoType>(); local
2072 EmitCallArgs(Args, FPT, E->arguments(), E->getConstructor());
2293 const FunctionProtoType *FPT = D->getType()->castAs<FunctionProtoType>(); local
2301 QualType QT = *(FPT->param_type_begin());
2307 EmitCallArgs(Args, FPT, drop_begin(E->arguments(), 1), E->getConstructor(),
2909 const FunctionProtoType *FPT = local
2911 QualType resultType = FPT->getReturnType();
H A DItaniumCXXABI.cpp525 const FunctionProtoType *FPT = local
531 CGM.getTypes().arrangeCXXMethodType(RD, FPT, /*FD=*/nullptr));
821 const FunctionProtoType *FPT = MD->getType()->castAs<FunctionProtoType>(); local
824 if (Types.isFuncTypeConvertible(FPT)) {
H A DTargetInfo.cpp7842 if (const FunctionProtoType *FPT = FT->getAs<FunctionProtoType>()) {
7844 auto I = FPT->param_type_begin();
7845 auto E = FPT->param_type_end();
7854 if (FPT->isVariadic())
7857 if (FPT->isVariadic())
/external/clang/lib/Sema/
H A DSemaExceptionSpec.cpp147 Sema::ResolveExceptionSpec(SourceLocation Loc, const FunctionProtoType *FPT) { argument
148 if (FPT->getExceptionSpecType() == EST_Unparsed) {
153 if (!isUnresolvedExceptionSpec(FPT->getExceptionSpecType()))
154 return FPT;
156 FunctionDecl *SourceDecl = FPT->getExceptionSpecDecl();
H A DSemaLambda.cpp367 const FunctionProtoType *FPT = MethodType->castAs<FunctionProtoType>(); local
368 QualType Result = FPT->getReturnType();
371 MethodType = Context.getFunctionType(Result, FPT->getParamTypes(),
372 FPT->getExtProtoInfo());
H A DSema.cpp1379 if (const FunctionProtoType *FPT =
1381 if (FPT->getNumParams() == 0)
H A DSemaDecl.cpp7873 const FunctionProtoType *FPT = local
7876 SubstAutoType(FPT->getReturnType(), Context.DependentTy);
7877 NewFD->setType(Context.getFunctionType(Result, FPT->getParamTypes(),
7878 FPT->getExtProtoInfo()));
7941 if (const FunctionProtoType *FPT = R->getAs<FunctionProtoType>()) {
7942 if (FPT->hasExceptionSpec()) {
7956 if (!Context.hasSameType(FPT->getReturnType(), Context.BoolTy)) {
7965 if (FPT->getNumParams() > 0 || FPT->isVariadic())
8074 const FunctionProtoType *FPT local
8740 const FunctionProtoType *FPT = local
11895 const auto *FPT = FD->getType()->getAs<FunctionProtoType>(); local
[all...]
H A DSemaTemplate.cpp6892 const FunctionProtoType *FPT = FT->castAs<FunctionProtoType>(); local
6893 FunctionProtoType::ExtProtoInfo EPI = FPT->getExtProtoInfo();
6895 FT = Context.getFunctionType(FPT->getReturnType(),
6896 FPT->getParamTypes(), EPI);
8016 if (auto *FPT = R->getAs<FunctionProtoType>())
8017 if (FPT->hasExceptionSpec()) {
8026 Specialization->getLocation(), FPT, D.getLocStart());
H A DSemaType.cpp1926 const FunctionProtoType *FPT = T->getAs<FunctionProtoType>(); local
1927 if (!FPT || (FPT->getTypeQuals() == 0 && FPT->getRefQualifier() == RQ_None))
1932 << getFunctionQualifiersAsString(FPT);
/external/clang/lib/AST/
H A DASTDiagnostic.cpp83 const FunctionProtoType *FPT = dyn_cast<FunctionProtoType>(FT); local
84 if (FPT) {
85 for (QualType SugarPT : FPT->param_types()) {
98 QT = FPT ? Context.getFunctionType(RT, Args, FPT->getExtProtoInfo())
H A DDecl.cpp2594 const auto *FPT = getType()->castAs<FunctionProtoType>(); local
2595 if (FPT->getNumParams() == 0 || FPT->getNumParams() > 2 || FPT->isVariadic())
2600 if (FPT->getNumParams() == 1)
2605 QualType Ty = FPT->getParamType(1);
2743 const auto *FPT = getType()->getAs<FunctionProtoType>(); local
2744 return FPT ? FPT->getNumParams() : 0;
H A DType.cpp3352 const FunctionProtoType *FPT = cast<FunctionProtoType>(T);
3353 CachedProperties result = Cache::get(FPT->getReturnType());
3354 for (const auto &ai : FPT->param_types())
3438 const FunctionProtoType *FPT = cast<FunctionProtoType>(T);
3439 LinkageInfo LV = computeLinkageInfo(FPT->getReturnType());
3440 for (const auto &ai : FPT->param_types())
H A DASTContext.cpp2234 const FunctionProtoType *FPT = cast<FunctionProtoType>(T); local
2235 FunctionProtoType::ExtProtoInfo EPI = FPT->getExtProtoInfo();
2237 Result = getFunctionType(FPT->getReturnType(), FPT->getParamTypes(), EPI);
2247 const FunctionProtoType *FPT = FD->getType()->castAs<FunctionProtoType>(); local
2248 FunctionProtoType::ExtProtoInfo EPI = FPT->getExtProtoInfo();
2249 FD->setType(getFunctionType(ResultType, FPT->getParamTypes(), EPI));
5804 if (const FunctionProtoType *FPT = dyn_cast<FunctionProtoType>(FT)) {
5805 for (const auto &I : FPT->param_types())
7977 if (const FunctionProtoType *FPT
[all...]
H A DMicrosoftMangle.cpp2167 if (const FunctionProtoType *FPT = PointeeType->getAs<FunctionProtoType>()) {
2170 mangleFunctionType(FPT, nullptr, true);
/external/clang/lib/Serialization/
H A DASTReaderDecl.cpp3077 auto *FPT = FD->getType()->getAs<FunctionProtoType>(); local
3079 if (FPT && PrevFPT) {
3080 bool IsUnresolved = isUnresolvedExceptionSpec(FPT->getExceptionSpecType());
3877 auto *FPT = FD->getType()->castAs<FunctionProtoType>(); local
3880 if (isUnresolvedExceptionSpec(FPT->getExceptionSpecType())) {
3882 FPT->getReturnType(), FPT->getParamTypes(),
3883 FPT->getExtProtoInfo().withExceptionSpec(ESI)));

Completed in 635 milliseconds

12