Lines Matching refs:F

45 static std::pair<bool, bool> GetSignReturnAddress(const Function &F) {  in GetSignReturnAddress()  argument
46 if (F.hasFnAttribute("ptrauth-returns")) in GetSignReturnAddress()
51 if (!F.hasFnAttribute("sign-return-address")) in GetSignReturnAddress()
54 StringRef Scope = F.getFnAttribute("sign-return-address").getValueAsString(); in GetSignReturnAddress()
65 static bool ShouldSignWithBKey(const Function &F, const AArch64Subtarget &STI) { in ShouldSignWithBKey() argument
66 if (F.hasFnAttribute("ptrauth-returns")) in ShouldSignWithBKey()
68 if (!F.hasFnAttribute("sign-return-address-key")) { in ShouldSignWithBKey()
75 F.getFnAttribute("sign-return-address-key").getValueAsString(); in ShouldSignWithBKey()
80 static bool hasELFSignedGOTHelper(const Function &F, in hasELFSignedGOTHelper() argument
84 const Module *M = F.getParent(); in hasELFSignedGOTHelper()
92 AArch64FunctionInfo::AArch64FunctionInfo(const Function &F, in AArch64FunctionInfo() argument
96 if (F.hasFnAttribute(Attribute::NoRedZone)) in AArch64FunctionInfo()
98 std::tie(SignReturnAddress, SignReturnAddressAll) = GetSignReturnAddress(F); in AArch64FunctionInfo()
99 SignWithBKey = ShouldSignWithBKey(F, *STI); in AArch64FunctionInfo()
100 HasELFSignedGOT = hasELFSignedGOTHelper(F, STI); in AArch64FunctionInfo()
102 IsMTETagged = F.hasFnAttribute(Attribute::SanitizeMemTag); in AArch64FunctionInfo()
105 BranchTargetEnforcement = F.hasFnAttribute("branch-target-enforcement"); in AArch64FunctionInfo()
106 BranchProtectionPAuthLR = F.hasFnAttribute("branch-protection-pauth-lr"); in AArch64FunctionInfo()
109 SMEFnAttrs = SMEAttrs(F); in AArch64FunctionInfo()
115 if (F.hasFnAttribute("stack-probe-size")) in AArch64FunctionInfo()
116 ProbeSize = F.getFnAttributeAsParsedInteger("stack-probe-size"); in AArch64FunctionInfo()
118 F.getParent()->getModuleFlag("stack-probe-size"))) in AArch64FunctionInfo()
123 if (!F.hasFnAttribute("no-stack-arg-probe")) in AArch64FunctionInfo()
131 if (F.hasFnAttribute("probe-stack")) in AArch64FunctionInfo()
132 ProbeKind = F.getFnAttribute("probe-stack").getValueAsString(); in AArch64FunctionInfo()
134 F.getParent()->getModuleFlag("probe-stack"))) in AArch64FunctionInfo()
194 const Function &F = MF.getFunction(); in needsAsyncDwarfUnwindInfo() local
201 ((F.getUWTableKind() == UWTableKind::Async && !F.hasMinSize()) || in needsAsyncDwarfUnwindInfo()