/freebsd/contrib/llvm-project/clang/lib/AST/ |
H A D | NSAPI.cpp | 45 Selector Sel; in getNSStringSelector() local 48 Sel = Ctx.Selectors.getUnarySelector(&Ctx.Idents.get("stringWithString")); in getNSStringSelector() 51 Sel = Ctx.Selectors.getUnarySelector( in getNSStringSelector() 55 Sel = Ctx.Selectors.getUnarySelector( in getNSStringSelector() 61 Sel = Ctx.Selectors.getSelector(2, KeyIdents); in getNSStringSelector() 65 Sel= Ctx.Selectors.getUnarySelector(&Ctx.Idents.get("stringWithCString")); in getNSStringSelector() 68 Sel = Ctx.Selectors.getUnarySelector(&Ctx.Idents.get("initWithString")); in getNSStringSelector() 71 return (NSStringSelectors[MK] = Sel); in getNSStringSelector() 79 Selector Sel; in getNSArraySelector() local 82 Sel = Ctx.Selectors.getNullarySelector(&Ctx.Idents.get("array")); in getNSArraySelector() [all …]
|
H A D | SelectorLocationsKind.cpp | 20 Selector Sel, in getStandardSelLoc() argument 24 unsigned NumSelArgs = Sel.getNumArgs(); in getStandardSelLoc() 29 const IdentifierInfo *II = Sel.getIdentifierInfoForSlot(0); in getStandardSelLoc() 37 const IdentifierInfo *II = Sel.getIdentifierInfoForSlot(Index); in getStandardSelLoc() 69 SelectorLocationsKind hasStandardSelLocs(Selector Sel, in hasStandardSelLocs() argument 76 if (SelLocs[i] != getStandardSelectorLoc(i, Sel, /*WithArgSpace=*/false, in hasStandardSelLocs() 85 if (SelLocs[i] != getStandardSelectorLoc(i, Sel, /*WithArgSpace=*/true, in hasStandardSelLocs() 96 clang::hasStandardSelectorLocs(Selector Sel, in hasStandardSelectorLocs() argument 100 return hasStandardSelLocs(Sel, SelLocs, Args, EndLoc); in hasStandardSelectorLocs() 104 Selector Sel, in getStandardSelectorLoc() argument [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() 145 Selector Sel, ArrayRef<SourceLocation> SelLocs, in ObjCMessageExpr() argument 151 reinterpret_cast<uintptr_t>(Method ? Method : Sel.getAsOpaquePtr())), in ObjCMessageExpr() 177 bool IsInstanceSuper, QualType SuperType, Selector Sel, in Create() argument 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 [all …]
|
H A D | DeclObjC.cpp | 93 ObjCContainerDecl::getMethod(Selector Sel, bool isInstance, in getMethod() argument 110 lookup_result R = lookup(Sel); in getMethod() 127 Selector Sel = Property->getSetterName(); in HasUserDeclaredSetterMethod() local 128 lookup_result R = lookup(Sel); in HasUserDeclaredSetterMethod() 140 if (ObjCMethodDecl *MD = Cat->getInstanceMethod(Sel)) in HasUserDeclaredSetterMethod() 570 bool ObjCInterfaceDecl::isDesignatedInitializer(Selector Sel, in isDesignatedInitializer() argument 591 if (const ObjCMethodDecl *MD = IFace->getInstanceMethod(Sel)) { in isDesignatedInitializer() 599 if (const ObjCMethodDecl *MD = Ext->getInstanceMethod(Sel)) { in isDesignatedInitializer() 699 ObjCMethodDecl *ObjCInterfaceDecl::lookupMethod(Selector Sel, in lookupMethod() argument 717 if ((MethodDecl = ClassDecl->getMethod(Sel, isInstance))) in lookupMethod() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/Edit/ |
H A D | RewriteObjCFoundationAPI.cpp | 68 Selector Sel = Msg->getSelector(); in rewriteObjCRedundantCallWithLiteral() local 72 (NS.getNSStringSelector(NSAPI::NSStr_stringWithString) == Sel || in rewriteObjCRedundantCallWithLiteral() 73 NS.getNSStringSelector(NSAPI::NSStr_initWithString) == Sel)) || in rewriteObjCRedundantCallWithLiteral() 77 (NS.getNSArraySelector(NSAPI::NSArr_arrayWithArray) == Sel || in rewriteObjCRedundantCallWithLiteral() 78 NS.getNSArraySelector(NSAPI::NSArr_initWithArray) == Sel)) || in rewriteObjCRedundantCallWithLiteral() 83 NSAPI::NSDict_dictionaryWithDictionary) == Sel || in rewriteObjCRedundantCallWithLiteral() 84 NS.getNSDictionarySelector(NSAPI::NSDict_initWithDictionary) == Sel))) { in rewriteObjCRedundantCallWithLiteral() 303 Selector Sel = Msg->getSelector(); in rewriteToObjCSubscriptSyntax() local 305 if (Sel == NS.getNSArraySelector(NSAPI::NSArr_objectAtIndex)) in rewriteToObjCSubscriptSyntax() 308 if (Sel == NS.getNSDictionarySelector(NSAPI::NSDict_objectForKey)) in rewriteToObjCSubscriptSyntax() [all …]
|
/freebsd/contrib/llvm-project/clang/include/clang/AST/ |
H A D | NSAPI.h | 92 std::optional<NSArrayMethodKind> getNSArrayMethodKind(Selector Sel); 117 std::optional<NSDictionaryMethodKind> getNSDictionaryMethodKind(Selector Sel); 134 std::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 | 309 Selector Sel = getSelector(); in getNumSelectorLocs() local 310 if (Sel.isUnarySelector()) in getNumSelectorLocs() 312 return Sel.getNumArgs(); in getNumSelectorLocs() 887 void setGetterName(Selector Sel, SourceLocation Loc = SourceLocation()) { 888 GetterName = Sel; 895 void setSetterName(Selector Sel, SourceLocation Loc = SourceLocation()) { 896 SetterName = Sel; 1062 ObjCMethodDecl *getMethod(Selector Sel, bool isInstance, 1065 ObjCMethodDecl *getInstanceMethod(Selector Sel, 1067 return getMethod(Sel, true/*isInstance*/, AllowHidden); [all …]
|
/freebsd/contrib/llvm-project/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 __anon82c766a60111::FindSuperCallVisitor 75 void fillSelectors(ASTContext &Ctx, ArrayRef<SelectorDescriptor> Sel, 101 ArrayRef<SelectorDescriptor> Sel, in fillSelectors() argument 106 for (SelectorDescriptor Descriptor : Sel) { in fillSelectors() 112 Selector Sel = Ctx.Selectors.getSelector(Descriptor.ArgumentCount, &II); in fillSelectors() local 113 ClassSelectors.insert(Sel); in fillSelectors()
|
H A D | NoReturnFunctionChecker.cpp | 120 Selector Sel = Msg.getSelector(); in checkPostObjCMessage() local 121 switch (Sel.getNumArgs()) { in checkPostObjCMessage() 128 if (Sel != HandleFailureInFunctionSel) in checkPostObjCMessage() 135 if (Sel != HandleFailureInMethodSel) in checkPostObjCMessage()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | SIOptimizeExecMaskingPreRA.cpp | 92 const MachineInstr &Sel, const MachineInstr &And) { in isDefBetween() argument 94 SlotIndex SelIdx = LIS->getInstructionIndex(Sel).getRegSlot(); in isDefBetween() 165 auto *Sel = TRI->findReachingDef(SelReg, Op1->getSubReg(), *Cmp, *MRI, LIS); in optimizeVcndVcmpPair() local 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() 175 MachineOperand *CC = TII->getNamedOperand(*Sel, AMDGPU::OpName::src2); in optimizeVcndVcmpPair() 184 if (isDefBetween(*TRI, LIS, CCReg, *Sel, *And)) 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() 127 for (auto &[Op, Sel] : Consts) { in SubstituteKCacheBank() 130 unsigned Chan = Sel & 3, Index = ((Sel >> 2) - 512) & 31; in SubstituteKCacheBank() 132 const std::pair<unsigned, unsigned> &BankLine = getAccessedBankLine(Sel); in SubstituteKCacheBank() 158 for (auto &[Op, Sel] : Consts) { in SubstituteKCacheBank()
|
/freebsd/contrib/llvm-project/clang/include/clang/Sema/ |
H A D | SemaObjC.h | 215 iterator find(Selector Sel) { return Methods.find(Sel); } in find() argument 219 int count(Selector Sel) const { return Methods.count(Sel); } in count() argument 371 ArrayRef<SourceLocation> SelectorLocs, Selector Sel, 460 void ReadMethodPool(Selector Sel); 461 void updateOutOfDateSelector(Selector Sel); 469 CollectMultipleMethodsInGlobalPool(Selector Sel, 475 AreMultipleMethodsInGlobalPool(Selector Sel, ObjCMethodDecl *BestMethod, 481 Selector Sel, SourceRange R, 485 SelectorsForTypoCorrection(Selector Sel, QualType ObjectType = QualType()); 488 ObjCMethodDecl *LookupImplementedMethodInGlobalPool(Selector Sel); [all …]
|
H A D | ExternalSemaSource.h | 69 virtual void ReadMethodPool(Selector Sel); 73 virtual void updateOutOfDateSelector(Selector Sel);
|
H A D | MultiplexExternalSemaSource.h | 208 void ReadMethodPool(Selector Sel) override; 212 void updateOutOfDateSelector(Selector Sel) override;
|
/freebsd/contrib/llvm-project/clang/lib/Sema/ |
H A D | SemaExprObjC.cpp | 155 Selector Sel, const ObjCMethodDecl *Method) { in validateBoxingMethod() argument 158 S.Diag(Loc, diag::err_undeclared_boxing_method) << Sel << Class->getName(); in validateBoxingMethod() 166 << Sel; in validateBoxingMethod() 268 Selector Sel = S.NSAPIObj->getNSNumberLiteralSelector(*Kind, in getNSNumberFactoryMethod() local 290 ObjCMethodDecl *Method = S.NSNumberDecl->lookupClassMethod(Sel); in getNSNumberFactoryMethod() 295 CX, SourceLocation(), SourceLocation(), Sel, S.NSNumberPointer, in getNSNumberFactoryMethod() 310 if (!validateBoxingMethod(S.SemaRef, Loc, S.NSNumberDecl, Sel, Method)) in getNSNumberFactoryMethod() 817 Sel = NSAPIObj->getNSArraySelector(NSAPI::NSArr_arrayWithObjectsCount); in BuildObjCArrayLiteral() local 818 ObjCMethodDecl *Method = NSArrayDecl->lookupClassMethod(Sel); in BuildObjCArrayLiteral() 822 Context, SourceLocation(), SourceLocation(), Sel, IdT, ReturnTInfo, in BuildObjCArrayLiteral() [all …]
|
H A D | MultiplexExternalSemaSource.cpp | 62 Selector Sel; in GetExternalSelector() local 64 Sel = Sources[i]->GetExternalSelector(ID); in GetExternalSelector() 65 if (!Sel.isNull()) in GetExternalSelector() 66 return Sel; in GetExternalSelector() 68 return Sel; in GetExternalSelector() 215 void MultiplexExternalSemaSource::ReadMethodPool(Selector Sel) { in ReadMethodPool() argument 217 Sources[i]->ReadMethodPool(Sel); in ReadMethodPool() 220 void MultiplexExternalSemaSource::updateOutOfDateSelector(Selector Sel) { in updateOutOfDateSelector() argument 222 Sources[i]->updateOutOfDateSelector(Sel); in updateOutOfDateSelector()
|
H A D | SemaDeclObjC.cpp | 2956 Selector Sel = I->getSelector(); in CheckCategoryVsClassMethodMatches() local 2960 if (SuperIDecl && SuperIDecl->lookupMethod(Sel, true)) in CheckCategoryVsClassMethodMatches() 2962 InsMap.insert(Sel); in CheckCategoryVsClassMethodMatches() 2966 Selector Sel = I->getSelector(); in CheckCategoryVsClassMethodMatches() local 2967 if (SuperIDecl && SuperIDecl->lookupMethod(Sel, false)) in CheckCategoryVsClassMethodMatches() 2969 ClsMap.insert(Sel); in CheckCategoryVsClassMethodMatches() 3424 void SemaObjC::ReadMethodPool(Selector Sel) { in ReadMethodPool() argument 3426 SemaRef.ExternalSource->ReadMethodPool(Sel); in ReadMethodPool() 3429 void SemaObjC::updateOutOfDateSelector(Selector Sel) { in updateOutOfDateSelector() argument 3432 SemaRef.ExternalSource->updateOutOfDateSelector(Sel); in updateOutOfDateSelector() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineSelect.cpp | 55 static Instruction *foldSelectBinOpIdentity(SelectInst &Sel, in foldSelectBinOpIdentity() argument 62 if (!match(Sel.getCondition(), m_Cmp(Pred, m_Value(X), m_Constant(C)))) in foldSelectBinOpIdentity() 77 if (!match(Sel.getOperand(IsEq ? 1 : 2), m_BinOp(BO))) in foldSelectBinOpIdentity() 103 IC.getSimplifyQuery().getWithInstruction(&Sel))) in foldSelectBinOpIdentity() 110 return IC.replaceOperand(Sel, IsEq ? 1 : 2, Y); in foldSelectBinOpIdentity() 122 static Value *foldSelectICmpAnd(SelectInst &Sel, ICmpInst *Cmp, in foldSelectICmpAnd() argument 125 if (!match(Sel.getTrueValue(), m_APInt(SelTC)) || in foldSelectICmpAnd() 126 !match(Sel.getFalseValue(), m_APInt(SelFC))) in foldSelectICmpAnd() 130 Type *SelType = Sel.getType(); in foldSelectICmpAnd() 818 static Instruction *foldSetClearBits(SelectInst &Sel, in foldSetClearBits() argument [all …]
|
/freebsd/contrib/llvm-project/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()
|
/freebsd/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/ |
H A D | ASTUtils.h | 288 clang::Selector Sel; in GetExternalSelector() local 290 Sel = Sources[i]->GetExternalSelector(ID); in GetExternalSelector() 291 if (!Sel.isNull()) in GetExternalSelector() 292 return Sel; in GetExternalSelector() 294 return Sel; in GetExternalSelector() 444 void ReadMethodPool(clang::Selector Sel) override { in ReadMethodPool() argument 446 Source->ReadMethodPool(Sel); in ReadMethodPool() 449 void updateOutOfDateSelector(clang::Selector Sel) override { in updateOutOfDateSelector() argument 451 Source->updateOutOfDateSelector(Sel); in updateOutOfDateSelector()
|
/freebsd/contrib/llvm-project/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,
|
H A D | CGObjCGNU.cpp | 510 virtual llvm::Value *GetTypedSelector(CodeGenFunction &CGF, Selector Sel, 571 QualType ResultType, Selector Sel, 577 QualType ResultType, Selector Sel, 584 llvm::Value *GetSelector(CodeGenFunction &CGF, Selector Sel) override; 585 Address GetAddrOfSelector(CodeGenFunction &CGF, Selector Sel) override; 588 virtual llvm::Constant *GetConstantSelector(Selector Sel, in GetConstantSelector() argument 1445 llvm::Value *GetTypedSelector(CodeGenFunction &CGF, Selector Sel, in GetTypedSelector() argument 1447 return GetConstantSelector(Sel, TypeEncoding); in GetTypedSelector() 1480 llvm::Constant *GetConstantSelector(Selector Sel, in GetConstantSelector() argument 1483 auto SelVarName = (StringRef(".objc_selector_") + Sel.getAsString() + "_" + in GetConstantSelector() [all …]
|
H A D | CGObjCMac.cpp | 935 llvm::Constant *GetMethodVarName(Selector Sel); 1073 Selector Sel, 1312 llvm::Value *EmitSelector(CodeGenFunction &CGF, Selector Sel); 1313 ConstantAddress EmitSelectorAddr(Selector Sel); 1325 Selector Sel, llvm::Value *Receiver, 1333 Selector Sel, const ObjCInterfaceDecl *Class, 1341 llvm::Value *GetSelector(CodeGenFunction &CGF, Selector Sel) override; 1342 Address GetAddrOfSelector(CodeGenFunction &CGF, Selector Sel) override; 1426 bool isVTableDispatchedSelector(Selector Sel); 1488 Selector Sel, [all …]
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
H A D | CallEvent.cpp | 1132 Selector Sel) const { in canBeOverridenInSubclass() 1156 D = IDecl->lookupMethod(Sel, true); in canBeOverridenInSubclass() 1274 Selector Sel = E->getSelector(); in getRuntimeDefinition() local 1343 CanBeSubClassed = canBeOverridenInSubclass(IDecl, Sel); in getRuntimeDefinition() 1351 lookupRuntimeDefinition(IDecl, Sel, LookingForInstanceMethod); in getRuntimeDefinition() 1367 return RuntimeDefinition(IDecl->lookupPrivateClassMethod(Sel)); in getRuntimeDefinition() 1376 Selector Sel = getSelector(); in argumentsMayEscape() local 1377 if (Sel.getNumArgs() == 1 && in argumentsMayEscape() 1378 Sel.getIdentifierInfoForSlot(0)->isStr("valueWithPointer")) in argumentsMayEscape()
|