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

References

include/llvm/ADT/SetOperations.h
   43      if (!S2.count(E)) S1.erase(E);   // Erase element if not in S2
include/llvm/ADT/SetVector.h
  158     if (set_.erase(X)) {
  223     set_.erase(back());
include/llvm/Analysis/LoopInfo.h
  446     DenseBlockSet.erase(BB);
include/llvm/Analysis/VectorUtils.h
  654     InterleaveGroups.erase(Group);
include/llvm/IR/PassManager.h
  181     NotPreservedAnalysisIDs.erase(ID);
  218     PreservedIDs.erase(ID);
  236       PreservedIDs.erase(ID);
  241         PreservedIDs.erase(ID);
  258       PreservedIDs.erase(ID);
  263         PreservedIDs.erase(ID);
lib/Analysis/CFG.cpp
   63       InStack.erase(VisitStack.pop_back_val().first);
lib/Analysis/DemandedBits.cpp
  399             DeadUses.erase(&OI);
lib/Analysis/GlobalsModRef.cpp
  215     if (GAR->NonAddressTakenGlobals.erase(GV)) {
  218       if (GAR->IndirectGlobals.erase(GV)) {
lib/Analysis/IVUsers.cpp
  423   Parent->Processed.erase(this->getUser());
lib/Analysis/LazyValueInfo.cpp
  261     ValueSet.erase(V);
  329       if (!ValueSet.erase(V))
lib/Analysis/MemoryBuiltins.cpp
 1005       InsertedInstructions.erase(OffsetPHI);
 1008       InsertedInstructions.erase(SizePHI);
 1020     InsertedInstructions.erase(SizePHI);
 1026     InsertedInstructions.erase(OffsetPHI);
lib/Analysis/MemoryDependenceAnalysis.cpp
  104   bool Found = InstIt->second.erase(Val);
  930           .erase(QueryInst);
lib/Analysis/MemorySSA.cpp
 1622   BlockNumberingValid.erase(BB);
 1650   BlockNumberingValid.erase(BB);
 1857     BlockNumberingValid.erase(BB);
 1934     ValidBlocks.erase(&BB);
lib/Analysis/MemorySSAUpdater.cpp
  131     VisitedBlocks.erase(BB);
 1263           PredsSet.erase(B);
lib/Analysis/ModuleSummaryAnalysis.cpp
  400         Cache.erase(I);
lib/Analysis/ScalarEvolution.cpp
 5742         bool Erased = PendingPhiRanges.erase(Phi);
 9680       make_scope_exit([&]() { PendingLoopPredicates.erase(FoundCondValue); });
10012       bool Erased = PendingMerges.erase(LPhi);
10017       bool Erased = PendingMerges.erase(RPhi);
lib/CodeGen/BranchFolding.cpp
  163   TriedMerging.erase(MBB);
lib/CodeGen/CodeGenPrepare.cpp
 2608       RemovedInsts.erase(Inst);
 3017             AllSelectNodes.erase(Select);
 6091     INS.erase(SI);
lib/CodeGen/InlineSpiller.cpp
 1168   return MergeableSpills[MIdx].erase(&Spill);
 1221     Spills.erase(SpillToRm);
lib/CodeGen/MachineBlockPlacement.cpp
 2619       if (!FunctionBlockSet.erase(ChainBB)) {
lib/CodeGen/MachinePipeliner.cpp
 1244     BU.erase(W);
lib/CodeGen/MachineVerifier.cpp
 2157     todo.erase(MBB);
 2190     todo.erase(MBB);
lib/CodeGen/PeepholeOptimizer.cpp
 1706         LocalMIs.erase(MI);
 1725         LocalMIs.erase(MI);
 1775               LocalMIs.erase(MI);
 1776               LocalMIs.erase(DefMI);
lib/CodeGen/RegisterCoalescer.cpp
 1135     ErasedInstrs.erase(NewCopyMI);
 1924   ErasedInstrs.erase(CopyMI);
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  254       CombinedNodes.erase(N);
lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
  201     LegalizedNodes.erase(N);
 4596       [&LegalizedNodes](SDNode *N, SDNode *E) { LegalizedNodes.erase(N); });
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
 9619   Visited.erase(N);
lib/ExecutionEngine/MCJIT/MCJIT.h
  101       return AddedModules.erase(M) || LoadedModules.erase(M) ||
  101       return AddedModules.erase(M) || LoadedModules.erase(M) ||
  102              FinalizedModules.erase(M);
  132       AddedModules.erase(M);
  147       LoadedModules.erase(M);
lib/IR/LLVMContext.cpp
   90   pImpl->OwnedModules.erase(M);
lib/Linker/IRMover.cpp
   95       DstResolvedOpaqueTypes.erase(Ty);
lib/Support/CommandLine.cpp
  376     RegisteredSubCommands.erase(sub);
lib/Target/AMDGPU/AMDGPUMachineCFGStructurizer.cpp
  230   PHIInfo.erase(InfoElement);
lib/Target/AMDGPU/AMDGPUPerfHintAnalysis.cpp
  155     WorkSet.erase(*WorkSet.begin());
lib/Target/ARM/ARMBaseInstrInfo.cpp
 2286   SeenMIs.erase(DefMI);
lib/Target/ARM/ARMConstantIslandPass.cpp
 1478     if (NewWaterList.erase(WaterBB))
 1496       NewWaterList.erase(WaterBB);
lib/Target/ARM/ARMFrameLowering.cpp
 2325     BeforePrologueRegion.erase(B);
lib/Target/Lanai/LanaiInstrInfo.cpp
  538   SeenMIs.erase(DefMI);
lib/Target/Mips/MipsConstantIslandPass.cpp
 1335     if (NewWaterList.erase(WaterBB))
 1359       NewWaterList.erase(WaterBB);
lib/Target/PowerPC/MCTargetDesc/PPCMCTargetDesc.cpp
  195       UpdateOther.erase(Symbol);
lib/Target/PowerPC/PPCBoolRetToInt.cpp
  162         Promotable.erase(User);
lib/Target/X86/X86SpeculativeLoadHardening.cpp
 1778         if (HardenLoadAddr.erase(&MI)) {
 1795         if (HardenPostLoad.erase(&MI)) {
lib/Transforms/Coroutines/CoroSplit.cpp
 1037   Set.erase(SaveBB);
 1038   Set.erase(ResDesBB);
lib/Transforms/IPO/GlobalDCE.cpp
  126   Deps.erase(&GV); // Remove self-reference.
  214       VFESafeVTables.erase(VTable);
  221       VFESafeVTables.erase(VTable);
  254         VFESafeVTables.erase(VTableInfo.first);
lib/Transforms/IPO/GlobalOpt.cpp
 2667   bool usedErase(GlobalValue *GV) { return Used.erase(GV); }
 2668   bool compilerUsedErase(GlobalValue *GV) { return CompilerUsed.erase(GV); }
lib/Transforms/Instrumentation/MemorySanitizer.cpp
 1309         AllocaSet.erase(Item.second);
lib/Transforms/ObjCARC/ObjCARCOpts.cpp
 1494     OnStack.erase(CurrBB);
lib/Transforms/Scalar/ConstantProp.cpp
   90       WorkList.erase(I); // Remove element from the worklist...
lib/Transforms/Scalar/LICM.cpp
  668           PredecessorBlocks.erase(Pair.first->getParent());
  669           PredecessorBlocks.erase(Pair.first->getSuccessor(1));
  671           PredecessorBlocks.erase(Pair.first->getParent());
  672           PredecessorBlocks.erase(Pair.first->getSuccessor(0));
  674           PredecessorBlocks.erase(Pair.first->getSuccessor(0));
  675           PredecessorBlocks.erase(Pair.first->getSuccessor(1));
lib/Transforms/Scalar/LoopSink.cpp
  148         BBsToSinkInto.erase(DominatedBB);
lib/Transforms/Scalar/LoopStrengthReduce.cpp
 3012   ChainUsersVec[ChainIdx].FarUsers.erase(UserInst);
 3065         ChainUsersVec[ChainIdx].NearUsers.erase(&I);
lib/Transforms/Scalar/NewGVN.cpp
  340   void erase(MemberType *M) { Members.erase(M); }
  357   void memory_erase(const MemoryMemberType *M) { MemoryMembers.erase(M); }
 2395   bool LeaderChanged = LeaderChanges.erase(I);
 4069             ProbablyDead.erase(cast<Instruction>(DominatingLeader));
lib/Transforms/Scalar/SimpleLoopUnswitch.cpp
  313     OldContainingL->getBlocksSet().erase(&Preheader);
  315       OldContainingL->getBlocksSet().erase(BB);
 1389         if (!UnloopedBlockSet.erase(PredBB)) {
 1515       ParentL->getBlocksSet().erase(BB);
 1705       IL->getBlocksSet().erase(PH);
 1707         IL->getBlocksSet().erase(BB);
 1737     L.getBlocksSet().erase(BB);
 1753           L.getBlocksSet().erase(BB);
 1788         if (!UnloopedBlocks.erase(PredBB)) {
lib/Transforms/Utils/LoopUnrollAndJam.cpp
  552         MergeBlocks.erase(Dest);
  554         MergeBlocks.erase(BB);
  556       MergeBlocks.erase(BB);
lib/Transforms/Utils/SimplifyCFG.cpp
 3918     LoopHeaders->erase(BB);
 4140         LoopHeaders->erase(BB);
 4305       LoopHeaders->erase(BB);
lib/Transforms/Vectorize/LoopVectorize.cpp
 5397       OpenIntervals.erase(ToRemove);
lib/Transforms/Vectorize/SLPVectorizer.cpp
 3375     LiveValues.erase(PrevInst);
 3602       if (Bundle.erase(&I) && E->isOpcodeOrAlt(&I))
 5073     if (!Expr.erase(EU.Scalar))
lib/Transforms/Vectorize/VPlanSLP.cpp
  294   Candidates.erase(Best);
tools/clang/include/clang/Sema/Scope.h
  294     DeclsInScope.erase(D);
tools/clang/lib/AST/RecordLayoutBuilder.cpp
 3007     Work.erase(MD);
tools/clang/lib/CodeGen/CGCall.cpp
  789   bool erased = FunctionsBeingProcessed.erase(FI); (void)erased;
 1663   bool Erased = FunctionsBeingProcessed.erase(&FI); (void)Erased;
tools/clang/lib/CodeGen/CodeGenModule.cpp
 3120     if (WeakRefReferences.erase(Entry)) {
 3414     if (WeakRefReferences.erase(Entry)) {
tools/clang/lib/CodeGen/CodeGenTypes.cpp
  369   RecordsBeingLaidOut.erase(Ty);
  756   bool EraseResult = RecordsBeingLaidOut.erase(Key); (void)EraseResult;
tools/clang/lib/Lex/PPDirectives.cpp
 2782       WarnUnusedMacroLocs.erase(OtherMI->getDefinitionLoc());
 2829       WarnUnusedMacroLocs.erase(MI->getDefinitionLoc());
tools/clang/lib/Lex/PPMacroExpansion.cpp
 1843     WarnUnusedMacroLocs.erase(MI->getDefinitionLoc());
tools/clang/lib/Lex/Pragma.cpp
  638         WarnUnusedMacroLocs.erase(MI->getDefinitionLoc());
tools/clang/lib/Sema/AnalysisBasedWarnings.cpp
 1043       bool Found = FallthroughStmts.erase(Stmt);
tools/clang/lib/Sema/SemaChecking.cpp
14306         bool Result = UnmatchedFields.erase(*I);
tools/clang/lib/Sema/SemaDecl.cpp
12614   ParsingInitForAutoVars.erase(ThisDecl);
tools/clang/lib/Sema/SemaDeclCXX.cpp
 3666         Decls.erase(VD);
 3683         Decls.erase(Field);
 3685         BaseClasses.erase(BaseClass->getCanonicalTypeInternal());
 9466   if (DeferredExportedNamespaces.erase(Namespc))
11387       S.SpecialMembersBeingDeclared.erase(D);
tools/clang/lib/Sema/SemaExpr.cpp
 4429   LastRecord.PossibleDerefs.erase(StrippedExpr);
16376     S.MaybeODRUseExprs.erase(E);
tools/clang/lib/Serialization/ASTReader.cpp
 3939         if (!AdditionalStoredMaps.erase(ModMap)) {
tools/clang/lib/Serialization/ASTReaderDecl.cpp
 1731     Reader.PendingDefinitions.erase(MergeDD.Definition);
 4114       if (!Deserialized.erase(Cat))
tools/clang/lib/StaticAnalyzer/Core/BugReporter.cpp
 2537     if (RemainingNodes.erase(Node))
tools/clang/lib/StaticAnalyzer/Core/PlistDiagnostics.cpp
 1046   AlreadyProcessedTokens.erase(IDInfo);
tools/clang/tools/extra/clang-move/Move.cpp
  153   MoveTool->getUnremovedDeclsInOldHeader().erase(D);
  251         MoveTool->getUnremovedDeclsInOldHeader().erase(FTD);
  253         MoveTool->getUnremovedDeclsInOldHeader().erase(CMD);
  269     MoveTool->getUnremovedDeclsInOldHeader().erase(
tools/clang/tools/extra/clang-tidy/bugprone/UseAfterMoveCheck.cpp
  141     Reinits.erase(Reinit);
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/ProTypeMemberInitCheck.cpp
   56     FieldDecls.erase(Match.getNodeAs<FieldDecl>("fieldDecl"));
  420         FieldsToInit.erase(Init->getAnyMember());
  510         BasesToInit.erase(Init->getBaseClass()->getAsCXXRecordDecl());
tools/clang/tools/extra/clang-tidy/utils/ExceptionAnalyzer.cpp
   67     ThrownExceptions.erase(T);
   90     ThrownExceptions.erase(T);
  122     CallStack.erase(Func);
tools/clang/tools/extra/clangd/XRefs.cpp
 1153     RPSet.erase(Pattern);
unittests/ADT/SmallPtrSetTest.cpp
   81   s.erase(&buf[4]);
   82   s.erase(&buf[5]);
   83   s.erase(&buf[6]);
   84   s.erase(&buf[7]);
  265   S.erase(Removable);
utils/TableGen/CodeGenRegisters.cpp
  324       if (SubRegs.count(I->second) || !Orphans.erase(SRI->second))
  353       if (Orphans.erase(SubReg.second))
utils/TableGen/GlobalISelEmitter.cpp
  905     bool R = MutatableInsns.erase(InsnMatcher);