reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

include/llvm/ADT/DenseSet.h
   92     return TheMap.count(V);
include/llvm/ADT/PriorityWorklist.h
   80     return M.count(key);
include/llvm/ADT/SCCIterator.h
  136     assert(nodeVisitNumbers.count(Old) && "Old not in scc_iterator?");
include/llvm/ADT/ScopedHashTable.h
  183     return TopLevelMap.count(Key);
include/llvm/Analysis/BlockFrequencyInfoImpl.h
 1050   if (Nodes.count(BB))
include/llvm/Analysis/LoopIterator.h
  143   bool hasPreorder(BasicBlock *BB) const { return PostNumbers.count(BB); }
  241     assert(DFS.PostNumbers.count(BB) && "Loop DFS skipped preorder");
include/llvm/Analysis/ScalarEvolutionExpressions.h
  803       if (Map.count(V)) {
  841       if (0 == Map.count(L))
include/llvm/Analysis/VectorUtils.h
  566     if (InterleaveGroupMap.count(Instr))
  640     assert(!InterleaveGroupMap.count(Instr) &&
include/llvm/CodeGen/FunctionLoweringInfo.h
  199     return ValueMap.count(V);
include/llvm/CodeGen/MachineFunction.h
  913     return WasmLPadToIndexMap.count(LPad);
  948     return CallSiteMap.count(BeginLabel);
include/llvm/CodeGen/ModuloSchedule.h
  341     if (CanonicalMIs.count(MI))
include/llvm/CodeGen/SlotIndexes.h
  386       return mi2iMap.count(&instr);
include/llvm/CodeGen/WasmEHFuncInfo.h
   40     return EHPadUnwindMap.count(BB);
   50     return EHPadUnwindMap.count(MBB);
include/llvm/IR/PassManager.h
  778     assert(AnalysisPasses.count(PassT::ID()) &&
  797     assert(AnalysisPasses.count(PassT::ID()) &&
include/llvm/Support/GenericDomTreeConstruction.h
  223     if (NodeToInfo.count(V) != 0) NodeToInfo[V].Parent = AttachToNum;
  322         if (NodeToInfo.count(N) == 0)  // Skip unreachable predecessors.
  442         if (SNCA.NodeToInfo.count(I) == 0) {
 1314       if (NodeToInfo.count(BB) == 0) {
 1521         if (NodeToInfo.count(Child->getBlock()) != 0) {
 1557           if (NodeToInfo.count(S->getBlock()) == 0) {
include/llvm/Transforms/IPO/Attributor.h
  790     assert(!KindToAbstractAttributeMap.count(&AAType::ID) &&
include/llvm/Transforms/Vectorize/LoopVectorizationLegality.h
  266   bool isReductionVariable(PHINode *PN) { return Reductions.count(PN); }
include/llvm/XRay/Graph.h
  251     bool empty() const { return NL.count(A) == 0; };
  438     return Vertices.count(I);
  443   size_type count(const EdgeIdentifier &I) const { return Edges.count(I); }
lib/Analysis/BlockFrequencyInfoImpl.cpp
  697       if (InSCC.count(P))
lib/Analysis/CallGraphSCCPass.cpp
  237           Calls.count(I->first) ||
  270       assert(!Calls.count(I->first) &&
lib/Analysis/IVDescriptors.cpp
  696       SinkAfter.count(Previous)) // Cannot rely on dominance due to motion.
lib/Analysis/InlineCost.cpp
  328   return SROAArgValues.count(V);
lib/Analysis/LazyCallGraph.cpp
  791           assert(!G->SCCMap.count(&ChildN) &&
lib/Analysis/LazyValueInfo.cpp
  216       return I->second->BlockVals.count(BB);
lib/Analysis/LoopInfo.cpp
  769     assert(SubloopParents.count(Subloop) && "DFS failed to visit subloop");
lib/Analysis/MemoryDependenceAnalysis.cpp
 1258       assert(Visited.count(BB) && "Should check 'visited' before adding to WL");
 1696   assert(!NonLocalDeps.count(RemInst) && "RemInst got reinserted?");
lib/Analysis/MemorySSAUpdater.cpp
  962     if (PredMap.count(BB) && !MSSA->getMemoryAccess(BB))
lib/Analysis/MustExecute.cpp
  414     if (!MustExec.count(&V))
lib/Analysis/PhiValues.cpp
   67       if (!ReachableMap.count(DepthMap[PhiPhiOp]))
  114   if (DepthMap.count(PN) == 0) {
lib/Analysis/ScalarEvolution.cpp
 3850       assert(ValueExprMap.count(VE.first));
 7899   if (!CurrentIterVals.count(PN))
 7978   if (!CurrentIterVals.count(PN))
lib/Analysis/VectorUtils.cpp
  468       if (U->getType()->isIntegerTy() && DBits.count(U) == 0)
lib/Bitcode/Reader/BitcodeReader.cpp
  876     if (!BasicBlockFwdRefs.count(F))
lib/Bitcode/Writer/ValueEnumerator.cpp
  903   if (ValueMap.count(C))
  999     assert(ValueMap.count(FnLocalMDVector[i]->getValue()) &&
lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
  864     assert(TypeIndices.count({SP, nullptr}));
  886   assert(TypeIndices.count({Site.Inlinee, nullptr}));
 2998       if (GlobalMap.count(GVE) == 0 && DIE->isConstant()) {
lib/CodeGen/AsmPrinter/DbgEntityHistoryCalculator.cpp
  187       if (!TrackedRegs.count(NewReg))
lib/CodeGen/AsmPrinter/EHStreamer.cpp
  210       assert(!PadMap.count(BeginLabel) && "Duplicate landing pad labels!");
lib/CodeGen/AsmPrinter/WinException.cpp
  913       assert(FuncInfo.FuncletBaseStateMap.count(FuncletPad) != 0);
lib/CodeGen/CodeGenPrepare.cpp
 2929     return NodeMap.count(Ptr);
 6206     if (NewInstructions.count(OldI))
lib/CodeGen/GlobalISel/CSEInfo.cpp
  129   assert(InstrMapping.count(UMI->MI) == 0 &&
  161   if (OpcodeHitTable.count(Opc))
lib/CodeGen/InterleavedAccessPass.cpp
  393       if (ReplacementMap.count(Extract))
  399     if (!ReplacementMap.count(Extract))
lib/CodeGen/LiveDebugValues.cpp
  716     if (!DebugEntryVals.count(CurrDebugInstr->getDebugVariable()))
 1321         !DebugEntryVals.count(MI.getDebugVariable()) &&
lib/CodeGen/LiveRangeShrink.cpp
  145         else if (MO.isDead() && UseMap.count(MO.getReg()))
lib/CodeGen/MachineBlockPlacement.cpp
 2908         if (BlockToChain.count(RemBB)) {
lib/CodeGen/MachineCSE.cpp
  801     if (!PREMap.count(MI)) {
lib/CodeGen/MachineLoopUtils.cpp
   76       if (MO.isReg() && Remaps.count(MO.getReg()))
   90       if (Remaps.count(R))
lib/CodeGen/MachineOutliner.cpp
  366       if (Active.Node->Children.count(FirstChar) == 0) {
lib/CodeGen/MachineSSAUpdater.cpp
   67   return getAvailableVals(AV).count(BB);
lib/CodeGen/MachineSink.cpp
  955     if (!SeenDbgUsers.count(MO.getReg()))
lib/CodeGen/ModuloSchedule.cpp
  395     if (VRMap[LastStageNum].count(LoopVal))
  407       if (VRMap[CurStageNum].count(LoopVal))
  442                VRMap[PrologStage - StageDiff - np].count(LoopVal) != 0)
  462               VRMap[PrologStage - StageAdj - Indirects - np].count(PhiOp1)) {
  489             VRMap[PrevStage - StageDiffAdj].count(LoopVal))
  494                  VRMap[PrevStage - np + 1].count(Def))
  498                  VRMap[PrevStage - StageDiffAdj - np].count(LoopVal))
  502         else if (VRMap[PrevStage - np].count(Def) &&
  518           if (LVNumStages > (int)np && VRMap[CurStageNum].count(LoopVal)) {
  525             if (VRMap[ReuseStage - np].count(LoopVal)) {
  533               if (VRMap[LastStageNum - np - 1].count(LoopVal))
  543             VRMap[CurStageNum - StageDiff - np].count(LoopVal))
  562       if (InKernel && VRMap[PrevStage - np].count(LoopVal))
  567       if (VRMap[CurStageNum - np].count(Def)) {
  594     if (NumStages == 0 && IsLast && VRMap[CurStageNum].count(LoopVal))
 1049       if (VRMap[StageNum].count(reg))
 1080     if (PhiStage == LoopStage && VRMap[StageNum - 1].count(LoopVal))
 1083     else if (VRMap[StageNum].count(LoopVal))
 1737   if (Stage == -1 || LiveStages.count(MI->getParent()) == 0 ||
lib/CodeGen/PrologEpilogInserter.cpp
  207   if (EntryDbgValues.count(&MBB))
lib/CodeGen/ReachingDefAnalysis.cpp
  174   assert(InstIds.count(MI) && "Unexpected machine instuction.");
  193   assert(InstIds.count(MI) && "Unexpected machine instuction.");
lib/CodeGen/RegAllocGreedy.cpp
  333       if (Evictees.count(Evictee)) {
lib/CodeGen/SelectionDAG/FastISel.cpp
  389        !FuncInfo.StaticAllocaMap.count(cast<AllocaInst>(V))))
 1383          !FuncInfo.StaticAllocaMap.count(cast<AllocaInst>(Address))))
 1864     if (FuncInfo.StaticAllocaMap.count(cast<AllocaInst>(I)))
lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp
  219         if (!isa<AllocaInst>(I) || !StaticAllocaMap.count(cast<AllocaInst>(&I)))
  446     assert(ValueMap.count(V) && "V should have been placed in ValueMap when its"
  481     assert(ValueMap.count(V) && "V should have been placed in ValueMap when "
lib/CodeGen/SelectionDAG/LegalizeTypes.cpp
   86       auto ResId = (ValueToIdMap.count(Res)) ? ValueToIdMap[Res] : 0;
lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp
  211   assert(LegalizedNodes.count(OldRoot) && "Root didn't get legalized?");
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
 3948   if (FuncInfo.StaticAllocaMap.count(&I))
 6650       assert(FuncInfo.StaticAllocaMap.count(Slot) &&
 9435     if (!AI || !AI->isStaticAlloca() || !FuncInfo->StaticAllocaMap.count(AI))
 9488         ArgCopyElisionCandidates.count(Arg)) {
 9699       if (ArgCopyElisionCandidates.count(&Arg))
 9975                  FuncInfo.StaticAllocaMap.count(cast<AllocaInst>(PHIOp)) &&
lib/CodeGen/SelectionDAG/StatepointLowering.h
   60     assert(!Locations.count(Val) &&
lib/CodeGen/StackColoring.cpp
  895     if (SlotRemap.count(VI.Slot)) {
  977         if (!Allocas.count(AI))
  995         if (!SlotRemap.count(FromSlot))
 1069             SlotRemap.count(H.CatchObj.FrameIndex))
 1124     if (SlotRemap.count(i)) {
 1127       while (SlotRemap.count(Target)) {
lib/CodeGen/WinEHPrepare.cpp
  210       assert(FuncInfo.EHPadStateMap.count(PadInst) && "EH Pad has no state!");
  242     assert(FuncInfo.EHPadStateMap.count(CatchSwitch) == 0 &&
  292     if (FuncInfo.EHPadStateMap.count(CleanupPad))
  344     assert(FuncInfo.EHPadStateMap.count(CatchSwitch) == 0 &&
  394     if (FuncInfo.EHPadStateMap.count(CleanupPad))
 1242   assert(InvokeStateMap.count(II) &&
lib/DebugInfo/PDB/Native/PDBFileBuilder.cpp
   97   assert(NamedStreamData.count(*ExpectedIndex) == 0);
lib/DebugInfo/PDB/Native/SymbolCache.cpp
  151     assert(TypeIndexToSymbolId.count(Index) == 0);
  175       assert(TypeIndexToSymbolId.count(Index) == 0);
  224     assert(TypeIndexToSymbolId.count(Index) == 0);
  277     assert(GlobalOffsetToSymbolId.count(Offset) == 0);
lib/ExecutionEngine/JITLink/EHFrameSupport.cpp
  269   assert(!CIEInfos.count(CIESymbol.getAddress()) &&
lib/ExecutionEngine/JITLink/JITLinkGeneric.cpp
  274     assert(Result.count(Sym->getName()) && "Missing resolution for symbol");
lib/ExecutionEngine/JITLink/JITLinkMemoryManager.cpp
   29       assert(SegBlocks.count(Seg) && "No allocation for segment");
   34       assert(SegBlocks.count(Seg) && "No allocation for segment");
lib/ExecutionEngine/Orc/Core.cpp
  472   assert(SymbolFlags.count(Name) &&
  501   assert(Symbols.count(Name) && "Symbol is not part of this MU");
  585       if (&SrcJD == &TgtJD && (QueryAliases.count(KV.second.Aliasee) ||
  586                                RequestedAliases.count(KV.second.Aliasee)))
  620       assert(Deps.size() == 1 && Deps.count(&SrcJD) &&
  639           assert(Result->count(KV.second.Aliasee) &&
  668   assert(Aliases.count(Name) &&
  698     assert(Flags->count(Name) && "Missing entry in flags map");
  789           assert(UnmaterializedInfos.count(KV.first) == 0 &&
  812           assert(UnmaterializedInfos.count(KV.first) == 0 &&
  832       assert(Symbols.count(KV.first) && "JITDylib does not cover this symbol?");
  850   assert(Symbols.count(Name) && "Name not in symbol table");
  895       assert(OtherJITDylib.MaterializingInfos.count(OtherSymbol) &&
 1062           assert(DependantMI.UnemittedDependencies.count(this) &&
 1158       assert(JD.Symbols.count(Name) && "No symbol table entry for Name");
 1180           assert(DependantJD.Symbols.count(DependantName) &&
 1186           assert(DependantJD.MaterializingInfos.count(DependantName) &&
 1219           assert(UnemittedDepMII->second.Dependants.count(&JD) &&
 1391       assert(!Flags.count(Name) && "Symbol already present in Flags map");
 1788     assert(MaterializingInfos.count(QuerySymbol) &&
 2087     assert(ResultMap->count(Name) && "Missing result for symbol");
lib/ExecutionEngine/Orc/ExecutionUtils.cpp
  136         assert(CtorDtorMap->count(Name) && "No entry for Name");
lib/ExecutionEngine/Orc/LazyReexports.cpp
  193   assert(CallableAliases.count(Name) &&
lib/ExecutionEngine/Orc/ObjectLinkingLayer.cpp
  102         if (AutoClaim && !MR.getSymbols().count(InternedName)) {
  103           assert(!ExtraSymbolsToClaim.count(InternedName) &&
  120         if (AutoClaim && !MR.getSymbols().count(InternedName)) {
  121           assert(!ExtraSymbolsToClaim.count(InternedName) &&
  175         if (!MR.getSymbols().count(ES.intern(Sym->getName())))
  181         if (!MR.getSymbols().count(ES.intern(Sym->getName())))
  191       if (Sym->hasName() && MR.getSymbols().count(ES.intern(Sym->getName())))
  418   assert(!InProcessLinks.count(&MR) && "Link for MR already being tracked?");
lib/IR/DebugInfo.cpp
  518     if (Replacements.count(N))
  557   if (!N || Replacements.count(N))
  583         if (!Opened.count(MDN) && !Replacements.count(MDN) && !prune(N, MDN) &&
lib/IR/Metadata.cpp
  245     if (!UseMap.count(Pair.first))
 1245           (getContext().pImpl->InstructionMetadata.count(this) > 0)) &&
 1293          getContext().pImpl->InstructionMetadata.count(this) &&
 1304          getContext().pImpl->InstructionMetadata.count(this) &&
lib/IR/Value.cpp
  200   assert(HasName == Ctx.pImpl->ValueNames.count(this) &&
lib/IR/Verifier.cpp
 5099   if (!HasSourceDebugInfo.count(&U))
lib/MC/ELFObjectWriter.cpp
  662                     OWriter.Renames.count(&Symbol)))
 1315     if (Renames.count(&Symbol) && Renames[&Symbol] != Alias) {
lib/MC/WasmObjectWriter.cpp
  539     assert(GOTIndices.count(RelEntry.Symbol) > 0 && "symbol not found in GOT index space");
  559     assert(WasmIndices.count(RelEntry.Symbol) > 0 && "symbol not found in wasm index space");
  627     if (!TypeIndices.count(RelEntry.Symbol))
 1035   assert(TypeIndices.count(&Symbol));
 1041   assert(TypeIndices.count(&Symbol));
 1167         assert(WasmIndices.count(&WS) == 0);
 1179         assert(WasmIndices.count(&WS) == 0);
 1192         assert(WasmIndices.count(&WS) == 0);
 1211       assert(GOTIndices.count(&WS) == 0);
 1383         assert(WasmIndices.count(&WS) == 0);
 1388         assert(WasmIndices.count(&WS) > 0);
 1415       assert(WasmIndices.count(ResolvedSym) > 0);
 1417       assert(WasmIndices.count(&WS) == 0);
 1421       assert(DataLocations.count(ResolvedSym) > 0);
 1463       assert(WasmIndices.count(&WS) > 0);
 1466       assert(DataLocations.count(&WS) > 0);
lib/MC/WinCOFFObjectWriter.cpp
 1024     assert(SectionMap.count(AssocMCSec));
lib/Support/VirtualFileSystem.cpp
 1190     if (!Keys.count(Key)) {
lib/Target/AArch64/AArch64FalkorHWPFFix.cpp
  758         if (TagMap.count(NewTag))
lib/Target/AArch64/AArch64FastISel.cpp
  361   if (!FuncInfo.StaticAllocaMap.count(AI))
  586     if (FuncInfo.StaticAllocaMap.count(static_cast<const AllocaInst *>(Obj)) ||
lib/Target/AMDGPU/AMDGPUAnnotateUniformValues.cpp
  138       if (noClobberClones.count(Ptr)) {
lib/Target/AMDGPU/AMDGPUMachineCFGStructurizer.cpp
  666     if (RegionMap.count(Region) == 0) {
  672       while (RegionMap.count(Parent) == 0) {
lib/Target/AMDGPU/SIFoldOperands.cpp
  742             if (VGPRCopies.count(CopyToVGPR)) {
lib/Target/AMDGPU/SILowerI1Copies.cpp
  206         if (ReachableMap.count(Pred)) {
lib/Target/ARM/ARMBaseInstrInfo.h
  425     return MLxEntryMap.count(Opcode);
lib/Target/ARM/ARMFastISel.cpp
  663   if (!FuncInfo.StaticAllocaMap.count(AI)) return 0;
  720     if (FuncInfo.StaticAllocaMap.count(static_cast<const AllocaInst *>(Obj)) ||
lib/Target/Hexagon/HexagonISelDAGToDAG.cpp
 1618   assert(RootWeights.count(N) && "Cannot get weight of unseen root!");
 1627   assert(RootWeights.count(N) && RootWeights[N] >= 0 &&
 1856   if (GAUsesInFunction.count(V))
 1878   assert(RootWeights.count(N) && "Cannot balance non-root node.");
 1892   if ((!isOpcodeHandled(Op0.getNode()) || RootWeights.count(Op0.getNode())) &&
 1893       (!isOpcodeHandled(Op1.getNode()) || RootWeights.count(Op1.getNode()))) {
 1957     if (Child.getNode() != N && RootWeights.count(Child.getNode())) {
 2023       if (!NodeHeights.count(Op1) || !NodeHeights.count(Child->getOperand(0))) {
 2023       if (!NodeHeights.count(Op1) || !NodeHeights.count(Child->getOperand(0))) {
 2024         assert(!NodeHeights.count(Child) && "Parent visited before children?");
 2153     if ((RootWeights.count(V0.getNode()) && RootWeights[V0.getNode()] == -2) ||
 2154         (RootWeights.count(V1.getNode()) && RootWeights[V1.getNode()] == -2)) {
 2170     assert(NodeHeights.count(V0) && NodeHeights.count(V1) &&
 2170     assert(NodeHeights.count(V0) && NodeHeights.count(V1) &&
 2197   assert(NodeHeights.count(NewRoot));
 2243     if (RootWeights.count(BasePtr.getNode()))
 2270       if (RootWeights.count(N))
lib/Target/Hexagon/HexagonSubtarget.cpp
  243               VRegHoldingReg.count(MO.getReg())) {
  249               if (LastVRegUse.count(*AI) &&
lib/Target/Hexagon/MCTargetDesc/HexagonMCChecker.cpp
  384     if (!Defs.count(P) || LatePreds.count(P)) {
  397     if (LatePreds.count(P) > 1 || Defs.count(P)) {
  570     if (isLoopRegister(R) && Defs.count(R) > 1 &&
lib/Target/Hexagon/MCTargetDesc/HexagonShuffler.cpp
  150   if (TUL->count(T)) {
lib/Target/Mips/MipsFastISel.cpp
  471     if (FuncInfo.StaticAllocaMap.count(static_cast<const AllocaInst *>(Obj)) ||
lib/Target/Mips/MipsRegisterBankInfo.h
  141     bool wasVisited(const MachineInstr *MI) const { return Types.count(MI); };
  158       assert(WaitingQueues.count(MI) && "Instruction was not visited!");
  165       assert(WaitingQueues.count(MI) && "Instruction was not visited!");
lib/Target/PowerPC/PPCBoolRetToInt.cpp
  246       if (!BoolToIntMap.count(V))
lib/Target/PowerPC/PPCFastISel.cpp
  316     if (FuncInfo.StaticAllocaMap.count(static_cast<const AllocaInst *>(Obj)) ||
 2267   if (!FuncInfo.StaticAllocaMap.count(AI)) return 0;
lib/Target/PowerPC/PPCISelLowering.cpp
12513       if ((SelectTruncOp[0].count(PromOp.getNode()) &&
12515           (SelectTruncOp[1].count(PromOp.getNode()) &&
lib/Target/PowerPC/PPCRegisterInfo.cpp
 1053                    OpC != TargetOpcode::PATCHPOINT && !ImmToIdxMap.count(OpC);
 1121     assert(ImmToIdxMap.count(OpC) &&
 1188   if (!ImmToIdxMap.count(OpC))
lib/Target/PowerPC/PPCRegisterInfo.h
   68     if (!ImmToIdxMap.count(ImmOpcode))
lib/Target/WebAssembly/WebAssemblyCFGSort.cpp
   98       if (LoopMap.count(ML))
  104       if (ExceptionMap.count(WE))
lib/Target/WebAssembly/WebAssemblyCFGStackify.cpp
  193   assert(BeginToEnd.count(Begin));
  195   assert(EndToBegin.count(End));
  200     assert(EHPadToTry.count(EHPad));
lib/Target/WebAssembly/WebAssemblyFastISel.cpp
  215     if (FuncInfo.StaticAllocaMap.count(static_cast<const AllocaInst *>(Obj)) ||
lib/Target/WebAssembly/WebAssemblyFixIrreducibleControlFlow.cpp
  455         if (Op.isMBB() && Indices.count(Op.getMBB()))
lib/Target/WebAssembly/WebAssemblyLowerEmscriptenEHSjLj.cpp
  354   if (FindMatchingCatches.count(NumClauses))
lib/Target/X86/X86FastISel.cpp
  837     if (FuncInfo.StaticAllocaMap.count(static_cast<const AllocaInst *>(V)) ||
 3873   if (!FuncInfo.StaticAllocaMap.count(C))
lib/Target/X86/X86SpeculativeLoadHardening.cpp
 2136     assert(!AddrRegToHardenedReg.count(Op->getReg()) &&
lib/Target/X86/X86WinEHState.cpp
  539     assert(FuncInfo.InvokeStateMap.count(II) && "invoke has no state!");
  707     if (InitialStates.count(BB) != 0)
lib/Transforms/IPO/FunctionImport.cpp
  287     if (DefinedGVSummaries.count(VI.getGUID())) {
  372     if (DefinedGVSummaries.count(VI.getGUID())) {
  642       if (!DefinedGVSummaries.count(*EI))
lib/Transforms/IPO/LowerTypeTests.cpp
 1953       if (ExportedFunctions.count(F->getName())) {
 2142         if (!ExportedFunctions.count(Aliasee) ||
 2184         if (!ExportedFunctions.count(SymbolName))
lib/Transforms/IPO/MergeFunctions.cpp
  871   assert(FNodesInTree.count(G) == 0 && "FNodesInTree should not contain G");
  907     assert(FNodesInTree.count(NewFunction) == 0);
lib/Transforms/IPO/PartialInlining.cpp
 1419     if (CalleeEntryCountV && CallSiteToProfCountMap.count(User)) {
lib/Transforms/IPO/SampleProfile.cpp
 1091     if (EquivalenceClass.count(BB1)) {
lib/Transforms/Instrumentation/ControlHeightReduction.cpp
  518   if (Visited.count(V)) {
  561     if (Visited.count(I)) {
lib/Transforms/Instrumentation/DataFlowSanitizer.cpp
 1061   assert(!ValShadowMap.count(I));
lib/Transforms/Instrumentation/PoisonChecking.cpp
  304       if (!ValToPoison.count(OldPHI))
lib/Transforms/Scalar/GVN.cpp
  477 bool GVN::ValueTable::exists(Value *V) const { return valueNumbering.count(V) != 0; }
 2300     assert(BlockRPONumber.count(P) && BlockRPONumber.count(CurrentBlock) &&
 2300     assert(BlockRPONumber.count(P) && BlockRPONumber.count(CurrentBlock) &&
lib/Transforms/Scalar/GuardWidening.cpp
  381     assert(GuardsInBlock.count(CurBB) && "Must have been populated by now!");
lib/Transforms/Scalar/IndVarSimplify.cpp
 1544   assert(ExtendKindMap.count(DU.NarrowDef) &&
lib/Transforms/Scalar/InferAddressSpaces.cpp
  696   assert(InferredAddrSpace.count(&V));
lib/Transforms/Scalar/LICM.cpp
  688     if (HoistDestinationMap.count(BB))
  722       if (HoistDestinationMap.count(Orig))
 2231   if (!LICM.getLoopToAliasSetMap().count(L))
lib/Transforms/Scalar/LoopRerollPass.cpp
  312         if (PossibleRedIdx.count(J1)) {
  313           assert(PossibleRedIdx.count(J2) &&
lib/Transforms/Scalar/LoopSink.cpp
  207       if (!LoopBlockNumber.count(BB))
lib/Transforms/Scalar/NewGVN.cpp
 3009   if (ProcessedCount.count(V) == 0) {
 3922       if (CC->size() != 1 || RealToTemp.count(Leader)) {
lib/Transforms/Scalar/Reassociate.cpp
 2410     assert(RankMap.count(&*BI) && "BB should be ranked.");
lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
 1314     if (!TypeToDeclMap.count(Ty))
 1639     assert(AllocaMap.count(OriginalValue));
 1672     assert(AllocaMap.count(OriginalValue) &&
 1724       if (AllocaMap.count(OriginalValue) != 0)
lib/Transforms/Scalar/SROA.cpp
 3900       if (!Stores.empty() && SplitOffsetsMap.count(SI)) {
lib/Transforms/Scalar/SimpleLoopUnswitch.cpp
 1391               (BlocksInClonedLoop.count(PredBB) || ExitLoopMap.count(PredBB)) &&
lib/Transforms/Scalar/SpeculateAroundPHIs.cpp
  455         return !PotentialSpecSet.count(I) || SpecCostMap.count(I);
lib/Transforms/Scalar/StructurizeCFG.cpp
  474             if (Visited.count(Other) && !Loops.count(Other) &&
  475                 !Pred.count(Other) && !Pred.count(P)) {
  475                 !Pred.count(Other) && !Pred.count(P)) {
  610     if (!DeletedPhis.count(To))
  843   if (!Loops.count(LoopStart)) {
lib/Transforms/Utils/InlineFunction.cpp
  238     assert(!MemoMap.count(CurrentPad));
  394   assert((UnwindDestToken == nullptr) != (MemoMap.count(EHPad) != 0));
  423     assert(!MemoMap.count(AncestorPad) || MemoMap[AncestorPad]);
  476     assert(!MemoMap.count(UselessPad) || TempMemos.count(UselessPad));
  566       assert(FuncletUnwindMap->count(MemoKey) &&
  687         assert(!FuncletUnwindMap.count(CleanupPad) ||
lib/Transforms/Utils/LCSSA.cpp
   96     if (!LoopExitBlocks.count(L))
   98     assert(LoopExitBlocks.count(L));
lib/Transforms/Utils/Local.cpp
  834     assert((!IncomingValues.count(BB) ||
lib/Transforms/Utils/LoopUnrollPeel.cpp
  615       if (ExitIDom.count(Edge.second))
lib/Transforms/Utils/PromoteMemoryToRegister.cpp
  886     if (PhiToAllocaMap.count(APN)) {
lib/Transforms/Utils/SSAUpdater.cpp
   63   return getAvailableVals(AV).count(BB);
lib/Transforms/Utils/SSAUpdaterBulk.cpp
   71   return (Var < Rewrites.size()) ? Rewrites[Var].Defines.count(BB) : false;
   78   if (!R.Defines.count(BB)) {
lib/Transforms/Utils/SimplifyCFG.cpp
 5349       if (!ResultLists.count(PHI))
lib/Transforms/Utils/SplitModule.cpp
  275           if (ClusterIDMap.count(GV))
lib/Transforms/Vectorize/SLPVectorizer.cpp
 1134   bool isDeleted(Instruction *I) const { return DeletedInstructions.count(I); }
 2903            return ScalarToTreeEntry.count(U) > 0;
 2948               !ScalarToTreeEntry.count(V)) {
lib/Transforms/Vectorize/VPlan.h
  265     if (Data.PerPartOutput.count(Def))
  273     if (!Data.PerPartOutput.count(Def)) {
 1238     assert(!Value2VPValue.count(V) && "Value already exists in VPlan");
 1244     assert(Value2VPValue.count(V) && "Value does not exist in VPlan");
 1296     return BlockID.count(Block) ? BlockID[Block] : BlockID[Block] = BID++;
 1588     if (InterleaveGroupMap.count(Instr))
lib/Transforms/Vectorize/VPlanHCFGBuilder.cpp
   95     assert(IRDef2VPValue.count(Phi) && "Missing VPInstruction for PHINode.");
  200     assert(!IRDef2VPValue.count(Inst) &&
  294       assert(IRDef2VPValue.count(BrCond) &&
tools/clang/include/clang/AST/RecordLayout.h
  234     assert(CXXInfo->BaseOffsets.count(Base) && "Did not find base!");
  242     assert(CXXInfo->VBaseOffsets.count(VBase) && "Did not find base!");
tools/clang/include/clang/AST/VTableBuilder.h
  272     assert(AddressPoints.count(Base) && "Did not find address point!");
  379     assert(VTableLayouts.count(RD) && "No layout for this record decl!");
tools/clang/include/clang/Analysis/CFG.h
 1347     assert(!SyntheticDeclStmts.count(Synthetic) && "Already in map");
tools/clang/include/clang/Lex/ModuleMap.h
  566     assert(ModuleScopeIDs.count(ExistingModule) && "unknown module");
tools/clang/include/clang/Sema/ScopeInfo.h
  688     return CaptureMap.count(Var);
tools/clang/include/clang/StaticAnalyzer/Core/CheckerManager.h
  177     assert(CheckerTags.count(tag) != 0 &&
tools/clang/lib/ARCMigrate/TransZeroOutPropsInDealloc.cpp
  206       if (!SynthesizedProperties.count(PDecl))
tools/clang/lib/AST/ASTContext.cpp
  496     if (DeclRawComments.count(D) > 0)
tools/clang/lib/AST/ASTImporter.cpp
 8048   assert(ImportedDecls.count(FromD) != 0 && "Missing call to MapImported?");
tools/clang/lib/AST/ItaniumMangle.cpp
 4868   assert(!Substitutions.count(Ptr) && "Substitution already exists!");
tools/clang/lib/AST/RecordLayoutBuilder.cpp
   80     assert(FieldOffsets.count(FD) &&
  975       assert(VirtualBaseInfo.count(BaseDecl) &&
  979       assert(!NonVirtualBaseInfo.count(BaseDecl) &&
 1079   assert(!Bases.count(Base->Class) && "base offset already exists!");
 1097       assert(!VBases.count(Info->PrimaryVirtualBaseInfo->Class) &&
 1172   assert(!VBases.count(Base->Class) && "vbase offset already exists!");
 1340     assert(Bases.count(BaseDecl) && "Did not find base offset!");
 1347     assert(VBases.count(BaseDecl) && "Did not find base offset!");
tools/clang/lib/AST/VTTBuilder.cpp
   46     assert(!SecondaryVirtualPointerIndices.count(Base) &&
tools/clang/lib/AST/VTableBuilder.cpp
  142     assert(OverridersMap.count(std::make_pair(MD, BaseOffset)) &&
  185       assert(SubobjectOffsets.count(std::make_pair(MD->getParent(),
  196       assert(SubobjectLayoutClassOffsets.count(
  336   assert(!SubobjectOffsets.count(std::make_pair(RD, SubobjectNumber))
  338   assert(!SubobjectLayoutClassOffsets.count(std::make_pair(RD, SubobjectNumber))
  353       if (SubobjectOffsets.count(std::make_pair(BaseDecl, 0)))
  753       assert(!VBaseOffsetOffsets.count(BaseDecl) &&
 1501         assert(MethodInfoMap.count(OverriddenMD) &&
 1508         assert(!MethodInfoMap.count(MD) &&
 1573     assert(!MethodInfoMap.count(MD) &&
 2168       assert(MethodVTableIndices.count(GD));
 2173       assert(MethodVTableIndices.count(MD));
 2303   if (VirtualBaseClassOffsetOffsets.count(std::make_pair(RD, VBase)))
 2991         assert(!MethodInfoMap.count(MD) &&
 3019     assert(!MethodInfoMap.count(MD) &&
 3559   if (VFPtrLocations.count(RD))
 3576     assert(VFTableLayouts.count(id) == 0);
 3693     if (!VBI->VBTableIndices.count(CurVBase))
 3703   assert(VBInfo.VBTableIndices.count(VBase));
 3716   assert(VFPtrLocations.count(RD) && "Couldn't find vfptr locations");
 3726   assert(VFTableLayouts.count(id) && "Couldn't find a VFTable at this offset");
tools/clang/lib/Analysis/CFG.cpp
 1468   assert(ConstructionContextMap.count(E) &&
tools/clang/lib/Basic/SourceManager.cpp
  676   assert(FileInfos.count(SourceFile) == 0 &&
tools/clang/lib/CodeGen/CGExpr.cpp
  916   assert(LocalDeclMap.count(PassedSizeDecl) && "Passed size not loadable");
tools/clang/lib/CodeGen/CGObjCMac.cpp
 3003   if (Protocols.count(PD->getIdentifier()))
tools/clang/lib/CodeGen/CGOpenMPRuntime.cpp
 1406   if (UDRMap.count(D) > 0)
 1744   if (OpenMPLocThreadIDMap.count(CGF.CurFn)) {
 1748   if (FunctionUDRMap.count(CGF.CurFn) > 0) {
 7762     if (FirstPrivateDecls.count(Cap.getCapturedVar())) {
 8271     if (DevPointersMap.count(VD)) {
 8833   if (UDMMap.count(D) > 0)
tools/clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
 4662   assert(FunctionGlobalizedDecls.count(CGF.CurFn) == 0 &&
tools/clang/lib/CodeGen/CGRecordLayout.h
  186     assert(FieldInfo.count(FD) && "Invalid field for record!");
  191     assert(NonVirtualBases.count(RD) && "Invalid non-virtual base!");
  198     assert(CompleteObjectVirtualBases.count(base) && "Invalid virtual base!");
tools/clang/lib/CodeGen/CGStmt.cpp
  577     assert(CGF.LabelMap.count(*i));
tools/clang/lib/CodeGen/CGStmtOpenMP.cpp
 1567     if (LocalDeclMap.count(VD) || CapturedStmtInfo->lookup(VD) ||
 1571                         LocalDeclMap.count(VD) || CapturedStmtInfo->lookup(VD),
 1722     if (LocalDeclMap.count(OrigVD) || CapturedStmtInfo->lookup(OrigVD) ||
 5184           if (!VD->hasLocalStorage() && !CGF.LocalDeclMap.count(VD)) {
 5191             if (!CGF.LocalDeclMap.count(VD))
 5204               if (!CGF.LocalDeclMap.count(VD))
tools/clang/lib/CodeGen/CodeGenFunction.h
  842       if (SavedLocals.count(LocalVD)) return false;
  946       return !VD->isLocalVarDeclOrParm() && CGF.LocalDeclMap.count(VD) > 0;
 4168     assert(!LocalDeclMap.count(VD) && "Decl already exists in LocalDeclMap!");
tools/clang/lib/CodeGen/CodeGenTypes.cpp
  248     if (TypeCache.count(ED->getTypeForDecl())) {
  269   if (RecordDeclTypes.count(Context.getTagDeclType(RD).getTypePtr()))
tools/clang/lib/Frontend/DiagnosticRenderer.cpp
  385       while (End.isMacroID() && !BeginLocsMap.count(EndFileID)) {
tools/clang/lib/Frontend/Rewrite/RewriteModernObjC.cpp
 3803   if (GroupRecordType.count(tuple))
 4023   assert(BlockByRefDeclNo.count(VD) &&
 5593             assert(!BlockByRefDeclNo.count(ND) &&
tools/clang/lib/Frontend/Rewrite/RewriteObjC.cpp
 3237   assert(BlockByRefDeclNo.count(VD) &&
 4695             assert(!BlockByRefDeclNo.count(ND) &&
tools/clang/lib/Frontend/VerifyDiagnosticConsumer.cpp
 1020   } else if (!ParsedFiles.count(FID) && !UnparsedFiles.count(FID)) {
 1020   } else if (!ParsedFiles.count(FID) && !UnparsedFiles.count(FID)) {
tools/clang/lib/Lex/ModuleMap.cpp
  591   assert(!Headers.count(File) && "already have a module for this header");
 1234     assert(InferredModuleAllowedBy.count(M) && "missing inferred module map");
tools/clang/lib/Sema/JumpDiagnostics.cpp
  632       if (CHECK_PERMISSIVE(!LabelAndGotoScopes.count(SC)))
  690       if (CHECK_PERMISSIVE(!LabelAndGotoScopes.count(IG)))
  711     if (CHECK_PERMISSIVE(!LabelAndGotoScopes.count(TheLabel->getStmt())))
  872   if (CHECK_PERMISSIVE(!LabelAndGotoScopes.count(From)))
  874   if (CHECK_PERMISSIVE(!LabelAndGotoScopes.count(To)))
tools/clang/lib/Sema/Sema.cpp
 1514     assert(!S.DeviceCallGraph.count(OrigCallee));
 1541       if (!Seen.count(TemplFD) && !S.DeviceKnownEmittedFns.count(TemplFD)) {
tools/clang/lib/Sema/SemaCodeComplete.cpp
 6776         if (Sel.isNull() || SemaRef.MethodPool.count(Sel))
 6948         if (Sel.isNull() || MethodPool.count(Sel))
 7019       if (Sel.isNull() || MethodPool.count(Sel))
 8335       if (Sel.isNull() || MethodPool.count(Sel))
tools/clang/lib/Sema/SemaDecl.cpp
13732     if (EscapeInfo.count(BD))
17671       else if (DeviceKnownEmittedFns.count(FD) > 0)
17688         } else if (DeviceKnownEmittedFns.count(FD) > 0) {
17726   return (DeviceKnownEmittedFns.count(FD) > 0)
tools/clang/lib/Sema/SemaExpr.cpp
15703   if (CSI->CaptureMap.count(Var)) {
tools/clang/lib/Sema/SemaOpenMP.cpp
  943   if (Iter->SharingMap.count(D)) {
 2827           VarsWithInheritedDSA.count(VD) == 0) {
 4787           if (AlignedArgs.count(CanonPVD) > 0) {
 4857           if (LinearArgs.count(CanonPVD) > 0) {
 4867           if (UniformedArgs.count(CanonPVD) > 0) {
 4921         if (UniformedArgs.count(CanonPVD) == 0) {
tools/clang/lib/Sema/TreeTransform.h
12790       assert(blockScope->CaptureMap.count(newCapture));
tools/clang/lib/Serialization/ASTReaderDecl.cpp
 4368                     !Reader.PendingFakeDefinitionData.count(OldDD));
tools/clang/lib/StaticAnalyzer/Checkers/IvarInvalidationChecker.cpp
  311     if (TrackedIvars.count(IvarD)) {
tools/clang/lib/StaticAnalyzer/Core/BugReporter.cpp
  177     assert(LCM.count(Path) &&
  182   bool isInLocCtxMap(const PathPieces *Path) const { return LCM.count(Path); }
tools/clang/lib/StaticAnalyzer/Core/SymbolManager.cpp
  463   if (TheLiving.count(sym)) {
tools/clang/tools/extra/clang-tidy/modernize/LoopConvertCheck.cpp
  767   if (TUInfo->getReplacedVars().count(Loop))
tools/clang/tools/extra/clang-tidy/utils/ExprSequence.cpp
  181   if (SyntheticStmtSourceMap.count(S))
  197   while (!Map.count(S)) {
tools/clang/tools/extra/clangd/index/Serialization.cpp
  188     assert(Index.count({S.data(), S.size()}) && "string not interned");
tools/dsymutil/BinaryHolder.cpp
  158     if (MemberCache.count(Key))
tools/dsymutil/CompileUnit.h
  130   bool hasLabelAt(uint64_t Addr) const { return Labels.count(Addr); }
tools/gold/gold-plugin.cpp
 1012     if (options::thinlto && !HandleToInputFile.count(F.leader_handle))
tools/lld/ELF/Writer.cpp
 1769             return symtab->soNames.count(needed);
tools/lld/lib/Core/SymbolTable.cpp
  275   return _replacedAtoms.count(atom) > 0;
  284       if (_replacedAtoms.count(undef) == 0)
tools/lld/lib/ReaderWriter/MachO/LayoutPass.cpp
  350       if (_followOnRoots.count(ai) == 0)
tools/lld/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp
  154   bool hasRefName(const lld::Atom *atom) { return _refNames.count(atom); }
tools/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp
 1649       assert(!dwarf->GetForwardDeclClangTypeToDie().count(
tools/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
 1388   if (GetForwardDeclClangTypeToDie().count(
tools/lldb/source/Plugins/SymbolFile/NativePDB/PdbAstBuilder.cpp
  973     lldbassert(m_decl_to_status.count(tag) == 0);
 1020   lldbassert(m_uid_to_decl.count(toOpaqueUid(func_id)) == 0);
 1088     lldbassert(m_uid_to_decl.count(toOpaqueUid(param_uid)) == 0);
tools/llvm-cfi-verify/lib/GraphBuilder.cpp
  212   if (Result.IntermediateNodes.count(Address))
tools/llvm-diff/DifferenceEngine.cpp
  127       if (!Blocks.count(*I)) Count++;
tools/llvm-jitlink/llvm-jitlink.cpp
  251         assert(SegBlocks.count(Seg) && "No allocation for segment");
  256         assert(SegBlocks.count(Seg) && "No allocation for segment");
tools/polly/include/polly/ScopInfo.h
 2072       assert(!ValueDefAccs.count(Access->getAccessValue()) &&
 2077       assert(!PHIReadAccs.count(PHI) &&
 2617   bool isDomainDefined(BasicBlock *BB) const { return DomainMap.count(BB) > 0; }
tools/polly/lib/Analysis/DependenceInfo.cpp
  812   assert(ReductionDependences.count(MA) == 0 &&
tools/polly/lib/Analysis/ScopInfo.cpp
 1440         FoundInside |= S->getRegion().contains(I) && !VMap.count(I);
 1493   assert(!ParameterIds.count(Parameter));
 2376     assert(!InstStmtMap.count(Inst) &&
 2389     assert(!InstStmtMap.count(Inst) &&
 2399       assert(!InstStmtMap.count(&Inst) &&
tools/polly/lib/CodeGen/BlockGenerators.cpp
  143     assert(!BBMap.count(Old));
  148     assert(!GlobalMap.count(Old));
  205     assert(!GlobalMap.count(Old) &&
 1226     if (VectorMap.count(Operand))
 1252       if (SM.count(Operand))
 1511       assert(RegionMaps.count(BBCopyIDom));
 1649     assert(RegionMaps.count(NewIncomingBlockStart));
 1650     assert(RegionMaps.count(NewIncomingBlockEnd));
 1752   assert(RegionMaps.count(BBCopyStart) &&
tools/polly/lib/CodeGen/IRBuilder.cpp
  238   assert(OtherAliasScopeListMap.count(BasePtr) &&
tools/polly/lib/CodeGen/IslNodeBuilder.cpp
 1332   if (ValueMap.count(MA->getAccessInstruction()))
tools/polly/lib/Support/ScopHelper.cpp
  252     if (SCEVCache.count(E))
unittests/ADT/DenseMapTest.cpp
  120   EXPECT_FALSE(this->Map.count(this->getKey()));
  151   EXPECT_TRUE(this->Map.count(this->getKey()));
  359   EXPECT_EQ(1u, M.count(0));
  361   EXPECT_EQ(1u, M.count(1));
  537   EXPECT_EQ(1u, map.count(1));
  602   EXPECT_EQ(Map.count(B), 1u);
  603   EXPECT_EQ(Map.count(C), 1u);
unittests/ExecutionEngine/Orc/CoreAPIsTest.cpp
  207   EXPECT_EQ(Result.count(Foo), 1U) << "Missing result for \"Foo\"";
  208   EXPECT_EQ(Result.count(Bar), 1U) << "Missing result for \"Bar\"";
  235   EXPECT_EQ(SymbolFlags.count(Foo), 1U) << "Missing lookupFlags result for Foo";
  238   EXPECT_EQ(SymbolFlags.count(Bar), 1U)
  274   EXPECT_EQ(Result->count(Baz), 1U) << "No result for \"baz\"";
  275   EXPECT_EQ(Result->count(Qux), 1U) << "No result for \"qux\"";
  289   EXPECT_EQ(Result->count(Bar), 1U) << "No result for \"bar\"";
  290   EXPECT_EQ(Result->count(Baz), 1U) << "No result for \"baz\"";
  964         if (Symbols.count(Name)) {
  982   EXPECT_EQ(Result.count(Bar), 1U) << "Expected to find fallback def for 'bar'";
 1005           EXPECT_TRUE(F.getSymbols().count(&JD))
 1192   EXPECT_EQ(Result->count(Foo), 1U) << "\"Foo\" entry missing";
 1193   EXPECT_EQ(Result->count(Bar), 1U) << "\"Bar\" entry missing";
unittests/ExecutionEngine/Orc/LegacyAPIInteropTest.cpp
   51     EXPECT_EQ(Result->count(Foo), 1U) << "Missing lookup result for foo";
   52     EXPECT_EQ(Result->count(Bar), 1U) << "Missing lookup result for bar";
  104     EXPECT_EQ(Result->count(Foo), 1U) << "Result for foo missing";
  105     EXPECT_EQ(Result->count(Bar), 1U) << "Result for bar missing";
unittests/Transforms/Utils/ValueMapperTest.cpp
  243     EXPECT_FALSE(VM.MD().count(CAM));
  245     EXPECT_FALSE(VM.MD().count(CAM));
  259   EXPECT_FALSE(VM.MD().count(CAM));
utils/TableGen/GlobalISelEmitter.cpp
 1676   bool hasValue() const override { return OpcodeValues.count(I); }