/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | StraightLineStrengthReduce.cpp | 133 struct Candidate { struct in __anon0eec50480111::StraightLineStrengthReduce 141 Candidate() = default; 142 Candidate(Kind CT, const SCEV *B, ConstantInt *Idx, Value *S, in Candidate() argument 175 Candidate *Basis = nullptr; argument 183 bool isBasisFor(const Candidate &Basis, const Candidate &C); 186 bool isFoldable(const Candidate &C, TargetTransformInfo *TTI, 191 bool isSimplestForm(const Candidate &C); 223 void allocateCandidatesAndFindBasis(Candidate::Kind CT, const SCEV *B, 228 void rewriteCandidateWithBasis(const Candidate &C, const Candidate &Basis); 237 static Value *emitBump(const Candidate &Basis, const Candidate &C, [all …]
|
H A D | NaryReassociate.cpp | 419 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.pop_back_val()) { in findClosestMatchingDominator() local 570 Instruction *CandidateInstruction = cast<Instruction>(Candidate); in findClosestMatchingDominator()
|
/freebsd/contrib/llvm-project/clang/lib/Analysis/ |
H A D | ThreadSafetyTIL.cpp | 209 BasicBlock *Candidate = nullptr; in computeDominator() local 215 if (Candidate == nullptr) { in computeDominator() 216 Candidate = Pred; in computeDominator() 221 while (Alternate != Candidate) { in computeDominator() 222 if (Candidate->BlockID > Alternate->BlockID) 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() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | VLIWMachineScheduler.cpp | 525 const RegPressureTracker &RPTracker, SchedCandidate &Candidate, in readyQueueVerboseDump() argument 538 SchedulingCost(Q, *I, Candidate, RPDelta, true); in readyQueueVerboseDump() 597 SchedCandidate &Candidate, in SchedulingCost() argument 771 SchedCandidate &Candidate) { in pickNodeFromQueue() argument 774 readyQueueVerboseDump(RPTracker, Candidate, Q); in pickNodeFromQueue() 788 int CurrentCost = SchedulingCost(Q, *I, Candidate, RPDelta, false); in pickNodeFromQueue() 791 if (!Candidate.SU) { in pickNodeFromQueue() 793 Candidate.SU = *I; in pickNodeFromQueue() 794 Candidate.RPDelta = RPDelta; in pickNodeFromQueue() 795 Candidate.SCost = CurrentCost; in pickNodeFromQueue() [all …]
|
H A D | MIRVRegNamerUtils.cpp | 150 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 D | MachineOutliner.cpp | 437 unsigned StringLen, std::vector<Candidate> &CandidatesForRepeatedSeq, 483 for (const Candidate &C : OF.Candidates) in getSubprogramOrNull() 525 unsigned StringLen, std::vector<Candidate> &CandidatesForRepeatedSeq, in emitNotOutliningCheaperRemark() 531 Candidate &C = CandidatesForRepeatedSeq.front(); in emitNotOutliningCheaperRemark() 590 std::vector<Candidate> CandidatesForRepeatedSeq; in findCandidates() 716 Candidate &FirstCand = OF.Candidates.front(); in createOutlinedFunction() 725 [](UWTableKind K, const outliner::Candidate &C) { in createOutlinedFunction() 855 erase_if(OF.Candidates, [&UnsignedVecBegin](Candidate &C) { in outline() 892 for (Candidate &C : OF.Candidates) { in outline()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | GCNMinRegStrategy.cpp | 24 struct Candidate : ilist_node<Candidate> { struct in __anon235545e00111::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() 170 Num = findMax(Num, [=](const Candidate &C) { return -(int64_t)C.SU->NodeNum; }); in pickCandidate() [all …]
|
H A D | GCNILPSched.cpp | 22 struct Candidate : ilist_node<Candidate> { struct in __anon1a74e9370111::GCNILPScheduler 25 Candidate(SUnit *SU_) in Candidate() argument 29 SpecificBumpPtrAllocator<Candidate> Alloc; 30 using Queue = simple_ilist<Candidate>; 43 Candidate* pickCandidate(); 238 GCNILPScheduler::Candidate* GCNILPScheduler::pickCandidate() { in pickCandidate() 283 PendingQueue.push_front(*new (Alloc.Allocate()) Candidate(PredSU)); in releasePredecessors() 306 *new (Alloc.Allocate()) Candidate(const_cast<SUnit*>(SU))); in schedule() 315 llvm::min_element(PendingQueue, [=](const Candidate &C1, in schedule() 316 const Candidate &C2) { in schedule()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
H A D | MachineOutliner.h | 37 struct Candidate { struct 39 /// The start index of this \p Candidate in the instruction list. 42 /// The number of instructions in this \p Candidate. 45 // The first instruction in this \p Candidate. argument 48 // The last instruction in this \p Candidate. argument 51 // The basic block that contains this Candidate. argument 58 /// Liveness information for this Candidate. Tracks from the end of the argument 59 /// block containing this Candidate to the beginning of its sequence. 65 /// Liveness information restricted to this Candidate's instruction sequence. argument 80 "Candidate' in initFromEndOfBlockToStartOfSeq() argument 97 initInSeqCandidate initInSeq() argument 116 CallConstructionIDCandidate global() argument 119 FlagsCandidate global() argument 120 getLengthCandidate getLength() argument 123 getStartIdxCandidate getStartIdx() argument 126 getEndIdxCandidate getEndIdx() argument 130 setCallInfoCandidate setCallInfo() argument 136 getCallOverheadCandidate getCallOverhead() argument 138 frontCandidate front() argument 139 backCandidate back() argument 140 getMFCandidate getMF() argument 141 getMBBCandidate getMBB() argument 155 isAvailableAcrossAndOutOfSeqCandidate isAvailableAcrossAndOutOfSeq() argument 164 isAnyUnavailableAcrossOrOutOfSeqCandidate isAnyUnavailableAcrossOrOutOfSeq() argument 196 CandidateCandidate Candidate() argument [all...] |
H A D | VLIWMachineScheduler.h | 253 SchedCandidate &Candidate, RegPressureDelta &Delta, 258 SchedCandidate &Candidate); 264 SchedCandidate &Candidate, ReadyQueue &Q);
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/ |
H A D | IndirectCallPromotion.cpp | 584 auto &Candidate = Candidates[CalleeIndexIter->second]; in computeVTableInfos() local 588 Candidate.VTableGUIDAndCounts[VTableVal] = V.Count; in computeVTableInfos() 589 Candidate.AddressPoints.push_back( in computeVTableInfos() 719 for (const auto &Candidate : Candidates) { in tryToPromoteWithVTableCmp() local 720 for (auto &[GUID, Count] : Candidate.VTableGUIDAndCounts) in tryToPromoteWithVTableCmp() 728 CB, VPtr, Candidate.TargetFunction, Candidate.AddressPoints, in tryToPromoteWithVTableCmp() 729 createBranchWeights(CB.getContext(), Candidate.Count, in tryToPromoteWithVTableCmp() 730 TotalFuncCount - Candidate.Count)); in tryToPromoteWithVTableCmp() 737 const auto &VTableGUIDAndCounts = Candidate.VTableGUIDAndCounts; in tryToPromoteWithVTableCmp() 739 << ore::NV("DirectCallee", Candidate.TargetFunction) in tryToPromoteWithVTableCmp() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/ |
H A D | SystemZMachineScheduler.cpp | 175 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 D | SystemZMachineScheduler.h | 41 struct Candidate { struct 50 Candidate() = default; argument 51 Candidate(SUnit *SU_, SystemZHazardRecognizer &HazardRec); 54 bool operator<(const Candidate &other);
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
H A D | SampleProfile.cpp | 502 Function &F, InlineCandidate &Candidate, uint64_t SumOrigin, 509 InlineCost shouldInlineCandidate(InlineCandidate &Candidate); 512 tryInlineCandidate(InlineCandidate &Candidate, 804 static bool doesHistoryAllowICP(const Instruction &Inst, StringRef Candidate) { in doesHistoryAllowICP() argument 821 if (V.Value == Function::getGUID(Candidate)) in doesHistoryAllowICP() 920 Function &F, InlineCandidate &Candidate, uint64_t SumOrigin, uint64_t &Sum, in tryPromoteAndInlineCandidate() argument 930 auto CalleeFunctionName = Candidate.CalleeSamples->getFunction(); in tryPromoteAndInlineCandidate() 935 auto &CI = *Candidate.CallInstr; in tryPromoteAndInlineCandidate() 956 CI, R->second, Candidate.CallsiteCount, Sum, false, ORE); in tryPromoteAndInlineCandidate() 958 Sum -= Candidate.CallsiteCount; in tryPromoteAndInlineCandidate() [all …]
|
H A D | IROutliner.cpp | 188 std::optional<unsigned> GVN = Candidate->getGVN(V); in findCorrespondingValueIn() 190 std::optional<unsigned> CanonNum = Candidate->getCanonicalNum(*GVN); in findCorrespondingValueIn() 192 Other.Candidate->fromCanonicalNum(*CanonNum); in findCorrespondingValueIn() 193 std::optional<Value *> FoundValueOpt = Other.Candidate->fromGVN(*FirstGVN); in findCorrespondingValueIn() 251 Instruction *BackInst = Candidate->backInstruction(); in splitCandidate() 261 EndInst = Candidate->end()->Inst; in splitCandidate() 273 Instruction *StartInst = (*Candidate->begin()).Inst; in splitCandidate() 279 Candidate->getBasicBlocks(BBSet); in splitCandidate() 367 Candidate->getBasicBlocks(BBSet); in splitCandidate() 407 Instruction *StartInst = (*Candidate->begin()).Inst; in reattachCandidate() [all …]
|
H A D | SampleProfileMatcher.cpp | 286 const auto &Candidate = R->second; in matchNonCallsiteLocs() local 287 InsertMatching(Loc, Candidate); in matchNonCallsiteLocs() 289 << " is matched from " << Loc << " to " << Candidate in matchNonCallsiteLocs() 291 LocationDelta = Candidate.LineOffset - Loc.LineOffset; in matchNonCallsiteLocs() 301 LineLocation Candidate(CandidateLineOffset, L.Discriminator); in matchNonCallsiteLocs() local 302 InsertMatching(L, Candidate); in matchNonCallsiteLocs() 304 << " to " << Candidate << "\n"); in matchNonCallsiteLocs() 314 LineLocation Candidate(CandidateLineOffset, Loc.Discriminator); in matchNonCallsiteLocs() local 315 InsertMatching(Loc, Candidate); in matchNonCallsiteLocs() 317 << Candidate << "\n"); in matchNonCallsiteLocs()
|
/freebsd/contrib/bmake/ |
H A D | suff.c | 197 typedef struct Candidate { struct 212 struct Candidate *parent; argument 224 } Candidate; argument 926 CandidateSearcher_Add(CandidateSearcher *cs, Candidate *cand) in CandidateSearcher_Add() 933 CandidateSearcher_AddIfNew(CandidateSearcher *cs, Candidate *cand) in CandidateSearcher_AddIfNew() 955 Candidate *cand = ln->datum; in CandidateList_PrintAddrs() 962 static Candidate * 963 Candidate_New(char *name, char *prefix, Suffix *suff, Candidate *parent, in Candidate_New() 966 Candidate *cand = bmake_malloc(sizeof *cand); in Candidate_New() 983 CandidateList_Add(CandidateList *list, char *srcName, Candidate *targ, in CandidateList_Add() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/ |
H A D | MipsDelaySlotFiller.cpp | 254 bool delayHasHazard(const MachineInstr &Candidate, RegDefsUses &RegDU, 292 bool terminateSearch(const MachineInstr &Candidate) const; 945 bool MipsDelaySlotFiller::delayHasHazard(const MachineInstr &Candidate, in delayHasHazard() argument 948 assert(!Candidate.isKill() && in delayHasHazard() 951 bool HasHazard = Candidate.isImplicitDef(); in delayHasHazard() 953 HasHazard |= IM.hasHazard(Candidate); in delayHasHazard() 954 HasHazard |= RegDU.update(Candidate, 0, Candidate.getNumOperands()); in delayHasHazard() 959 bool MipsDelaySlotFiller::terminateSearch(const MachineInstr &Candidate) const { in terminateSearch() 960 return (Candidate.isTerminator() || Candidate.isCall() || in terminateSearch() 961 Candidate.isPosition() || Candidate.isInlineAsm() || in terminateSearch() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/Analysis/ |
H A D | SPIRVConvergenceRegionAnalysis.cpp | 91 ConvergenceRegion *Candidate = nullptr; in findParentRegion() local 94 while (Candidate != NextCandidate && NextCandidate != nullptr) { in findParentRegion() 95 Candidate = NextCandidate; in findParentRegion() 99 if (Candidate->Children.size() == 0) in findParentRegion() 100 return Candidate; in findParentRegion() 102 for (auto *Child : Candidate->Children) { in findParentRegion() 110 return Candidate; in findParentRegion()
|
/freebsd/contrib/llvm-project/clang/lib/Sema/ |
H A D | SemaOverload.cpp | 6853 OverloadCandidate &Candidate = in AddOverloadCandidate() local 6855 Candidate.FoundDecl = FoundDecl; in AddOverloadCandidate() 6856 Candidate.Function = Function; in AddOverloadCandidate() 6857 Candidate.Viable = true; in AddOverloadCandidate() 6858 Candidate.RewriteKind = in AddOverloadCandidate() 6860 Candidate.IsADLCandidate = IsADLCandidate; in AddOverloadCandidate() 6861 Candidate.ExplicitCallArguments = Args.size(); in AddOverloadCandidate() 6867 Candidate.Viable = false; in AddOverloadCandidate() 6868 Candidate.FailureKind = ovl_fail_explicit; in AddOverloadCandidate() 6884 Candidate.Viable = false; in AddOverloadCandidate() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/ |
H A D | VPlanSLP.cpp | 248 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/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
H A D | LoadStoreOpt.cpp | 588 StoreMergeCandidate Candidate; in mergeBlockStores() local 596 if (!addStoreToCandidate(*StoreMI, Candidate)) { in mergeBlockStores() 599 if (operationAliasesWithCandidate(*StoreMI, Candidate)) { in mergeBlockStores() 600 Changed |= processMergeCandidate(Candidate); in mergeBlockStores() 603 Candidate.addPotentialAlias(*StoreMI); in mergeBlockStores() 609 if (Candidate.Stores.empty()) in mergeBlockStores() 614 Changed |= processMergeCandidate(Candidate); in mergeBlockStores() 615 Candidate.Stores.clear(); in mergeBlockStores() 622 if (operationAliasesWithCandidate(MI, Candidate)) { in mergeBlockStores() 625 Changed |= processMergeCandidate(Candidate); in mergeBlockStores() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/AST/ |
H A D | ExternalASTMerger.cpp | 34 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/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
H A D | HexagonMachineScheduler.cpp | 46 SchedCandidate &Candidate, in SchedulingCost() argument 50 ConvergingVLIWScheduler::SchedulingCost(Q, SU, Candidate, Delta, verbose); in SchedulingCost()
|
/freebsd/contrib/llvm-project/clang/lib/Driver/ToolChains/ |
H A D | AMDGPU.cpp | 42 RocmInstallationDetector::findSPACKPackage(const Candidate &Cand, in findSPACKPackage() 180 const SmallVectorImpl<RocmInstallationDetector::Candidate> & 240 return Candidate(ParentDir.str(), /*StrictChecking=*/true, in getInstallationPathCandidates() 250 return Candidate(ParentDir.str(), /*StrictChecking=*/true); in getInstallationPathCandidates() 439 for (const auto &Candidate : ROCmDirs) { in detectDeviceLibrary() local 440 LibDevicePath = Candidate.Path; in detectDeviceLibrary() 442 HasDeviceLibrary = CheckDeviceLib(LibDevicePath, Candidate.StrictChecking); in detectDeviceLibrary() 449 SmallVector<Candidate, 4> HIPSearchDirs; in detectHIPRuntime() 461 for (const auto &Candidate : HIPSearchDirs) { in detectHIPRuntime() local 462 InstallPath = Candidate.Path; in detectHIPRuntime() [all …]
|