Home
last modified time | relevance | path

Searched refs:Candidate (Results 1 – 25 of 90) sorted by relevance

1234

/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DStraightLineStrengthReduce.cpp133 struct Candidate { struct in __anonacd047fe0111::StraightLineStrengthReduce
141 Candidate() = default;
175 Candidate *Basis = nullptr; argument
183 bool isBasisFor(const Candidate &Basis, const Candidate &C);
228 void rewriteCandidateWithBasis(const Candidate &C, const Candidate &Basis);
237 static Value *emitBump(const Candidate &Basis, const Candidate &C,
345 Candidate C(CT, B, Idx, S, I); in allocateCandidatesAndFindBasis()
614 const Candidate &C, const Candidate &Basis) { in rewriteCandidateWithBasis()
632 case Candidate::Add: in rewriteCandidateWithBasis()
633 case Candidate::Mul: { in rewriteCandidateWithBasis()
[all …]
H A DNaryReassociate.cpp419 Value *Candidate = findClosestMatchingDominator(CandidateExpr, GEP); in tryReassociateGEPAtIndex() local
420 if (Candidate == nullptr) in tryReassociateGEPAtIndex()
427 Candidate = Builder.CreateBitOrPointerCast(Candidate, GEP->getType()); in tryReassociateGEPAtIndex()
428 assert(Candidate->getType() == GEP->getType()); in tryReassociateGEPAtIndex()
460 Builder.CreateGEP(GEP->getResultElementType(), Candidate, RHS)); in tryReassociateGEPAtIndex()
569 if (Value *Candidate = Candidates.back()) { in findClosestMatchingDominator() local
570 Instruction *CandidateInstruction = cast<Instruction>(Candidate); in findClosestMatchingDominator()
/freebsd-14.2/contrib/llvm-project/clang/lib/Analysis/
H A DThreadSafetyTIL.cpp209 BasicBlock *Candidate = nullptr; in computeDominator() local
215 if (Candidate == nullptr) { in computeDominator()
216 Candidate = Pred; in computeDominator()
221 while (Alternate != Candidate) { in computeDominator()
223 Candidate = Candidate->DominatorNode.Parent; in computeDominator()
228 DominatorNode.Parent = Candidate; in computeDominator()
236 BasicBlock *Candidate = nullptr; in computePostDominator() local
242 if (Candidate == nullptr) { in computePostDominator()
243 Candidate = Succ; in computePostDominator()
248 while (Alternate != Candidate) { in computePostDominator()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/
H A DVLIWMachineScheduler.cpp791 if (!Candidate.SU) { in pickNodeFromQueue()
793 Candidate.SU = *I; in pickNodeFromQueue()
794 Candidate.RPDelta = RPDelta; in pickNodeFromQueue()
795 Candidate.SCost = CurrentCost; in pickNodeFromQueue()
806 Candidate.SU = *I; in pickNodeFromQueue()
807 Candidate.RPDelta = RPDelta; in pickNodeFromQueue()
817 Candidate.SU = *I; in pickNodeFromQueue()
818 Candidate.RPDelta = RPDelta; in pickNodeFromQueue()
830 Candidate.SU = *I; in pickNodeFromQueue()
849 Candidate.SU = *I; in pickNodeFromQueue()
[all …]
H A DMIRVRegNamerUtils.cpp150 for (MachineInstr &Candidate : *MBB) { in renameInstsInMBB()
152 if (Candidate.mayStore() || Candidate.isBranch()) in renameInstsInMBB()
154 if (!Candidate.getNumOperands()) in renameInstsInMBB()
157 MachineOperand &MO = Candidate.getOperand(0); in renameInstsInMBB()
162 NamedVReg(MO.getReg(), Prefix + getInstructionOpcodeHash(Candidate))); in renameInstsInMBB()
H A DMachineOutliner.cpp430 unsigned StringLen, std::vector<Candidate> &CandidatesForRepeatedSeq,
476 for (const Candidate &C : OF.Candidates) in getSubprogramOrNull()
518 unsigned StringLen, std::vector<Candidate> &CandidatesForRepeatedSeq, in emitNotOutliningCheaperRemark()
524 Candidate &C = CandidatesForRepeatedSeq.front(); in emitNotOutliningCheaperRemark()
583 std::vector<Candidate> CandidatesForRepeatedSeq; in findCandidates()
620 CandidatesForRepeatedSeq, [StartIdx, EndIdx](const Candidate &C) { in findCandidates()
708 Candidate &FirstCand = OF.Candidates.front(); in createOutlinedFunction()
717 [](UWTableKind K, const outliner::Candidate &C) { in createOutlinedFunction()
847 erase_if(OF.Candidates, [&UnsignedVecBegin](Candidate &C) { in outline()
884 for (Candidate &C : OF.Candidates) { in outline()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DGCNMinRegStrategy.cpp24 struct Candidate : ilist_node<Candidate> { struct in __anon3f407dd60111::GCNMinRegScheduler
28 Candidate(const SUnit *SU_, int Priority_ = 0) in Candidate() function
32 SpecificBumpPtrAllocator<Candidate> Alloc;
33 using Queue = simple_ilist<Candidate>;
68 Candidate* pickCandidate();
133 GCNMinRegScheduler::Candidate* GCNMinRegScheduler::pickCandidate() { in pickCandidate()
140 Num = findMax(Num, [=](const Candidate &C) { return C.Priority; }); in pickCandidate()
145 Num = findMax(Num, [=](const Candidate &C) { in pickCandidate()
156 Num = findMax(Num, [=](const Candidate &C) { in pickCandidate()
220 RQ.push_front(*new (Alloc.Allocate()) Candidate(SuccSU, Priority)); in releaseSuccessors()
[all …]
H A DGCNILPSched.cpp22 struct Candidate : ilist_node<Candidate> { struct in __anonb6aae0ad0111::GCNILPScheduler
25 Candidate(SUnit *SU_) in Candidate() argument
29 SpecificBumpPtrAllocator<Candidate> Alloc;
30 typedef simple_ilist<Candidate> Queue;
43 Candidate* pickCandidate();
240 GCNILPScheduler::Candidate* GCNILPScheduler::pickCandidate() { in pickCandidate()
285 PendingQueue.push_front(*new (Alloc.Allocate()) Candidate(PredSU)); in releasePredecessors()
308 *new (Alloc.Allocate()) Candidate(const_cast<SUnit*>(SU))); in schedule()
318 [=](const Candidate& C1, const Candidate& C2) { in schedule()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DMachineOutliner.h37 struct Candidate { struct
199 Candidate(unsigned StartIdx, unsigned Len, in Candidate() argument
205 Candidate() = delete;
209 bool operator<(const Candidate &RHS) const {
220 std::vector<Candidate> Candidates;
243 for (const Candidate &C : Candidates) in getOutliningCost()
265 OutlinedFunction(std::vector<Candidate> &Candidates, unsigned SequenceSize, in OutlinedFunction()
270 for (Candidate &C : Candidates) in OutlinedFunction()
H A DVLIWMachineScheduler.h253 SchedCandidate &Candidate, RegPressureDelta &Delta,
258 SchedCandidate &Candidate);
264 SchedCandidate &Candidate, ReadyQueue &Q);
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZMachineScheduler.cpp175 Candidate Best; in pickNode()
179 Candidate c(SU, *HazardRec); in pickNode()
200 SystemZPostRASchedStrategy::Candidate::
201 Candidate(SUnit *SU_, SystemZHazardRecognizer &HazardRec) : Candidate() { in Candidate() function in SystemZPostRASchedStrategy::Candidate
213 bool SystemZPostRASchedStrategy::Candidate::
214 operator<(const Candidate &other) { in operator <()
244 Candidate c(SU, *HazardRec); c.dumpCosts(); dbgs() << "\n";); in schedNode()
H A DSystemZMachineScheduler.h41 struct Candidate { struct
50 Candidate() = default; argument
51 Candidate(SUnit *SU_, SystemZHazardRecognizer &HazardRec);
54 bool operator<(const Candidate &other);
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DSampleProfile.cpp986 auto &CI = *Candidate.CallInstr; in tryPromoteAndInlineCandidate()
1009 Sum -= Candidate.CallsiteCount; in tryPromoteAndInlineCandidate()
1022 Candidate.CallInstr = DI; in tryPromoteAndInlineCandidate()
1258 if (tryInlineCandidate(Candidate)) { in inlineHotFunctions()
1285 CallBase &CB = *Candidate.CallInstr; in tryInlineCandidate()
1331 if (Candidate.CallsiteDistribution < 1) { in tryInlineCandidate()
1499 CallBase *I = Candidate.CallInstr; in inlineHotFunctionsWithPriority()
2386 const auto Candidate = *CI; in runStaleProfileMatching() local
2388 InsertMatching(Loc, Candidate); in runStaleProfileMatching()
2403 InsertMatching(L, Candidate); in runStaleProfileMatching()
[all …]
H A DIROutliner.cpp261 EndInst = Candidate->end()->Inst; in splitCandidate()
279 Candidate->getBasicBlocks(BBSet); in splitCandidate()
367 Candidate->getBasicBlocks(BBSet); in splitCandidate()
421 Candidate->getBasicBlocks(BBSet); in reattachCandidate()
501 for (IRInstructionData &ID : *Candidate) { in getBenefit()
554 IRSimilarityCandidate &C = *Region.Candidate; in collectRegionsConstants()
1889 if (Region.Candidate->getGVN(PN)) in replaceArgumentUses()
2563 IRSimilarityCandidate &Candidate = *CurrentGroup.Regions[0]->Candidate; in findCostForOutputBlocks() local
2565 Candidate.getBasicBlocks(CandidateBlocks); in findCostForOutputBlocks()
2570 for (IRInstructionData &ID : Candidate) { in findCostForOutputBlocks()
[all …]
/freebsd-14.2/contrib/bmake/
H A Dsuff.c207 typedef struct Candidate { struct
222 struct Candidate *parent; argument
234 } Candidate; typedef
999 static Candidate *
1078 Candidate *src = ln->datum; in RemoveCandidate()
1118 static Candidate *
1175 static Candidate *
1713 Candidate *targ; in FindDepsRegularKnown()
1736 Candidate *targ; in FindDepsRegularUnknown()
1829 Candidate *src; in FindDepsRegular()
[all …]
/freebsd-14.2/contrib/llvm-project/clang/lib/Driver/ToolChains/
H A DROCm.h62 struct Candidate { struct
71 Candidate(std::string Path, bool StrictChecking = false, argument
146 SmallVector<Candidate, 4> ROCmSearchDirs;
159 const SmallVectorImpl<Candidate> &getInstallationPathCandidates();
165 llvm::SmallString<0> findSPACKPackage(const Candidate &Cand,
H A DAMDGPU.cpp41 RocmInstallationDetector::findSPACKPackage(const Candidate &Cand, in findSPACKPackage()
179 const SmallVectorImpl<RocmInstallationDetector::Candidate> &
239 return Candidate(ParentDir.str(), /*StrictChecking=*/true, in getInstallationPathCandidates()
249 return Candidate(ParentDir.str(), /*StrictChecking=*/true); in getInstallationPathCandidates()
438 for (const auto &Candidate : ROCmDirs) { in detectDeviceLibrary() local
439 LibDevicePath = Candidate.Path; in detectDeviceLibrary()
448 SmallVector<Candidate, 4> HIPSearchDirs; in detectHIPRuntime()
460 for (const auto &Candidate : HIPSearchDirs) { in detectHIPRuntime() local
461 InstallPath = Candidate.Path; in detectHIPRuntime()
466 auto SPACKPath = findSPACKPackage(Candidate, "hip"); in detectHIPRuntime()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMipsDelaySlotFiller.cpp254 bool delayHasHazard(const MachineInstr &Candidate, RegDefsUses &RegDU,
292 bool terminateSearch(const MachineInstr &Candidate) const;
944 bool MipsDelaySlotFiller::delayHasHazard(const MachineInstr &Candidate, in delayHasHazard() argument
947 assert(!Candidate.isKill() && in delayHasHazard()
950 bool HasHazard = Candidate.isImplicitDef(); in delayHasHazard()
952 HasHazard |= IM.hasHazard(Candidate); in delayHasHazard()
953 HasHazard |= RegDU.update(Candidate, 0, Candidate.getNumOperands()); in delayHasHazard()
958 bool MipsDelaySlotFiller::terminateSearch(const MachineInstr &Candidate) const { in terminateSearch()
959 return (Candidate.isTerminator() || Candidate.isCall() || in terminateSearch()
960 Candidate.isPosition() || Candidate.isInlineAsm() || in terminateSearch()
[all …]
/freebsd-14.2/contrib/llvm-project/clang/lib/Sema/
H A DSemaOverload.cpp6808 Candidate.Viable = true; in AddOverloadCandidate()
6809 Candidate.RewriteKind = in AddOverloadCandidate()
7388 Candidate.RewriteKind = in AddMethodCandidate()
7421 Candidate.Viable = true; in AddMethodCandidate()
7559 Candidate.RewriteKind = in AddMethodTemplateCandidate()
7644 Candidate.RewriteKind = in AddTemplateOverloadCandidate()
7847 Candidate.Viable = true; in AddConversionCandidate()
8086 Candidate.Viable = true; in AddSurrogateCandidate()
8318 Candidate.Viable = true; in AddBuiltinCandidate()
13853 if (!Candidate.Function) in chooseRecoveryType()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DLoadStoreOpt.cpp574 StoreMergeCandidate Candidate; in mergeBlockStores() local
582 if (!addStoreToCandidate(*StoreMI, Candidate)) { in mergeBlockStores()
586 Changed |= processMergeCandidate(Candidate); in mergeBlockStores()
589 Candidate.addPotentialAlias(*StoreMI); in mergeBlockStores()
595 if (Candidate.Stores.empty()) in mergeBlockStores()
600 Changed |= processMergeCandidate(Candidate); in mergeBlockStores()
601 Candidate.Stores.clear(); in mergeBlockStores()
608 if (operationAliasesWithCandidate(MI, Candidate)) { in mergeBlockStores()
611 Changed |= processMergeCandidate(Candidate); in mergeBlockStores()
617 Candidate.addPotentialAlias(MI); in mergeBlockStores()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DVPlanSLP.cpp248 for (auto *Candidate : Candidates) { in getBest() local
250 auto *CandidateI = cast<VPInstruction>(Candidate); in getBest()
252 LLVM_DEBUG(dbgs() << *cast<VPInstruction>(Candidate)->getUnderlyingInstr() in getBest()
254 BestCandidates.push_back(Candidate); in getBest()
272 for (auto *Candidate : BestCandidates) { in getBest() local
273 unsigned Score = getLAScore(Last, Candidate, Depth, IAI); in getBest()
282 Best = Candidate; in getBest()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonMachineScheduler.cpp46 SchedCandidate &Candidate, in SchedulingCost() argument
50 ConvergingVLIWScheduler::SchedulingCost(Q, SU, Candidate, Delta, verbose); in SchedulingCost()
/freebsd-14.2/contrib/llvm-project/clang/utils/TableGen/
H A DClangOpenCLBuiltinEmitter.cpp134 BuiltinIndexListTy *Candidate,
655 BuiltinIndexListTy *Candidate, in CanReuseSignature() argument
657 assert(Candidate->size() == SignatureList.size() && in CanReuseSignature()
661 SignatureListMap.find(Candidate)->second.Signatures; in CanReuseSignature()
662 for (unsigned Index = 0; Index < Candidate->size(); Index++) { in CanReuseSignature()
697 for (auto *Candidate : KnownSignatures) { in GroupBySignature() local
698 if (Candidate->size() == CurSignatureList->size() && in GroupBySignature()
699 *Candidate == *CurSignatureList) { in GroupBySignature()
700 if (CanReuseSignature(Candidate, Fct.second)) { in GroupBySignature()
701 SignatureListMap.find(Candidate)->second.Names.push_back(Fct.first); in GroupBySignature()
/freebsd-14.2/contrib/llvm-project/clang/lib/AST/
H A DExternalASTMerger.cpp34 typedef std::pair<Source<NamedDecl *>, ASTImporter *> Candidate; typedef
244 bool HasDeclOfSameType(llvm::ArrayRef<Candidate> Decls, const Candidate &C) { in HasDeclOfSameType()
247 return llvm::any_of(Decls, [&](const Candidate &D) { in HasDeclOfSameType()
477 llvm::SmallVector<Candidate, 4> Candidates; in FindExternalVisibleDeclsByName()
479 auto FilterFoundDecl = [&Candidates](const Candidate &C) { in FindExternalVisibleDeclsByName()
504 for (const Candidate &C : Candidates) { in FindExternalVisibleDeclsByName()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Demangle/
H A DMicrosoftDemangle.cpp165 std::string_view Candidate = S.substr(0, End); in startsWithLocalScopePattern() local
166 if (Candidate.empty()) in startsWithLocalScopePattern()
171 if (Candidate.size() == 1) in startsWithLocalScopePattern()
172 return Candidate[0] == '@' || (Candidate[0] >= '0' && Candidate[0] <= '9'); in startsWithLocalScopePattern()
175 if (Candidate.back() != '@') in startsWithLocalScopePattern()
177 Candidate.remove_suffix(1); in startsWithLocalScopePattern()
185 if (Candidate[0] < 'B' || Candidate[0] > 'P') in startsWithLocalScopePattern()
187 Candidate.remove_prefix(1); in startsWithLocalScopePattern()
188 while (!Candidate.empty()) { in startsWithLocalScopePattern()
189 if (Candidate[0] < 'A' || Candidate[0] > 'P') in startsWithLocalScopePattern()
[all …]

1234