ΒΆllvm::Optional<llvm::StringRef> parseTargetID(
    const llvm::Triple& T,
    llvm::StringRef OffloadArch,
    llvm::StringMap<bool>* FeatureMap)

Description

Parse a target ID to get processor and feature map. Returns canonicalized processor name or None if the target ID is invalid. Returns target ID features in \p FeatureMap if it is not null pointer. This function assumes \p OffloadArch is a valid target ID. If the target ID contains feature+, map it to true. If the target ID contains feature-, map it to false. If the target ID does not contain a feature (default), do not map it.

Declared at: clang/include/clang/Basic/TargetID.h:41

Parameters

const llvm::Triple& T
llvm::StringRef OffloadArch
llvm::StringMap<bool>* FeatureMap