Lines Matching refs:BPI
211 const TargetInfo::BranchProtectionInfo &BPI, llvm::Function &F) { in setBranchProtectionFnAttributes() argument
215 if (BPI.SignReturnAddr != LangOptions::SignReturnAddressScopeKind::None) { in setBranchProtectionFnAttributes()
216 F.addFnAttr("sign-return-address", BPI.getSignReturnAddrStr()); in setBranchProtectionFnAttributes()
217 F.addFnAttr("sign-return-address-key", BPI.getSignKeyStr()); in setBranchProtectionFnAttributes()
232 AddRemoveAttributeAsSet(BPI.BranchTargetEnforcement, in setBranchProtectionFnAttributes()
234 AddRemoveAttributeAsSet(BPI.BranchProtectionPAuthLR, in setBranchProtectionFnAttributes()
236 AddRemoveAttributeAsSet(BPI.GuardedControlStack, "guarded-control-stack"); in setBranchProtectionFnAttributes()
240 const TargetInfo::BranchProtectionInfo &BPI, llvm::AttrBuilder &FuncAttrs) { in initBranchProtectionFnAttributes() argument
243 if (BPI.SignReturnAddr != LangOptions::SignReturnAddressScopeKind::None) { in initBranchProtectionFnAttributes()
244 FuncAttrs.addAttribute("sign-return-address", BPI.getSignReturnAddrStr()); in initBranchProtectionFnAttributes()
245 FuncAttrs.addAttribute("sign-return-address-key", BPI.getSignKeyStr()); in initBranchProtectionFnAttributes()
247 if (BPI.BranchTargetEnforcement) in initBranchProtectionFnAttributes()
249 if (BPI.BranchProtectionPAuthLR) in initBranchProtectionFnAttributes()
251 if (BPI.GuardedControlStack) in initBranchProtectionFnAttributes()