Parses a target syncscope string into its abstract scope, the inverse of getAtomicScopeIRString. Returns the scope and whether it is the single address space variant.
Declared in <llvm/TargetParser/AtomicScope.h>
std::optional<std::pair<AtomicScope, bool>>
parseAtomicScopeIRString(
Triple const& T,
StringRef Name);
Class template for optional values.
| Name | Description |
|---|---|
| T | Triple - Helper class for working with autoconf configuration names. For historical reasons, we also call these 'triples' (they used to contain exactly three fields). |
| Name | Represent a constant reference to a string, i.e. a character array and a length, which need not be null terminated. |