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.

Synopsis

Declared in <llvm/TargetParser/AtomicScope.h>

std::optional<std::pair<AtomicScope, bool>>
parseAtomicScopeIRString(
    Triple const& T,
    StringRef Name);

Return Value

Class template for optional values.

Parameters

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.

Created with MrDocs