• Home
  • Raw
  • Download

Lines Matching refs:VMI

139     const VariantMatchInfo &VMI, const OMPContext &Ctx,  in isVariantApplicableInContextHelper()  argument
149 if (VMI.RequiredTraits.test( in isVariantApplicableInContextHelper()
152 if (VMI.RequiredTraits.test( in isVariantApplicableInContextHelper()
188 for (unsigned Bit : VMI.RequiredTraits.set_bits()) { in isVariantApplicableInContextHelper()
205 IsActiveTrait = llvm::all_of(VMI.ISATraits, [&](StringRef RawString) { in isVariantApplicableInContextHelper()
218 for (TraitProperty Property : VMI.ConstructTraits) { in isVariantApplicableInContextHelper()
244 assert(isSubset<TraitProperty>(VMI.ConstructTraits, Ctx.ConstructTraits) && in isVariantApplicableInContextHelper()
258 bool llvm::omp::isVariantApplicableInContext(const VariantMatchInfo &VMI, in isVariantApplicableInContext() argument
262 VMI, Ctx, /* ConstructMatches */ nullptr, DeviceSetOnly); in isVariantApplicableInContext()
265 static APInt getVariantMatchScore(const VariantMatchInfo &VMI, in getVariantMatchScore() argument
270 unsigned NoConstructTraits = VMI.ConstructTraits.size(); in getVariantMatchScore()
271 for (unsigned Bit : VMI.RequiredTraits.set_bits()) { in getVariantMatchScore()
274 if (VMI.ScoreMap.count(Property)) { in getVariantMatchScore()
275 const APInt &UserScore = VMI.ScoreMap.lookup(Property); in getVariantMatchScore()
321 for (TraitProperty Property : VMI.ConstructTraits) { in getVariantMatchScore()
343 const VariantMatchInfo &VMI = VMIs[u]; in getBestVariantMatchForContext() local
347 if (!isVariantApplicableInContextHelper(VMI, Ctx, &ConstructMatches, in getBestVariantMatchForContext()
351 APInt Score = getVariantMatchScore(VMI, Ctx, ConstructMatches); in getBestVariantMatchForContext()
357 if (isStrictSubset(VMI, *BestVMI)) in getBestVariantMatchForContext()
360 if (!isStrictSubset(*BestVMI, VMI)) in getBestVariantMatchForContext()
364 BestVMI = &VMI; in getBestVariantMatchForContext()