| /netbsd-src/external/apache2/llvm/dist/clang/lib/Sema/ |
| H A D | SemaChecking.cpp | 134 static bool SemaBuiltinAnnotation(Sema &S, CallExpr *TheCall) { in SemaBuiltinAnnotation() argument 135 if (checkArgCount(S, TheCall, 2)) in SemaBuiltinAnnotation() 139 Expr *ValArg = TheCall->getArg(0); in SemaBuiltinAnnotation() 148 Expr *StrArg = TheCall->getArg(1)->IgnoreParenCasts(); in SemaBuiltinAnnotation() 156 TheCall->setType(Ty); in SemaBuiltinAnnotation() 160 static bool SemaBuiltinMSVCAnnotation(Sema &S, CallExpr *TheCall) { in SemaBuiltinMSVCAnnotation() argument 162 if (TheCall->getNumArgs() < 1) { in SemaBuiltinMSVCAnnotation() 163 S.Diag(TheCall->getEndLoc(), diag::err_typecheck_call_too_few_args_at_least) in SemaBuiltinMSVCAnnotation() 164 << 0 << 1 << TheCall->getNumArgs() in SemaBuiltinMSVCAnnotation() 165 << TheCall->getCallee()->getSourceRange(); in SemaBuiltinMSVCAnnotation() [all …]
|
| H A D | SemaOverload.cpp | 13326 CallExpr *TheCall = CXXOperatorCallExpr::Create( in CreateOverloadedUnaryOp() local 13330 if (CheckCallReturnType(FnDecl->getReturnType(), OpLoc, TheCall, FnDecl)) in CreateOverloadedUnaryOp() 13333 if (CheckFunctionCall(FnDecl, TheCall, in CreateOverloadedUnaryOp() 13336 return CheckForImmediateInvocation(MaybeBindToTemporary(TheCall), FnDecl); in CreateOverloadedUnaryOp() 13684 CXXOperatorCallExpr *TheCall = CXXOperatorCallExpr::Create( in CreateOverloadedBinOp() local 13688 if (CheckCallReturnType(FnDecl->getReturnType(), OpLoc, TheCall, in CreateOverloadedBinOp() 13714 isa<CXXMethodDecl>(FnDecl), OpLoc, TheCall->getSourceRange(), in CreateOverloadedBinOp() 13717 ExprResult R = MaybeBindToTemporary(TheCall); in CreateOverloadedBinOp() 14069 CXXOperatorCallExpr *TheCall = CXXOperatorCallExpr::Create( in CreateOverloadedArraySubscriptExpr() local 14072 if (CheckCallReturnType(FnDecl->getReturnType(), LLoc, TheCall, FnDecl)) in CreateOverloadedArraySubscriptExpr() [all …]
|
| H A D | SemaExprCXX.cpp | 3670 static bool resolveBuiltinNewDeleteOverload(Sema &S, CallExpr *TheCall, in resolveBuiltinNewDeleteOverload() argument 3677 LookupResult R(S, NewName, TheCall->getBeginLoc(), Sema::LookupOrdinaryName); in resolveBuiltinNewDeleteOverload() 3685 SmallVector<Expr *, 8> Args(TheCall->arg_begin(), TheCall->arg_end()); in resolveBuiltinNewDeleteOverload() 3707 SourceRange Range = TheCall->getSourceRange(); in resolveBuiltinNewDeleteOverload() 3760 CallExpr *TheCall = cast<CallExpr>(TheCallResult.get()); in SemaBuiltinOperatorNewDeleteOverloaded() local 3762 Diag(TheCall->getExprLoc(), diag::err_builtin_requires_language) in SemaBuiltinOperatorNewDeleteOverloaded() 3772 if (resolveBuiltinNewDeleteOverload(*this, TheCall, IsDelete, in SemaBuiltinOperatorNewDeleteOverloaded() 3777 DiagnoseUseOfDecl(OperatorNewOrDelete, TheCall->getExprLoc()); in SemaBuiltinOperatorNewDeleteOverloaded() 3778 MarkFunctionReferenced(TheCall->getExprLoc(), OperatorNewOrDelete); in SemaBuiltinOperatorNewDeleteOverloaded() 3780 TheCall->setType(OperatorNewOrDelete->getReturnType()); in SemaBuiltinOperatorNewDeleteOverloaded() [all …]
|
| H A D | SemaExpr.cpp | 6669 CallExpr *TheCall; in BuildResolvedCallExpr() local 6673 TheCall = CUDAKernelCallExpr::Create(Context, Fn, cast<CallExpr>(Config), in BuildResolvedCallExpr() 6677 TheCall = in BuildResolvedCallExpr() 6685 TheCall->shrinkNumArgs(Args.size()); in BuildResolvedCallExpr() 6690 ExprResult Result = CorrectDelayedTyposInExpr(TheCall); in BuildResolvedCallExpr() 6692 CallExpr *TheOldCall = TheCall; in BuildResolvedCallExpr() 6693 TheCall = dyn_cast<CallExpr>(Result.get()); in BuildResolvedCallExpr() 6694 bool CorrectedTypos = TheCall != TheOldCall; in BuildResolvedCallExpr() 6695 if (!TheCall) return Result; in BuildResolvedCallExpr() 6696 Args = llvm::makeArrayRef(TheCall->getArgs(), TheCall->getNumArgs()); in BuildResolvedCallExpr() [all …]
|
| H A D | TreeTransform.h | 3601 ExprResult TheCall = CallExpr::Create( in RebuildShuffleVectorExpr() local 3607 return SemaRef.SemaBuiltinShuffleVector(cast<CallExpr>(TheCall.get())); in RebuildShuffleVectorExpr()
|
| /netbsd-src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | MallocOverflowSecurityChecker.cpp | 311 if (const CallExpr *TheCall = dyn_cast<CallExpr>(CS->getStmt())) { in checkASTCodeBody() local 313 const FunctionDecl *FD = TheCall->getDirectCallee(); in checkASTCodeBody() 324 if (TheCall->getNumArgs() == 1) in checkASTCodeBody() 325 CheckMallocArgument(PossibleMallocOverflows, TheCall->getArg(0), in checkASTCodeBody()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/ |
| H A D | CodeExtractor.cpp | 1069 CallInst *TheCall) { in insertLifetimeMarkersSurroundingCall() argument 1073 Instruction *Term = TheCall->getParent()->getTerminator(); in insertLifetimeMarkersSurroundingCall() 1085 TheCall->getFunction()) && in insertLifetimeMarkersSurroundingCall() 1093 CastInst::CreatePointerCast(Mem, Int8PtrTy, "lt.cast", TheCall); in insertLifetimeMarkersSurroundingCall() 1098 Marker->insertBefore(TheCall); in insertLifetimeMarkersSurroundingCall() 1465 CallInst &TheCall) { in fixupDebugInfoPostExtraction() argument 1561 if (!TheCall.getDebugLoc()) in fixupDebugInfoPostExtraction() 1562 TheCall.setDebugLoc(DILocation::get(Ctx, 0, 0, OldSP)); in fixupDebugInfoPostExtraction() 1712 CallInst *TheCall = in extractCodeRegion() local 1720 oldFunction->getParent(), LifetimesStart.getArrayRef(), {}, TheCall); in extractCodeRegion() [all …]
|
| H A D | InlineFunction.cpp | 1395 static Value *HandleByValArgument(Value *Arg, Instruction *TheCall, in HandleByValArgument() argument 1402 Function *Caller = TheCall->getFunction(); in HandleByValArgument() 1420 if (getOrEnforceKnownAlignment(Arg, Align(ByValAlignment), DL, TheCall, in HandleByValArgument() 1494 Instruction *TheCall, bool CalleeHasDebugInfo) { in fixupLineNumbers() argument 1495 const DebugLoc &TheCallDL = TheCall->getDebugLoc(); in fixupLineNumbers() 1605 const CallBase &TheCall, ProfileSummaryInfo *PSI, in updateCallProfile() argument 1610 auto CallSiteCount = PSI ? PSI->getProfileCount(TheCall, CallerBFI) : None; in updateCallProfile()
|
| H A D | CloneFunction.cpp | 778 const char *NameSuffix, ClonedCodeInfo *CodeInfo, Instruction *TheCall) { in CloneAndPruneFunctionInto() argument
|
| /netbsd-src/external/apache2/llvm/dist/clang/include/clang/Sema/ |
| H A D | Sema.h | 12411 bool CheckFunctionCall(FunctionDecl *FDecl, CallExpr *TheCall, 12415 bool CheckPointerCall(NamedDecl *NDecl, CallExpr *TheCall, 12417 bool CheckOtherCall(CallExpr *TheCall, const FunctionProtoType *Proto); 12434 unsigned BuiltinID, CallExpr *TheCall); 12437 CallExpr *TheCall); 12439 void checkFortifiedBuiltinMemoryFunction(FunctionDecl *FD, CallExpr *TheCall); 12441 bool CheckARMBuiltinExclusiveCall(unsigned BuiltinID, CallExpr *TheCall, 12444 CallExpr *TheCall); 12445 bool CheckMVEBuiltinFunctionCall(unsigned BuiltinID, CallExpr *TheCall); 12446 bool CheckSVEBuiltinFunctionCall(unsigned BuiltinID, CallExpr *TheCall); [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Transforms/Utils/ |
| H A D | Cloning.h | 189 Instruction *TheCall = nullptr);
|
| /netbsd-src/external/apache2/llvm/dist/clang/lib/CodeGen/ |
| H A D | CGExprCXX.cpp | 1334 const CallExpr *TheCall, in EmitBuiltinNewDeleteCall() argument 1337 EmitCallArgs(Args, Type, TheCall->arguments()); in EmitBuiltinNewDeleteCall()
|
| H A D | CGObjC.cpp | 3730 CXXOperatorCallExpr *TheCall = CXXOperatorCallExpr::Create( in GenerateObjCAtomicSetterCopyHelperFunction() local 3734 EmitStmt(TheCall); in GenerateObjCAtomicSetterCopyHelperFunction()
|