Lines Matching defs:TargetDecl
1808 const Decl *TargetDecl) {
1820 if (TargetDecl) {
1821 if (const FunctionDecl *FDecl = dyn_cast<FunctionDecl>(TargetDecl)) {
1824 } else if (const VarDecl *VDecl = dyn_cast<VarDecl>(TargetDecl)) {
2226 static bool IsArgumentMaybeUndef(const Decl *TargetDecl,
2228 const auto *FD = dyn_cast_or_null<FunctionDecl>(TargetDecl);
2328 const Decl *TargetDecl = CalleeInfo.getCalleeDecl().getDecl();
2332 AddAttributesFromOMPAssumes(FuncAttrs, TargetDecl);
2350 if (TargetDecl) {
2351 if (TargetDecl->hasAttr<ReturnsTwiceAttr>())
2353 if (TargetDecl->hasAttr<NoThrowAttr>())
2355 if (TargetDecl->hasAttr<NoReturnAttr>())
2357 if (TargetDecl->hasAttr<ColdAttr>())
2359 if (TargetDecl->hasAttr<HotAttr>())
2361 if (TargetDecl->hasAttr<NoDuplicateAttr>())
2363 if (TargetDecl->hasAttr<ConvergentAttr>())
2366 if (const FunctionDecl *Fn = dyn_cast<FunctionDecl>(TargetDecl)) {
2387 if (isa<FunctionDecl>(TargetDecl) || isa<VarDecl>(TargetDecl)) {
2390 if (AttrOnCallSite && TargetDecl->hasAttr<NoMergeAttr>())
2395 if (TargetDecl->hasAttr<ConstAttr>()) {
2401 } else if (TargetDecl->hasAttr<PureAttr>()) {
2406 } else if (TargetDecl->hasAttr<NoAliasAttr>()) {
2410 if (TargetDecl->hasAttr<RestrictAttr>())
2412 if (TargetDecl->hasAttr<ReturnsNonNullAttr>() &&
2415 if (TargetDecl->hasAttr<AnyX86NoCallerSavedRegistersAttr>())
2417 if (TargetDecl->hasAttr<AnyX86NoCfCheckAttr>())
2419 if (TargetDecl->hasAttr<LeafAttr>())
2422 HasOptnone = TargetDecl->hasAttr<OptimizeNoneAttr>();
2423 if (auto *AllocSize = TargetDecl->getAttr<AllocSizeAttr>()) {
2431 if (TargetDecl->hasAttr<OpenCLKernelAttr>()) {
2447 if (TargetDecl->hasAttr<CUDAGlobalAttr>() &&
2451 if (TargetDecl->hasAttr<ArmLocallyStreamingAttr>())
2468 if (TargetDecl) {
2469 if (TargetDecl->hasAttr<NoSpeculativeLoadHardeningAttr>())
2471 if (TargetDecl->hasAttr<SpeculativeLoadHardeningAttr>())
2473 if (TargetDecl->hasAttr<NoSplitStackAttr>())
2475 if (TargetDecl->hasAttr<ZeroCallUsedRegsAttr>()) {
2478 TargetDecl->getAttr<ZeroCallUsedRegsAttr>()->getZeroCallUsedRegs();
2490 if (auto *Fn = dyn_cast<FunctionDecl>(TargetDecl)) {
2500 if (TargetDecl && CodeGenOpts.UniqueInternalLinkageNames) {
2501 if (const auto *FD = dyn_cast_or_null<FunctionDecl>(TargetDecl)) {
2511 if (TargetDecl && TargetDecl->hasAttr<CmseNSEntryAttr>())
2520 if (!TargetDecl)
2523 if (TargetDecl->hasAttr<DisableTailCallsAttr>() ||
2524 TargetDecl->hasAttr<AnyX86InterruptAttr>())
2528 if (const auto *BD = dyn_cast<BlockDecl>(TargetDecl))
2552 HasStrictReturn(*this, RetTy, TargetDecl)) {
2793 if (TargetDecl && TargetDecl->hasAttr<OpenCLKernelAttr>() &&
5029 const Decl *TargetDecl = Callee.getAbstractInfo().getCalleeDecl().getDecl();
5030 if (const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(TargetDecl)) {
5037 if (TargetDecl->hasAttr<AlwaysInlineAttr>() &&
5038 (TargetDecl->hasAttr<TargetAttr>() ||
5047 dyn_cast_or_null<FunctionDecl>(TargetDecl), CallArgs, RetTy);
5131 IsArgumentMaybeUndef(TargetDecl, CallInfo.getNumRequiredArgs(), ArgNo);
5622 !(TargetDecl && TargetDecl->hasAttr<NoInlineAttr>())) {
5666 !isa_and_nonnull<FunctionDecl>(TargetDecl))
5677 AssumeAlignedAttrEmitter AssumeAlignedAttrEmitter(*this, TargetDecl);
5680 AllocAlignAttrEmitter AllocAlignAttrEmitter(*this, TargetDecl, CallArgs);
5740 if (TargetDecl && TargetDecl->hasAttr<NotTailCalledAttr>())
5751 else if (isa_and_nonnull<FunctionDecl>(TargetDecl)) {
5752 if (!cast<FunctionDecl>(TargetDecl)->isDefined())
5757 {cast<FunctionDecl>(TargetDecl), Loc});
5760 GlobalDecl(cast<FunctionDecl>(TargetDecl)));
5774 if (getDebugInfo() && TargetDecl &&
5775 TargetDecl->hasAttr<MSAllocatorAttr>())
5779 if (TargetDecl && TargetDecl->hasAttr<ErrorAttr>()) {
5987 if (Ret.isScalar() && TargetDecl) {