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

References

include/llvm/ADT/SetVector.h
  142     bool result = set_.insert(X).second;
include/llvm/ADT/SmallSet.h
  204       insert(*I);
lib/Analysis/DomTreeUpdater.cpp
  281       Seen.insert(Edge);
lib/Analysis/LoopAccessAnalysis.cpp
  393       Seen.insert(Pointer);
 1138     if (!Offsets.insert(Offset).second)
lib/Analysis/MemorySSAUpdater.cpp
  391       NonOptPhis.insert(MPhi);
 1131       NonOptPhis.insert(PhiUser);
lib/Analysis/StratifiedSets.h
  319       if (!Visited.insert(CurrentIndex).second)
lib/CodeGen/AggressiveAntiDepBreaker.cpp
  270       if (RegSet.insert(P->getReg()).second)
lib/CodeGen/AsmPrinter/DbgEntityHistoryCalculator.cpp
  189       LiveEntries[Var].insert(NewIndex);
  201     LiveEntries[Var].insert(NewIndex);
lib/CodeGen/BranchFolding.cpp
 1856       Set.insert(*AI);
 1858     Set.insert(Reg);
lib/CodeGen/CodeGenPrepare.cpp
 3291       if (!Visited.insert(Item).second)
 5367         NewGEPBases.insert(NewBaseGEP);
lib/CodeGen/IfConversion.cpp
 1958             ExtUses.insert(*SubRegs);
 1966             RedefsByFalse.insert(*SubRegs);
lib/CodeGen/LiveDebugValues.cpp
 1078     OneFragment.insert(ThisFragment);
 1113   AllSeenFragments.insert(ThisFragment);
lib/CodeGen/LiveVariables.cpp
  213   PartDefRegs.insert(LastDefReg);
  222         PartDefRegs.insert(*SubRegs);
  264           Processed.insert(*SS);
  355         PartUses.insert(*SS);
  450       Live.insert(*SubRegs);
  465           Live.insert(*SS);
  609         LiveOuts.insert(LI.PhysReg);
lib/CodeGen/LocalStackSlotAllocation.cpp
  184     ProtectedObjs.insert(i);
lib/CodeGen/MachineBasicBlock.cpp
 1033           PHISrcRegs.insert(Reg);
lib/CodeGen/MachineCSE.cpp
  293         PhysRefs.insert(*AI);
  323       PhysRefs.insert(*AI);
lib/CodeGen/MachineInstrBundle.cpp
  165           KilledDefSet.insert(Reg);
  167         if (ExternUseSet.insert(Reg).second) {
  170             UndefUseSet.insert(Reg);
  174           KilledUseSet.insert(Reg);
  184       if (LocalDefSet.insert(Reg).second) {
  187           DeadDefSet.insert(Reg);
  200           if (LocalDefSet.insert(SubReg).second)
  212     if (Added.insert(Reg).second) {
lib/CodeGen/MachineLICM.cpp
  412         StoredFIs.insert(FI);
  859     bool isNew = ConsiderSeen ? RegSeen.insert(Reg).second : false;
lib/CodeGen/MachinePipeliner.cpp
 1558           Uses.insert(Reg);
 1561             Uses.insert(*Units);
lib/CodeGen/MachineSink.cpp
  425   if (!CEBCandidates.insert(std::make_pair(From, To)).second)
 1217     RegUnits.insert(*RI);
lib/CodeGen/PeepholeOptimizer.cpp
 1324     FoldAsLoadDefCandidates.insert(Reg);
 1341     ImmDefRegs.insert(Reg);
 1403   if (CopySrcRegs.insert(SrcReg).second) {
 1569     TargetRegs.insert(MO.getReg());
lib/CodeGen/PrologEpilogInserter.cpp
  777     ProtectedObjs.insert(i);
lib/CodeGen/RegAllocFast.cpp
  897       if (ThroughRegs.insert(Reg).second)
lib/CodeGen/RegAllocGreedy.cpp
 2630   FixedRegisters.insert(VirtReg.reg);
 2764     FixedRegisters.insert(LI->reg);
 2925   Visited.insert(Reg);
 2980       if (Visited.insert(HI.Reg).second)
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
18546       if (!IsSplat && !DuplicateOps.insert(Op).second)
lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
 1975     DefinedValues.insert(Node->getOperand(i));
lib/CodeGen/SelectionDAG/ScheduleDAGFast.cpp
  454       if (RegAdded.insert(*AI).second) {
lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp
 1311     if (RegAdded.insert(*AliasI).second) {
 1328     if (RegAdded.insert(i).second)
 1403             RegAdded.insert(CallResource).second)
lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp
  777     Seen.insert(Order);
lib/CodeGen/TargetRegisterInfo.cpp
  409     if (!HintedRegs.insert(Phys).second)
lib/CodeGen/TwoAddressInstructionPass.cpp
  237       UseRegs.insert(MO.getReg());
 1104       Uses.insert(MOReg);
 1106         Kills.insert(MOReg);
 1108       Defs.insert(MOReg);
 1110         LiveDefs.insert(MOReg);
lib/DebugInfo/DWARF/DWARFDie.cpp
  398   Seen.insert(*this);
  411       if (Seen.insert(D).second)
  415       if (Seen.insert(D).second)
lib/DebugInfo/DWARF/DWARFVerifier.cpp
 1151       if (!Attributes.insert(AttrEnc.Index).second) {
lib/IR/DebugInfoMetadata.cpp
   90     Locations.insert(std::make_pair(S, L));
lib/Object/WasmObjectFile.cpp
  684     if (!FieldsSeen.insert(FieldName).second)
  706       if (!ProducersSeen.insert(Name).second) {
  736     if (!FeaturesSeen.insert(Feature.Name).second)
lib/Support/Host.cpp
 1267       UniqueItems.insert(std::make_pair(CurPhysicalId, CurCoreId));
lib/Target/AArch64/AArch64CollectLOH.cpp
  497       UsesSeen.insert(Idx);
lib/Target/AArch64/AArch64ISelLowering.cpp
 3938         RegsUsed.insert(VA.getLocReg());
 4223       RegsUsed.insert(VA.getLocReg());
lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp
  969       SGPROperandRegs.insert(Reg);
lib/Target/AMDGPU/AMDGPURewriteOutArguments.cpp
  344         OutArgIndexes.insert(OutArg->getArgNo());
lib/Target/AMDGPU/R600InstrInfo.cpp
  619         Literals.insert(Src.second);
lib/Target/ARM/ARMBaseInstrInfo.cpp
  115     MLxHazardOpcodes.insert(ARM_MLxTable[i].AddSubOpc);
  116     MLxHazardOpcodes.insert(ARM_MLxTable[i].MulOpc);
  974     DstRegs.insert(Dst);
lib/Target/ARM/ARMLoadStoreOptimizer.cpp
 2128         AddedRegPressure.insert(Reg);
 2286         MemRegs.insert(Ops[i]->getOperand(0).getReg());
lib/Target/ARM/AsmParser/ARMAsmParser.cpp
11610       FeatureMissesSeen.insert(MissingFeatures);
lib/Target/ARM/Thumb2ITBlockPass.cpp
  103         UsesDefs.insert(*Subreg);
lib/Target/ARM/Thumb2SizeReduction.cpp
  306     Defs.insert(Reg);
lib/Target/Hexagon/HexagonFrameLowering.cpp
 2069         BadFIs.insert(LFI);
 2070         BadFIs.insert(SFI);
 2111           BadFIs.insert(TFI);
 2124           BadFIs.insert(FI);
 2142           BadFIs.insert(FI);
 2202         LoxFIs.insert(P.first);
lib/Target/Hexagon/HexagonHardwareLoops.cpp
 1727           CmpRegs.insert(MO.getReg());
lib/Target/Hexagon/HexagonHazardRecognizer.cpp
  117       RegDefs.insert(MO.getReg());
lib/Target/Lanai/LanaiDelaySlotFiller.cpp
  240       RegDefs.insert(Reg);
  242       RegUses.insert(Reg);
  251     RegDefs.insert(Lanai::SP);
lib/Target/RISCV/RISCVISelLowering.cpp
 1258   SelectDests.insert(MI.getOperand(0).getReg());
 1275       SelectDests.insert(SequenceMBBI->getOperand(0).getReg());
lib/Target/Sparc/DelaySlotFiller.cpp
  294   RegDefs.insert(SP::O7);
  305     RegUses.insert(Reg.getReg());
  312     RegUses.insert(Operand1.getReg());
  331       RegDefs.insert(Reg);
  337       RegUses.insert(Reg);
lib/Target/SystemZ/SystemZRegisterInfo.cpp
   96       if (!DoneRegs.insert(Reg).second)
  181             TwoAddrHints.insert(PhysReg);
lib/Target/WebAssembly/MCTargetDesc/WebAssemblyInstPrinter.cpp
  169         if (!Printed.insert(Depth).second)
lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp
  177       if (SeenLanguages.insert(Language).second)
  190       if (SeenTools.insert(Name).second)
lib/Target/X86/X86FloatingPoint.cpp
 1542         FRegIdx.insert(i + 1);
lib/Target/X86/X86FrameLowering.cpp
  183         Uses.insert(*AI);
lib/Target/X86/X86ISelLowering.cpp
 9619     Values.insert(Elt);
lib/Target/X86/X86SpeculativeLoadHardening.cpp
 1749           HardenedAddrRegs.insert(MI.getOperand(0).getReg());
 1757           HardenedAddrRegs.insert(BaseReg);
 1759           HardenedAddrRegs.insert(IndexReg);
lib/TextAPI/MachO/Platform.cpp
   60     Result.insert(mapToPlatformKind(Target));
lib/TextAPI/MachO/Target.cpp
   63     Result.insert(Target.Platform);
lib/TextAPI/MachO/TextStubCommon.cpp
   88       Values.insert(PlatformKind::macOS);
   89       Values.insert(PlatformKind::macCatalyst);
  112   Values.insert(Platform);
lib/Transforms/IPO/GlobalDCE.cpp
  185       TypeIdMap[TypeID].insert(std::make_pair(&GV, Offset));
lib/Transforms/IPO/SampleProfile.cpp
 1269           VisitedEdges.insert(UnknownEdge);
 1280             VisitedEdges.insert(E);
 1286             VisitedEdges.insert(E);
 1296         VisitedEdges.insert(SelfReferentialEdge);
lib/Transforms/Scalar/JumpThreading.cpp
  565     LoopHeaders.insert(Edge.second);
 1011         LoopHeaders.insert(BB);
lib/Transforms/Scalar/LoopStrengthReduce.cpp
 4172           if (UniqueItems.insert(std::make_pair(LUIdx, Imm)).second)
lib/Transforms/Scalar/Reassociate.cpp
 2368           if (!Visited.insert({Op0, Op1}).second)
lib/Transforms/Utils/PredicateInfo.cpp
  560         CreatedDeclarations.insert(IF);
  572         CreatedDeclarations.insert(IF);
lib/Transforms/Vectorize/SLPVectorizer.cpp
 3665               if (UsedIdxs.insert(Idx).second)
lib/Transforms/Vectorize/VPlan.h
 1217   void addVF(unsigned VF) { VFs.insert(VF); }
tools/clang/include/clang/Basic/TargetInfo.h
  905         ImmSet.insert(Exact);
  909       ImmSet.insert(Exact);
tools/clang/include/clang/Sema/Sema.h
 3951       TypoCorrectionFailures[Typo].insert(TypoLoc);
tools/clang/include/clang/StaticAnalyzer/Core/BugReporter/BugReporter.h
  479     Invalidations.insert(std::make_pair(Tag, Data));
tools/clang/lib/CodeGen/CoverageMappingGen.cpp
  233       if (!Visited.insert(File).second)
  370       Filter.insert(std::make_pair(ParentLoc, LocEnd));
  746         if (StartLocs.insert(Loc).second)
  761         if (StartLocs.insert(FileStart).second) {
tools/clang/lib/Driver/ToolChains/Cuda.cpp
  267     ArchsWithBadVersion.insert(Arch);
tools/clang/lib/Parse/ParseExpr.cpp
 3132     bool Inserted = Platforms.insert(Spec.getPlatform()).second;
tools/clang/lib/Sema/Sema.cpp
 1528   Seen.insert(OrigCallee);
 1542         Seen.insert(TemplFD);
 1559       Seen.insert(NewCallee);
tools/clang/lib/Serialization/ASTWriter.cpp
 4077       ConstructorNameSet.insert(Name);
 4083       ConversionNameSet.insert(Name);
tools/clang/lib/StaticAnalyzer/Checkers/LocalizationChecker.cpp
  628   LSM_INSERT_SELECTOR("NSBundle", LocalizedStringMacro, 3)
  629   LSM_INSERT_UNARY("NSDateFormatter", "stringFromDate")
  633   LSM_INSERT_SELECTOR("NSDateFormatter", LocalizedStringFromDate, 3)
  634   LSM_INSERT_UNARY("NSNumberFormatter", "stringFromNumber")
  635   LSM_INSERT_NULLARY("UITextField", "text")
  636   LSM_INSERT_NULLARY("UITextView", "text")
  637   LSM_INSERT_NULLARY("UILabel", "text")
tools/clang/lib/StaticAnalyzer/Checkers/ObjCMissingSuperCallChecker.cpp
  114     ClassSelectors.insert(Sel);
tools/clang/lib/StaticAnalyzer/Checkers/UnreachableCodeChecker.cpp
   79       reachable.insert(CB->getBlockID());
  181   visited.insert(CB->getBlockID());
  191       reachable.insert(CB->getBlockID());
tools/clang/lib/StaticAnalyzer/Core/CallEvent.cpp
  282       PreserveArgs.insert(Idx);
tools/clang/tools/extra/clang-tidy/modernize/AvoidBindCheck.cpp
  112       if (!PlaceHolderIndices.insert(B.PlaceHolderIndex).second)
tools/clang/tools/extra/clang-tidy/modernize/LoopConvertUtils.cpp
  488   if (UsageLocations.insert(Begin).second)
tools/clang/tools/extra/clang-tidy/utils/HeaderFileExtensionsUtils.cpp
   54     HeaderFileExtensions.insert(Extension);
tools/clang/tools/extra/modularize/PreprocessorTracker.cpp
  905       InNestedHeader = !HeadersInThisCompile.insert(H).second;
tools/lld/wasm/Writer.cpp
  465       objectFeatures.insert(feature.Name);
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp
 2126   m_function_types.insert(type);
tools/lldb/source/Plugins/SymbolFile/DWARF/DWARFDIE.cpp
   47         if (m_seen.insert(die.GetID()).second)
tools/llvm-cfi-verify/lib/FileAnalysis.cpp
  549   TrapOnFailFunctions.insert("__cfi_slowpath");
  550   TrapOnFailFunctions.insert("__cfi_slowpath_diag");
  551   TrapOnFailFunctions.insert("abort");
  564         TrapOnFailFunctionAddresses.insert(*AddrOrErr);
  574         TrapOnFailFunctionAddresses.insert(Addr.second);
tools/llvm-exegesis/lib/Clustering.cpp
  261     ClusterIDsOfOpcode.insert(ClusterIdOfPoint);
tools/llvm-profdata/llvm-profdata.cpp
  268       bool firstTime = WC->WriterErrorCodes.insert(IPE).second;
  287     bool firstTime = Dst->WriterErrorCodes.insert(IPE).second;
tools/polly/lib/CodeGen/IslNodeBuilder.cpp
 1339   if (!PreloadedPtrs.insert(PtrId).second)
unittests/ADT/SmallSetTest.cpp
   24     s1.insert(i);
   27     s1.insert(i);
   41     s1.insert(i);
   55     s1.insert(i);
   77     s1.insert(i);
   88     s1.insert(i);
  102   s1.insert("str 1");
  103   s1.insert("str 2");
  104   s1.insert("str 1");
  112   s1.insert("str 4");
  113   s1.insert("str 0");
  114   s1.insert("str 4");
  131   s1.insert("str 1");
  132   s1.insert("str 2");
  139   s1.insert("str 4");
  140   s1.insert("str 0");
unittests/TextAPI/TextStubV3Tests.cpp
  307   Platforms.insert(PlatformKind::macOS);
  308   Platforms.insert(PlatformKind::macCatalyst);
unittests/TextAPI/TextStubV4Tests.cpp
  113   Platforms.insert(PlatformKind::macOS);
  114   Platforms.insert(PlatformKind::iOS);
  249   Platforms.insert(PlatformKind::macCatalyst);
  250   Platforms.insert(PlatformKind::tvOS);
  251   Platforms.insert(PlatformKind::iOS);
  272   Platforms.insert(PlatformKind::tvOS);
  273   Platforms.insert(PlatformKind::macCatalyst);
utils/TableGen/CodeGenDAGPatterns.cpp
  578       VT.insert(T.getVectorElementType());
  581       ST.insert(T);
  696       VN.insert(T.isVector() ? T.getVectorNumElements() : 0);
  698       WN.insert(T.isVector() ? T.getVectorNumElements() : 0);
  730       AN.insert(T.getSizeInBits());
  732       BN.insert(T.getSizeInBits());
utils/TableGen/CodeGenRegisters.cpp
 1369       UserDefined.insert(std::make_pair(&Idx, P.first));
utils/TableGen/ExegesisEmitter.cpp
   83       if (!Seen.insert(ResourceName).second)