Returns the LLVM IR syncscope string that T uses to spell S.
Synopsis
Declared in <llvm/TargetParser/AtomicScope.h>
std::optional<StringRef>
getAtomicScopeIRString(
Triple const& T,
AtomicScope S,
bool IsSingleAddressSpace = false);
Return Value
The syncscope string spelling, or std::nullopt if the target or scope is unsupported.
Parameters
Name |
Description |
T |
Target triple that selects the syncscope spelling. |
S |
Abstract atomic scope to spell. |
IsSingleAddressSpace |
Whether to request the single‐address‐space syncscope variant when the target supports one. |
Created with MrDocs