Home
last modified time | relevance | path

Searched refs:PBP (Results 1 – 5 of 5) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/TargetParser/
H A DARMTargetParserCommon.cpp142 bool ARM::parseBranchProtection(StringRef Spec, ParsedBranchProtection &PBP, in parseBranchProtection() argument
144 PBP = {"none", "a_key", false, false, false}; in parseBranchProtection()
149 PBP.Scope = "non-leaf"; in parseBranchProtection()
150 PBP.BranchTargetEnforcement = true; in parseBranchProtection()
151 PBP.GuardedControlStack = true; in parseBranchProtection()
152 PBP.BranchProtectionPAuthLR = EnablePAuthLR; in parseBranchProtection()
161 PBP.BranchTargetEnforcement = true; in parseBranchProtection()
165 PBP.Scope = "non-leaf"; in parseBranchProtection()
169 PBP.Scope = "all"; in parseBranchProtection()
171 PBP.Key = "b_key"; in parseBranchProtection()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Basic/Targets/
H A DAArch64.cpp258 llvm::ARM::ParsedBranchProtection PBP; in validateBranchProtection() local
259 if (!llvm::ARM::parseBranchProtection(Spec, PBP, Err, HasPAuthLR)) in validateBranchProtection()
265 (PBP.Scope != "none" || PBP.BranchProtectionPAuthLR || in validateBranchProtection()
266 PBP.GuardedControlStack)) in validateBranchProtection()
270 llvm::StringSwitch<LangOptions::SignReturnAddressScopeKind>(PBP.Scope) in validateBranchProtection()
275 if (PBP.Key == "a_key") in validateBranchProtection()
280 BPI.BranchTargetEnforcement = PBP.BranchTargetEnforcement; in validateBranchProtection()
281 BPI.BranchProtectionPAuthLR = PBP.BranchProtectionPAuthLR; in validateBranchProtection()
282 BPI.GuardedControlStack = PBP.GuardedControlStack; in validateBranchProtection()
H A DARM.cpp409 llvm::ARM::ParsedBranchProtection PBP; in validateBranchProtection() local
410 if (!llvm::ARM::parseBranchProtection(Spec, PBP, Err)) in validateBranchProtection()
417 llvm::StringSwitch<LangOptions::SignReturnAddressScopeKind>(PBP.Scope) in validateBranchProtection()
423 if (PBP.Key == "b_key") in validateBranchProtection()
427 BPI.BranchTargetEnforcement = PBP.BranchTargetEnforcement; in validateBranchProtection()
428 BPI.BranchProtectionPAuthLR = PBP.BranchProtectionPAuthLR; in validateBranchProtection()
/freebsd/contrib/llvm-project/llvm/include/llvm/TargetParser/
H A DARMTargetParserCommon.h49 LLVM_ABI bool parseBranchProtection(StringRef Spec, ParsedBranchProtection &PBP,
/freebsd/contrib/llvm-project/clang/lib/Driver/ToolChains/
H A DClang.cpp1433 llvm::ARM::ParsedBranchProtection PBP; in CollectARMPACBTIOptions() local
1450 if (!llvm::ARM::parseBranchProtection(A->getValue(), PBP, DiagMsg, in CollectARMPACBTIOptions()
1454 if (!isAArch64 && PBP.Key == "b_key") in CollectARMPACBTIOptions()
1457 Scope = PBP.Scope; in CollectARMPACBTIOptions()
1458 Key = PBP.Key; in CollectARMPACBTIOptions()
1459 BranchProtectionPAuthLR = PBP.BranchProtectionPAuthLR; in CollectARMPACBTIOptions()
1460 IndirectBranches = PBP.BranchTargetEnforcement; in CollectARMPACBTIOptions()
1461 GuardedControlStack = PBP.GuardedControlStack; in CollectARMPACBTIOptions()