Lines Matching refs:F
40 static std::pair<bool, bool> GetSignReturnAddress(const Function &F) { in GetSignReturnAddress() argument
44 if (!F.hasFnAttribute("sign-return-address")) { in GetSignReturnAddress()
45 const Module &M = *F.getParent(); in GetSignReturnAddress()
58 StringRef Scope = F.getFnAttribute("sign-return-address").getValueAsString(); in GetSignReturnAddress()
69 static bool ShouldSignWithBKey(const Function &F, const AArch64Subtarget &STI) { in ShouldSignWithBKey() argument
70 if (!F.hasFnAttribute("sign-return-address-key")) { in ShouldSignWithBKey()
72 F.getParent()->getModuleFlag("sign-return-address-with-bkey"))) in ShouldSignWithBKey()
80 F.getFnAttribute("sign-return-address-key").getValueAsString(); in ShouldSignWithBKey()
85 AArch64FunctionInfo::AArch64FunctionInfo(const Function &F, in AArch64FunctionInfo() argument
89 if (F.hasFnAttribute(Attribute::NoRedZone)) in AArch64FunctionInfo()
91 std::tie(SignReturnAddress, SignReturnAddressAll) = GetSignReturnAddress(F); in AArch64FunctionInfo()
92 SignWithBKey = ShouldSignWithBKey(F, *STI); in AArch64FunctionInfo()
94 IsMTETagged = F.hasFnAttribute(Attribute::SanitizeMemTag); in AArch64FunctionInfo()
102 if (F.hasFnAttribute(AttrName)) { in AArch64FunctionInfo()
103 const StringRef V = F.getFnAttribute(AttrName).getValueAsString(); in AArch64FunctionInfo()
107 F.getParent()->getModuleFlag(AttrName))) { in AArch64FunctionInfo()
119 if (F.hasFnAttribute("stack-probe-size")) in AArch64FunctionInfo()
120 ProbeSize = F.getFnAttributeAsParsedInteger("stack-probe-size"); in AArch64FunctionInfo()
122 F.getParent()->getModuleFlag("stack-probe-size"))) in AArch64FunctionInfo()
127 if (!F.hasFnAttribute("no-stack-arg-probe")) in AArch64FunctionInfo()
135 if (F.hasFnAttribute("probe-stack")) in AArch64FunctionInfo()
136 ProbeKind = F.getFnAttribute("probe-stack").getValueAsString(); in AArch64FunctionInfo()
138 F.getParent()->getModuleFlag("probe-stack"))) in AArch64FunctionInfo()
198 const Function &F = MF.getFunction(); in needsAsyncDwarfUnwindInfo() local
203 F.getUWTableKind() == UWTableKind::Async && in needsAsyncDwarfUnwindInfo()
204 !F.hasMinSize(); in needsAsyncDwarfUnwindInfo()