Lines Matching refs:TargetDecl

2087   const Decl *TargetDecl = CalleeInfo.getCalleeDecl().getDecl();  in ConstructAttributeList()  local
2091 AddAttributesFromAssumes(FuncAttrs, TargetDecl); in ConstructAttributeList()
2100 if (TargetDecl) { in ConstructAttributeList()
2101 if (TargetDecl->hasAttr<ReturnsTwiceAttr>()) in ConstructAttributeList()
2103 if (TargetDecl->hasAttr<NoThrowAttr>()) in ConstructAttributeList()
2105 if (TargetDecl->hasAttr<NoReturnAttr>()) in ConstructAttributeList()
2107 if (TargetDecl->hasAttr<ColdAttr>()) in ConstructAttributeList()
2109 if (TargetDecl->hasAttr<HotAttr>()) in ConstructAttributeList()
2111 if (TargetDecl->hasAttr<NoDuplicateAttr>()) in ConstructAttributeList()
2113 if (TargetDecl->hasAttr<ConvergentAttr>()) in ConstructAttributeList()
2116 if (const FunctionDecl *Fn = dyn_cast<FunctionDecl>(TargetDecl)) { in ConstructAttributeList()
2137 if (AttrOnCallSite && TargetDecl->hasAttr<NoMergeAttr>()) in ConstructAttributeList()
2142 if (TargetDecl->hasAttr<ConstAttr>()) { in ConstructAttributeList()
2148 } else if (TargetDecl->hasAttr<PureAttr>()) { in ConstructAttributeList()
2153 } else if (TargetDecl->hasAttr<NoAliasAttr>()) { in ConstructAttributeList()
2157 if (TargetDecl->hasAttr<RestrictAttr>()) in ConstructAttributeList()
2159 if (TargetDecl->hasAttr<ReturnsNonNullAttr>() && in ConstructAttributeList()
2162 if (TargetDecl->hasAttr<AnyX86NoCallerSavedRegistersAttr>()) in ConstructAttributeList()
2164 if (TargetDecl->hasAttr<AnyX86NoCfCheckAttr>()) in ConstructAttributeList()
2166 if (TargetDecl->hasAttr<LeafAttr>()) in ConstructAttributeList()
2169 HasOptnone = TargetDecl->hasAttr<OptimizeNoneAttr>(); in ConstructAttributeList()
2170 if (auto *AllocSize = TargetDecl->getAttr<AllocSizeAttr>()) { in ConstructAttributeList()
2178 if (TargetDecl->hasAttr<OpenCLKernelAttr>()) { in ConstructAttributeList()
2207 if (TargetDecl) { in ConstructAttributeList()
2208 if (TargetDecl->hasAttr<NoSpeculativeLoadHardeningAttr>()) in ConstructAttributeList()
2210 if (TargetDecl->hasAttr<SpeculativeLoadHardeningAttr>()) in ConstructAttributeList()
2212 if (TargetDecl->hasAttr<NoSplitStackAttr>()) in ConstructAttributeList()
2214 if (TargetDecl->hasAttr<ZeroCallUsedRegsAttr>()) { in ConstructAttributeList()
2217 TargetDecl->getAttr<ZeroCallUsedRegsAttr>()->getZeroCallUsedRegs(); in ConstructAttributeList()
2229 if (auto *Fn = dyn_cast<FunctionDecl>(TargetDecl)) { in ConstructAttributeList()
2239 if (TargetDecl && CodeGenOpts.UniqueInternalLinkageNames) { in ConstructAttributeList()
2240 if (isa<FunctionDecl>(TargetDecl)) { in ConstructAttributeList()
2251 if (TargetDecl && TargetDecl->hasAttr<CmseNSEntryAttr>()) in ConstructAttributeList()
2260 if (!TargetDecl) in ConstructAttributeList()
2263 if (TargetDecl->hasAttr<DisableTailCallsAttr>() || in ConstructAttributeList()
2264 TargetDecl->hasAttr<AnyX86InterruptAttr>()) in ConstructAttributeList()
2268 if (const auto *BD = dyn_cast<BlockDecl>(TargetDecl)) in ConstructAttributeList()
2293 if (TargetDecl && HasStrictReturn) { in ConstructAttributeList()
2294 if (const FunctionDecl *FDecl = dyn_cast<FunctionDecl>(TargetDecl)) in ConstructAttributeList()
2296 else if (const VarDecl *VDecl = dyn_cast<VarDecl>(TargetDecl)) in ConstructAttributeList()
2546 if (TargetDecl && TargetDecl->hasAttr<OpenCLKernelAttr>() && in ConstructAttributeList()
4711 const Decl *TargetDecl = Callee.getAbstractInfo().getCalleeDecl().getDecl(); in EmitCall() local
4712 if (const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(TargetDecl)) { in EmitCall()
4719 if (TargetDecl->hasAttr<AlwaysInlineAttr>() && in EmitCall()
4720 TargetDecl->hasAttr<TargetAttr>()) in EmitCall()
5284 !(TargetDecl && TargetDecl->hasAttr<NoInlineAttr>())) { in EmitCall()
5332 AssumeAlignedAttrEmitter AssumeAlignedAttrEmitter(*this, TargetDecl); in EmitCall()
5335 AllocAlignAttrEmitter AllocAlignAttrEmitter(*this, TargetDecl, CallArgs); in EmitCall()
5388 if (TargetDecl && TargetDecl->hasAttr<NotTailCalledAttr>()) in EmitCall()
5395 if (getDebugInfo() && TargetDecl && in EmitCall()
5396 TargetDecl->hasAttr<MSAllocatorAttr>()) in EmitCall()
5400 if (TargetDecl && TargetDecl->hasAttr<ErrorAttr>()) { in EmitCall()
5582 if (Ret.isScalar() && TargetDecl) { in EmitCall()