Parses a target syncscope string into its abstract scope.
Declared in <llvm/TargetParser/AtomicScope.h>
std::optional<std::pair<AtomicScope, bool>>
parseAtomicScopeIRString(
Triple const& T,
StringRef Name);
This is the inverse of getAtomicScopeIRString. Returns the scope and whether it is the single address space variant.
The abstract scope and whether it is the single-address-space variant, or std::nullopt if Name is unrecognized for T.
| Name | Description |
|---|---|
| T | Target triple that selects the syncscope spelling. |
| Name | LLVM IR syncscope string to parse. |