Lines Matching defs:TargetDecl

1834                             const Decl *TargetDecl) {
1846 if (TargetDecl) {
1847 if (const FunctionDecl *FDecl = dyn_cast<FunctionDecl>(TargetDecl)) {
1850 } else if (const VarDecl *VDecl = dyn_cast<VarDecl>(TargetDecl)) {
2255 static bool IsArgumentMaybeUndef(const Decl *TargetDecl,
2257 const auto *FD = dyn_cast_or_null<FunctionDecl>(TargetDecl);
2357 const Decl *TargetDecl = CalleeInfo.getCalleeDecl().getDecl();
2361 AddAttributesFromOMPAssumes(FuncAttrs, TargetDecl);
2379 if (TargetDecl) {
2380 if (TargetDecl->hasAttr<ReturnsTwiceAttr>())
2382 if (TargetDecl->hasAttr<NoThrowAttr>())
2384 if (TargetDecl->hasAttr<NoReturnAttr>())
2386 if (TargetDecl->hasAttr<ColdAttr>())
2388 if (TargetDecl->hasAttr<HotAttr>())
2390 if (TargetDecl->hasAttr<NoDuplicateAttr>())
2392 if (TargetDecl->hasAttr<ConvergentAttr>())
2395 if (const FunctionDecl *Fn = dyn_cast<FunctionDecl>(TargetDecl)) {
2416 if (isa<FunctionDecl>(TargetDecl) || isa<VarDecl>(TargetDecl)) {
2419 if (AttrOnCallSite && TargetDecl->hasAttr<NoMergeAttr>())
2424 if (TargetDecl->hasAttr<ConstAttr>()) {
2430 } else if (TargetDecl->hasAttr<PureAttr>()) {
2435 } else if (TargetDecl->hasAttr<NoAliasAttr>()) {
2439 if (TargetDecl->hasAttr<RestrictAttr>())
2441 if (TargetDecl->hasAttr<ReturnsNonNullAttr>() &&
2444 if (TargetDecl->hasAttr<AnyX86NoCallerSavedRegistersAttr>())
2446 if (TargetDecl->hasAttr<AnyX86NoCfCheckAttr>())
2448 if (TargetDecl->hasAttr<LeafAttr>())
2450 if (TargetDecl->hasAttr<BPFFastCallAttr>())
2453 HasOptnone = TargetDecl->hasAttr<OptimizeNoneAttr>();
2454 if (auto *AllocSize = TargetDecl->getAttr<AllocSizeAttr>()) {
2462 if (TargetDecl->hasAttr<OpenCLKernelAttr>()) {
2478 if (TargetDecl->hasAttr<CUDAGlobalAttr>() &&
2482 if (TargetDecl->hasAttr<ArmLocallyStreamingAttr>())
2499 if (TargetDecl) {
2500 if (TargetDecl->hasAttr<NoSpeculativeLoadHardeningAttr>())
2502 if (TargetDecl->hasAttr<SpeculativeLoadHardeningAttr>())
2504 if (TargetDecl->hasAttr<NoSplitStackAttr>())
2506 if (TargetDecl->hasAttr<ZeroCallUsedRegsAttr>()) {
2509 TargetDecl->getAttr<ZeroCallUsedRegsAttr>()->getZeroCallUsedRegs();
2521 if (auto *Fn = dyn_cast<FunctionDecl>(TargetDecl)) {
2528 if (TargetDecl->hasAttr<NoConvergentAttr>())
2534 if (TargetDecl && CodeGenOpts.UniqueInternalLinkageNames) {
2535 if (const auto *FD = dyn_cast_or_null<FunctionDecl>(TargetDecl)) {
2545 if (TargetDecl && TargetDecl->hasAttr<CmseNSEntryAttr>())
2554 if (!TargetDecl)
2557 if (TargetDecl->hasAttr<DisableTailCallsAttr>() ||
2558 TargetDecl->hasAttr<AnyX86InterruptAttr>())
2562 if (const auto *BD = dyn_cast<BlockDecl>(TargetDecl))
2586 HasStrictReturn(*this, RetTy, TargetDecl)) {
2831 if (TargetDecl && TargetDecl->hasAttr<OpenCLKernelAttr>() &&
5097 const Decl *TargetDecl = Callee.getAbstractInfo().getCalleeDecl().getDecl();
5098 if (const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(TargetDecl)) {
5105 if (TargetDecl->hasAttr<AlwaysInlineAttr>() &&
5106 (TargetDecl->hasAttr<TargetAttr>() ||
5114 const FunctionDecl *CalleeDecl = dyn_cast_or_null<FunctionDecl>(TargetDecl);
5204 IsArgumentMaybeUndef(TargetDecl, CallInfo.getNumRequiredArgs(), ArgNo);
5703 !(TargetDecl && TargetDecl->hasAttr<NoInlineAttr>()) &&
5749 !isa_and_nonnull<FunctionDecl>(TargetDecl))
5760 AssumeAlignedAttrEmitter AssumeAlignedAttrEmitter(*this, TargetDecl);
5763 AllocAlignAttrEmitter AllocAlignAttrEmitter(*this, TargetDecl, CallArgs);
5823 if (TargetDecl && TargetDecl->hasAttr<NotTailCalledAttr>())
5834 else if (isa_and_nonnull<FunctionDecl>(TargetDecl)) {
5835 if (!cast<FunctionDecl>(TargetDecl)->isDefined())
5840 {cast<FunctionDecl>(TargetDecl), Loc});
5843 GlobalDecl(cast<FunctionDecl>(TargetDecl)));
5857 if (getDebugInfo() && TargetDecl &&
5858 TargetDecl->hasAttr<MSAllocatorAttr>())
5862 if (TargetDecl && TargetDecl->hasAttr<ErrorAttr>()) {
6070 if (Ret.isScalar() && TargetDecl) {