| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | NSAPI.cpp | 44 Selector Sel; in getNSStringSelector() local 80 Selector Sel; in getNSArraySelector() local 148 if (Sel == getNSArraySelector(MK)) in getNSArrayMethodKind() 158 Selector Sel; in getNSDictionarySelector() local 259 Selector Sel; in getNSSetSelector() local 297 return (NSSetSelectors[MK] = Sel); in getNSSetSelector() 307 if (Sel == getNSSetSelector(MK)) in getNSSetMethodKind() 605 if (Sel.isNull()) { in getOrInitSelector() 612 return Sel; in getOrInitSelector() 616 if (Sel.isNull()) { in getOrInitNullarySelector() [all …]
|
| H A D | SelectorLocationsKind.cpp | 20 Selector Sel, in getStandardSelLoc() argument 24 unsigned NumSelArgs = Sel.getNumArgs(); in getStandardSelLoc() 29 IdentifierInfo *II = Sel.getIdentifierInfoForSlot(0); in getStandardSelLoc() 37 IdentifierInfo *II = Sel.getIdentifierInfoForSlot(Index); in getStandardSelLoc() 69 SelectorLocationsKind hasStandardSelLocs(Selector Sel, in hasStandardSelLocs() argument 96 clang::hasStandardSelectorLocs(Selector Sel, in hasStandardSelectorLocs() argument 100 return hasStandardSelLocs(Sel, SelLocs, Args, EndLoc); in hasStandardSelectorLocs() 108 return getStandardSelLoc(Index, Sel, WithArgSpace, in getStandardSelectorLoc() 113 clang::hasStandardSelectorLocs(Selector Sel, in hasStandardSelectorLocs() argument 117 return hasStandardSelLocs(Sel, SelLocs, Args, EndLoc); in hasStandardSelectorLocs() [all …]
|
| H A D | ExprObjC.cpp | 109 QualType SuperType, Selector Sel, in ObjCMessageExpr() argument 116 reinterpret_cast<uintptr_t>(Method ? Method : Sel.getAsOpaquePtr())), in ObjCMessageExpr() 128 TypeSourceInfo *Receiver, Selector Sel, in ObjCMessageExpr() argument 135 reinterpret_cast<uintptr_t>(Method ? Method : Sel.getAsOpaquePtr())), in ObjCMessageExpr() 188 Mem = alloc(Context, Args, RBracLoc, SelLocs, Sel, SelLocsK); in Create() 190 SuperType, Sel, SelLocs, SelLocsK, Method, in Create() 197 Selector Sel, ArrayRef<SourceLocation> SelLocs, in Create() argument 207 Mem = alloc(Context, Args, RBracLoc, SelLocs, Sel, SelLocsK); in Create() 226 Mem = alloc(Context, Args, RBracLoc, SelLocs, Sel, SelLocsK); in Create() 243 Selector Sel, in alloc() argument [all …]
|
| H A D | DeclObjC.cpp | 109 lookup_result R = lookup(Sel); in getMethod() 126 Selector Sel = Property->getSetterName(); in HasUserDeclaredSetterMethod() local 127 lookup_result R = lookup(Sel); in HasUserDeclaredSetterMethod() 766 Method = getCategoryMethod(Sel, Instance); in lookupPrivateMethod() 772 Method = lookupInstanceMethod(Sel); in lookupPrivateMethod() 776 Method = lookupPrivateMethod(Sel, true); in lookupPrivateMethod() 979 const auto &Sel = getSelector(); in getCanonicalDecl() local 1344 Selector Sel = getSelector(); in findPropertyDecl() local 1345 unsigned NumArgs = Sel.getNumArgs(); in findPropertyDecl() 1367 if (NextSel == Sel) in findPropertyDecl() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/refactor/tweaks/ |
| H A D | DefineOutline.cpp | 64 assert(Sel.FS); in getSourceFile() 67 return getCorrespondingHeaderOrSource(FileName, *Sel.AST, Sel.Index); in getSourceFile() 375 bool prepare(const Selection &Sel) override { in prepare() argument 379 if (!isHeaderFile(Sel.AST->getSourceManager().getFilename(Sel.Cursor), in prepare() 380 Sel.AST->getLangOpts())) in prepare() 416 auto CCFile = getSourceFile(*MainFileName, Sel); in apply() 420 assert(Sel.FS && "FS Must be set in apply"); in apply() 421 auto Buffer = Sel.FS->getBufferForFile(*CCFile); in apply() 434 Sel.AST->getHeuristicResolver()); in apply() 448 Sel.AST->getSourceManager(), in apply() [all …]
|
| H A D | PopulateSwitch.cpp | 52 bool prepare(const Selection &Sel) override; 53 Expected<Effect> apply(const Selection &Sel) override; 85 bool PopulateSwitch::prepare(const Selection &Sel) { in REGISTER_TWEAK() 86 const SelectionTree::Node *CA = Sel.ASTSelection.commonAncestor(); in REGISTER_TWEAK() 127 ASTContext &Ctx = Sel.AST->getASTContext(); in REGISTER_TWEAK() 190 Expected<Tweak::Effect> PopulateSwitch::apply(const Selection &Sel) { in apply() argument 191 ASTContext &Ctx = Sel.AST->getASTContext(); in apply()
|
| H A D | DefineInline.cpp | 399 bool prepare(const Selection &Sel) override { in prepare() argument 400 const SelectionTree::Node *SelNode = Sel.ASTSelection.commonAncestor(); in prepare() 431 if (!checkDeclsAreVisible(getNonLocalDeclRefs(*Sel.AST, Source), Target, in prepare() 432 Sel.AST->getSourceManager())) in prepare() 438 Expected<Effect> apply(const Selection &Sel) override { in apply() argument 439 const auto &AST = Sel.AST->getASTContext(); in apply() 448 renameParameters(Target, Source, Sel.AST->getHeuristicResolver()); in apply() 453 qualifyAllDecls(Source, Target, Sel.AST->getHeuristicResolver()); in apply() 490 auto FE = Effect::fileEdit(SM, SM.getFileID(Sel.Cursor), in apply()
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | ObjCMissingSuperCallChecker.cpp | 43 explicit FindSuperCallVisitor(Selector S) : DoesCallSuper(false), Sel(S) {} in FindSuperCallVisitor() 46 if (E->getSelector() == Sel) in VisitObjCMessageExpr() 57 Selector Sel; member in __anonc499b5d60111::FindSuperCallVisitor 75 void fillSelectors(ASTContext &Ctx, ArrayRef<SelectorDescriptor> Sel, 101 ArrayRef<SelectorDescriptor> Sel, in fillSelectors() argument 106 for (ArrayRef<SelectorDescriptor>::iterator I = Sel.begin(), E = Sel.end(); in fillSelectors() 114 Selector Sel = Ctx.Selectors.getSelector(Descriptor.ArgumentCount, &II); in fillSelectors() local 115 ClassSelectors.insert(Sel); in fillSelectors()
|
| H A D | NoReturnFunctionChecker.cpp | 118 Selector Sel = Msg.getSelector(); in checkPostObjCMessage() local 119 switch (Sel.getNumArgs()) { in checkPostObjCMessage() 126 if (Sel != HandleFailureInFunctionSel) in checkPostObjCMessage() 133 if (Sel != HandleFailureInMethodSel) in checkPostObjCMessage()
|
| /llvm-project-15.0.7/clang/lib/Edit/ |
| H A D | RewriteObjCFoundationAPI.cpp | 67 Selector Sel = Msg->getSelector(); in rewriteObjCRedundantCallWithLiteral() local 302 Selector Sel = Msg->getSelector(); in rewriteToObjCSubscriptSyntax() local 387 Selector Sel = Msg->getSelector(); in rewriteToArrayLiteral() local 456 Selector Sel = Msg->getSelector(); in getNSArrayObjects() local 491 Selector Sel = Msg->getSelector(); in rewriteToDictionaryLiteral() local 501 if (Sel == NS.getNSDictionarySelector( in rewriteToDictionaryLiteral() 522 if (Sel == NS.getNSDictionarySelector( in rewriteToDictionaryLiteral() 614 Selector Sel = Msg->getSelector(); in shouldNotRewriteImmediateMessageArgs() local 777 Selector Sel = Msg->getSelector(); in rewriteToNumberLiteral() local 985 Selector Sel = Msg->getSelector(); in rewriteToNumericBoxedExpression() local [all …]
|
| /llvm-project-15.0.7/clang/include/clang/AST/ |
| H A D | NSAPI.h | 92 Optional<NSArrayMethodKind> getNSArrayMethodKind(Selector Sel); 117 Optional<NSDictionaryMethodKind> getNSDictionaryMethodKind(Selector Sel); 134 Optional<NSSetMethodKind> getNSSetMethodKind(Selector Sel); 200 Selector Sel) const { in isNSNumberLiteralSelector() argument 201 return Sel == getNSNumberLiteralSelector(MK, false) || in isNSNumberLiteralSelector() 202 Sel == getNSNumberLiteralSelector(MK, true); in isNSNumberLiteralSelector() 207 getNSNumberLiteralMethodKind(Selector Sel) const; 235 Selector getOrInitSelector(ArrayRef<StringRef> Ids, Selector &Sel) const; 236 Selector getOrInitNullarySelector(StringRef Id, Selector &Sel) const;
|
| H A D | SelectorLocationsKind.h | 45 SelectorLocationsKind hasStandardSelectorLocs(Selector Sel, 57 Selector Sel, 63 SelectorLocationsKind hasStandardSelectorLocs(Selector Sel, 75 Selector Sel,
|
| H A D | DeclObjC.h | 312 Selector Sel = getSelector(); in getNumSelectorLocs() local 313 if (Sel.isUnarySelector()) in getNumSelectorLocs() 315 return Sel.getNumArgs(); in getNumSelectorLocs() 885 GetterName = Sel; 893 SetterName = Sel; 1062 ObjCMethodDecl *getInstanceMethod(Selector Sel, 1503 isDesignatedInitializer(Selector Sel, 1826 return lookupMethod(Sel, true/*isInstance*/); in lookupInstanceMethod() 1831 return lookupMethod(Sel, false/*isInstance*/); in lookupClassMethod() 1841 return lookupPrivateMethod(Sel, false); in lookupPrivateClassMethod() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineSelect.cpp | 1082 Sel.swapProfMetadata(); in adjustMinMax() 1086 Cmp.moveBefore(&Sel); in adjustMinMax() 1167 Value *TrueVal = Sel.getTrueValue(), *FalseVal = Sel.getFalseValue(); in foldSelectValueEquivalence() 1508 Sel.swapValues(); in tryToReuseConstantFromSelectInComparison() 1509 Sel.swapProfMetadata(); in tryToReuseConstantFromSelectInComparison() 1511 return &Sel; in tryToReuseConstantFromSelectInComparison() 2261 Function *F = Intrinsic::getDeclaration(Sel.getModule(), IID, Sel.getType()); in foldSelectFunnelShift() 2318 if (V != &Sel) in foldVectorSelect() 2320 return &Sel; in foldVectorSelect() 2420 PN->takeName(&Sel); in foldSelectToPhiImpl() [all …]
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | SemaExprObjC.cpp | 160 << Sel; in validateBoxingMethod() 848 << Sel; in BuildObjCArrayLiteral() 859 << Sel; in BuildObjCArrayLiteral() 1019 << Sel; in BuildObjCDictionaryLiteral() 1056 << Sel; in BuildObjCDictionaryLiteral() 1069 << Sel; in BuildObjCDictionaryLiteral() 1235 (void)Sel; in LookupDirectMethodInMethodList() 1310 << Sel << MatchedSel in ParseObjCSelectorExpression() 1343 << Sel; in ParseObjCSelectorExpression() 2413 if (Method->getSelector() == Sel) in ActOnSuperMessage() [all …]
|
| H A D | MultiplexExternalSemaSource.cpp | 56 Selector Sel; in GetExternalSelector() local 58 Sel = Sources[i]->GetExternalSelector(ID); in GetExternalSelector() 59 if (!Sel.isNull()) in GetExternalSelector() 60 return Sel; in GetExternalSelector() 62 return Sel; in GetExternalSelector() 209 void MultiplexExternalSemaSource::ReadMethodPool(Selector Sel) { in ReadMethodPool() argument 211 Sources[i]->ReadMethodPool(Sel); in ReadMethodPool() 214 void MultiplexExternalSemaSource::updateOutOfDateSelector(Selector Sel) { in updateOutOfDateSelector() argument 216 Sources[i]->updateOutOfDateSelector(Sel); in updateOutOfDateSelector()
|
| H A D | SemaDeclObjC.cpp | 2947 Selector Sel = I->getSelector(); in CheckCategoryVsClassMethodMatches() local 2953 InsMap.insert(Sel); in CheckCategoryVsClassMethodMatches() 2957 Selector Sel = I->getSelector(); in CheckCategoryVsClassMethodMatches() local 2960 ClsMap.insert(Sel); in CheckCategoryVsClassMethodMatches() 3414 void Sema::ReadMethodPool(Selector Sel) { in ReadMethodPool() argument 3416 ExternalSource->ReadMethodPool(Sel); in ReadMethodPool() 3509 ReadMethodPool(Sel); in CollectMultipleMethodsInGlobalPool() 3572 ReadMethodPool(Sel); in LookupMethodInGlobalPool() 3700 unsigned NumArgs = Sel.getNumArgs(); in SelectorsForTypoCorrection() 4664 auto Sel = Method->getSelector(); in checkObjCDirectMethodClashes() local [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/AMDGPU/ |
| H A D | SIOptimizeExecMaskingPreRA.cpp | 94 SlotIndex SelIdx = LIS->getInstructionIndex(Sel).getRegSlot(); in isDefBetween() 166 if (!Sel || Sel->getOpcode() != AMDGPU::V_CNDMASK_B32_e64) in optimizeVcndVcmpPair() 169 if (TII->hasModifiersSet(*Sel, AMDGPU::OpName::src0_modifiers) || in optimizeVcndVcmpPair() 170 TII->hasModifiersSet(*Sel, AMDGPU::OpName::src1_modifiers)) in optimizeVcndVcmpPair() 173 Op1 = TII->getNamedOperand(*Sel, AMDGPU::OpName::src0); in optimizeVcndVcmpPair() 174 Op2 = TII->getNamedOperand(*Sel, AMDGPU::OpName::src1); in optimizeVcndVcmpPair() 184 if (isDefBetween(*TRI, LIS, CCReg, *Sel, *And)) in optimizeVcndVcmpPair() 189 SlotIndex SelIdx = LIS->getInstructionIndex(*Sel); in optimizeVcndVcmpPair() 286 LLVM_DEBUG(dbgs() << "Erasing: " << *Sel << '\n'); in optimizeVcndVcmpPair() 289 LIS->RemoveMachineInstrFromMaps(*Sel); in optimizeVcndVcmpPair() [all …]
|
| H A D | R600EmitClauseMarkers.cpp | 99 std::pair<unsigned, unsigned> getAccessedBankLine(unsigned Sel) const { in getAccessedBankLine() 104 ((Sel >> 2) - 512) >> 12, // KC_BANK in getAccessedBankLine() 110 ((((Sel >> 2) - 512) & 4095) >> 5) << 1); in getAccessedBankLine() 130 unsigned Sel = Consts[i].second; in SubstituteKCacheBank() local 131 unsigned Chan = Sel & 3, Index = ((Sel >> 2) - 512) & 31; in SubstituteKCacheBank() 133 const std::pair<unsigned, unsigned> &BankLine = getAccessedBankLine(Sel); in SubstituteKCacheBank()
|
| /llvm-project-15.0.7/clang/include/clang/Analysis/ |
| H A D | SelectorExtras.h | 27 static inline void lazyInitKeywordSelector(Selector &Sel, ASTContext &Ctx, in lazyInitKeywordSelector() argument 29 if (!Sel.isNull()) in lazyInitKeywordSelector() 31 Sel = getKeywordSelector(Ctx, IIs...); in lazyInitKeywordSelector()
|
| /llvm-project-15.0.7/lldb/source/Plugins/ExpressionParser/Clang/ |
| H A D | ASTUtils.h | 281 clang::Selector Sel; in GetExternalSelector() local 283 Sel = Sources[i]->GetExternalSelector(ID); in GetExternalSelector() 284 if (!Sel.isNull()) in GetExternalSelector() 285 return Sel; in GetExternalSelector() 287 return Sel; in GetExternalSelector() 437 void ReadMethodPool(clang::Selector Sel) override { in ReadMethodPool() argument 439 Source->ReadMethodPool(Sel); in ReadMethodPool() 442 void updateOutOfDateSelector(clang::Selector Sel) override { in updateOutOfDateSelector() argument 444 Source->updateOutOfDateSelector(Sel); in updateOutOfDateSelector()
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CGObjCRuntime.h | 129 virtual llvm::Value *GetSelector(CodeGenFunction &CGF, Selector Sel) = 0; 136 virtual Address GetAddrOfSelector(CodeGenFunction &CGF, Selector Sel) = 0; 171 Selector Sel, 185 Selector Sel, 202 Selector Sel,
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/refactor/ |
| H A D | Tweak.h | 112 virtual bool prepare(const Selection &Sel) = 0; 115 virtual Expected<Effect> apply(const Selection &Sel) = 0;
|
| /llvm-project-15.0.7/clang/include/clang/Sema/ |
| H A D | ExternalSemaSource.h | 69 virtual void ReadMethodPool(Selector Sel); 73 virtual void updateOutOfDateSelector(Selector Sel);
|
| /llvm-project-15.0.7/clang/lib/Analysis/ |
| H A D | CallGraph.cpp | 116 Selector Sel = ME->getSelector(); in VisitObjCMessageExpr() local 121 D = IDecl->lookupPrivateMethod(Sel); in VisitObjCMessageExpr() 123 D = IDecl->lookupPrivateClassMethod(Sel); in VisitObjCMessageExpr()
|