Lines Matching +full:proc +full:- +full:id
1 //===--- TargetID.cpp - Utilities for parsing target ID -------------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
21 llvm::StringRef Proc) { in getAllPossibleAMDGPUTargetIDFeatures() argument
24 auto ProcKind = T.isAMDGCN() ? llvm::AMDGPU::parseArchAMDGCN(Proc) in getAllPossibleAMDGPUTargetIDFeatures()
25 : llvm::AMDGPU::parseArchR600(Proc); in getAllPossibleAMDGPUTargetIDFeatures()
60 // Parse a target ID with format checking only. Do not check whether processor
63 // A target ID is a processor name followed by a list of target features
64 // delimited by colon. Each target feature is a string post-fixed by a plus
65 // or minus sign, e.g. gfx908:sramecc+:xnack-.
91 if (Sign != '+' && Sign != '-') in parseTargetIDWithFormatCheckingOnly()
94 auto Loc = FeatureMap->find(Feature); in parseTargetIDWithFormatCheckingOnly()
95 // Each feature can only show up at most once in target ID. in parseTargetIDWithFormatCheckingOnly()
96 if (Loc != FeatureMap->end()) in parseTargetIDWithFormatCheckingOnly()
128 // A canonical target ID is a target ID containing a canonical processor name
137 TargetID = TargetID + ':' + F.first.str() + (F.second ? "+" : "-"); in getCanonicalTargetID()
142 // does not show up in any target IDs. Otherwise the target ID combination
151 for (auto &&ID : TargetIDs) { in getConflictTargetIDCombination()
153 llvm::StringRef Proc = *parseTargetIDWithFormatCheckingOnly(ID, &Features); in getConflictTargetIDCombination() local
154 auto Loc = FeatureMap.find(Proc); in getConflictTargetIDCombination()
156 FeatureMap[Proc] = Info{ID, Features}; in getConflictTargetIDCombination()
158 auto &ExistingFeatures = Loc->second.Features; in getConflictTargetIDCombination()
162 return std::make_pair(Loc->second.TargetID, ID); in getConflictTargetIDCombination()
183 if (Loc->second != F.second) in isCompatibleTargetID()