Home
last modified time | relevance | path

Searched refs:Sel (Results 1 – 25 of 92) sorted by relevance

1234

/external/clang/lib/AST/
DNSAPI.cpp45 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()
63 Sel = Ctx.Selectors.getSelector(2, KeyIdents); in getNSStringSelector()
67 Sel= Ctx.Selectors.getUnarySelector(&Ctx.Idents.get("stringWithCString")); in getNSStringSelector()
70 Sel = Ctx.Selectors.getUnarySelector(&Ctx.Idents.get("initWithString")); in getNSStringSelector()
73 return (NSStringSelectors[MK] = Sel); in getNSStringSelector()
80 NSAPI::getNSStringMethodKind(Selector Sel) const { in getNSStringMethodKind()
83 if (Sel == getNSStringSelector(MK)) in getNSStringMethodKind()
[all …]
DSelectorLocationsKind.cpp21 Selector Sel, in getStandardSelLoc() argument
25 unsigned NumSelArgs = Sel.getNumArgs(); in getStandardSelLoc()
30 IdentifierInfo *II = Sel.getIdentifierInfoForSlot(0); in getStandardSelLoc()
38 IdentifierInfo *II = Sel.getIdentifierInfoForSlot(Index); in getStandardSelLoc()
70 SelectorLocationsKind hasStandardSelLocs(Selector Sel, in hasStandardSelLocs() argument
77 if (SelLocs[i] != getStandardSelectorLoc(i, Sel, /*WithArgSpace=*/false, in hasStandardSelLocs()
86 if (SelLocs[i] != getStandardSelectorLoc(i, Sel, /*WithArgSpace=*/true, in hasStandardSelLocs()
97 clang::hasStandardSelectorLocs(Selector Sel, in hasStandardSelectorLocs() argument
101 return hasStandardSelLocs(Sel, SelLocs, Args, EndLoc); in hasStandardSelectorLocs()
105 Selector Sel, in getStandardSelectorLoc() argument
[all …]
DExprObjC.cpp120 QualType SuperType, Selector Sel, in ObjCMessageExpr() argument
130 reinterpret_cast<uintptr_t>(Method ? Method : Sel.getAsOpaquePtr())), in ObjCMessageExpr()
141 TypeSourceInfo *Receiver, Selector Sel, in ObjCMessageExpr() argument
150 reinterpret_cast<uintptr_t>(Method ? Method : Sel.getAsOpaquePtr())), in ObjCMessageExpr()
159 Selector Sel, ArrayRef<SourceLocation> SelLocs, in ObjCMessageExpr() argument
168 reinterpret_cast<uintptr_t>(Method ? Method : Sel.getAsOpaquePtr())), in ObjCMessageExpr()
203 bool IsInstanceSuper, QualType SuperType, Selector Sel, in Create() argument
214 Mem = alloc(Context, Args, RBracLoc, SelLocs, Sel, SelLocsK); in Create()
216 SuperType, Sel, SelLocs, SelLocsK, Method, in Create()
223 Selector Sel, ArrayRef<SourceLocation> SelLocs, in Create() argument
[all …]
DDeclObjC.cpp68 ObjCContainerDecl::getMethod(Selector Sel, bool isInstance, in getMethod() argument
86 lookup_result R = lookup(Sel); in getMethod()
103 Selector Sel = Property->getSetterName(); in HasUserDeclaredSetterMethod() local
104 lookup_result R = lookup(Sel); in HasUserDeclaredSetterMethod()
116 if (ObjCMethodDecl *MD = Cat->getInstanceMethod(Sel)) in HasUserDeclaredSetterMethod()
540 bool ObjCInterfaceDecl::isDesignatedInitializer(Selector Sel, in isDesignatedInitializer() argument
552 if (const ObjCMethodDecl *MD = IFace->getInstanceMethod(Sel)) { in isDesignatedInitializer()
560 if (const ObjCMethodDecl *MD = Ext->getInstanceMethod(Sel)) { in isDesignatedInitializer()
653 ObjCMethodDecl *ObjCInterfaceDecl::lookupMethod(Selector Sel, in lookupMethod() argument
671 if ((MethodDecl = ClassDecl->getMethod(Sel, isInstance))) in lookupMethod()
[all …]
/external/clang/lib/StaticAnalyzer/Checkers/
DObjCMissingSuperCallChecker.cpp44 explicit FindSuperCallVisitor(Selector S) : DoesCallSuper(false), Sel(S) {} in FindSuperCallVisitor()
47 if (E->getSelector() == Sel) in VisitObjCMessageExpr()
58 Selector Sel; member in __anonbdfe11470111::FindSuperCallVisitor
76 void fillSelectors(ASTContext &Ctx, ArrayRef<SelectorDescriptor> Sel,
102 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()
DSelectorExtras.h48 static inline void lazyInitKeywordSelector(Selector &Sel, ASTContext &Ctx, in lazyInitKeywordSelector() argument
50 if (!Sel.isNull()) in lazyInitKeywordSelector()
54 Sel = getKeywordSelectorImpl(Ctx, First, argp); in lazyInitKeywordSelector()
58 static inline void lazyInitNullarySelector(Selector &Sel, ASTContext &Ctx, in lazyInitNullarySelector() argument
60 if (!Sel.isNull()) in lazyInitNullarySelector()
62 Sel = GetNullarySelector(Name, Ctx); in lazyInitNullarySelector()
DNoReturnFunctionChecker.cpp119 Selector Sel = Msg.getSelector(); in checkPostObjCMessage() local
120 switch (Sel.getNumArgs()) { in checkPostObjCMessage()
127 if (Sel != HandleFailureInFunctionSel) in checkPostObjCMessage()
134 if (Sel != HandleFailureInMethodSel) in checkPostObjCMessage()
/external/clang/lib/Edit/
DRewriteObjCFoundationAPI.cpp68 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 …]
/external/clang/include/clang/AST/
DNSAPI.h60 Optional<NSStringMethodKind> getNSStringMethodKind(Selector Sel) const;
96 Optional<NSArrayMethodKind> getNSArrayMethodKind(Selector Sel);
121 Optional<NSDictionaryMethodKind> getNSDictionaryMethodKind(Selector Sel);
138 Optional<NSSetMethodKind> getNSSetMethodKind(Selector Sel);
196 Selector Sel) const { in isNSNumberLiteralSelector() argument
197 return Sel == getNSNumberLiteralSelector(MK, false) || in isNSNumberLiteralSelector()
198 Sel == getNSNumberLiteralSelector(MK, true); in isNSNumberLiteralSelector()
203 getNSNumberLiteralMethodKind(Selector Sel) const;
231 Selector getOrInitSelector(ArrayRef<StringRef> Ids, Selector &Sel) const;
DSelectorLocationsKind.h46 SelectorLocationsKind hasStandardSelectorLocs(Selector Sel,
58 Selector Sel,
64 SelectorLocationsKind hasStandardSelectorLocs(Selector Sel,
76 Selector Sel,
DDeclObjC.h317 Selector Sel = getSelector(); in getNumSelectorLocs() local
318 if (Sel.isUnarySelector()) in getNumSelectorLocs()
320 return Sel.getNumArgs(); in getNumSelectorLocs()
855 void setGetterName(Selector Sel) { GetterName = Sel; } in setGetterName() argument
858 void setSetterName(Selector Sel) { SetterName = Sel; } in setSetterName() argument
1005 ObjCMethodDecl *getMethod(Selector Sel, bool isInstance,
1007 ObjCMethodDecl *getInstanceMethod(Selector Sel,
1009 return getMethod(Sel, true/*isInstance*/, AllowHidden);
1011 ObjCMethodDecl *getClassMethod(Selector Sel, bool AllowHidden = false) const {
1012 return getMethod(Sel, false/*isInstance*/, AllowHidden);
[all …]
DExprObjC.h925 Selector Sel,
935 Selector Sel,
945 Selector Sel,
993 Selector Sel,
1043 Selector Sel,
1077 Selector Sel,
1111 Selector Sel,
1334 Selector Sel = getSelector();
1335 if (Sel.isUnarySelector())
1337 return Sel.getNumArgs();
/external/clang/lib/Sema/
DSemaExprObjC.cpp148 Selector Sel, const ObjCMethodDecl *Method) { in validateBoxingMethod() argument
151 S.Diag(Loc, diag::err_undeclared_boxing_method) << Sel << Class->getName(); in validateBoxingMethod()
159 << Sel; in validateBoxingMethod()
260 Selector Sel = S.NSAPIObj->getNSNumberLiteralSelector(*Kind, in getNSNumberFactoryMethod() local
282 ObjCMethodDecl *Method = S.NSNumberDecl->lookupClassMethod(Sel); in getNSNumberFactoryMethod()
287 ObjCMethodDecl::Create(CX, SourceLocation(), SourceLocation(), Sel, in getNSNumberFactoryMethod()
302 if (!validateBoxingMethod(S, Loc, S.NSNumberDecl, Sel, Method)) in getNSNumberFactoryMethod()
781 Sel = NSAPIObj->getNSArraySelector(NSAPI::NSArr_arrayWithObjectsCount); in BuildObjCArrayLiteral() local
782 ObjCMethodDecl *Method = NSArrayDecl->lookupClassMethod(Sel); in BuildObjCArrayLiteral()
786 Context, SourceLocation(), SourceLocation(), Sel, IdT, ReturnTInfo, in BuildObjCArrayLiteral()
[all …]
DMultiplexExternalSemaSource.cpp58 Selector Sel; in GetExternalSelector() local
60 Sel = Sources[i]->GetExternalSelector(ID); in GetExternalSelector()
61 if (!Sel.isNull()) in GetExternalSelector()
62 return Sel; in GetExternalSelector()
64 return Sel; in GetExternalSelector()
195 void MultiplexExternalSemaSource::ReadMethodPool(Selector Sel) { in ReadMethodPool() argument
197 Sources[i]->ReadMethodPool(Sel); in ReadMethodPool()
200 void MultiplexExternalSemaSource::updateOutOfDateSelector(Selector Sel) { in updateOutOfDateSelector() argument
202 Sources[i]->updateOutOfDateSelector(Sel); in updateOutOfDateSelector()
DSemaDeclObjC.cpp2841 Selector Sel = I->getSelector(); in CheckCategoryVsClassMethodMatches() local
2845 if (SuperIDecl && SuperIDecl->lookupMethod(Sel, true)) in CheckCategoryVsClassMethodMatches()
2847 InsMap.insert(Sel); in CheckCategoryVsClassMethodMatches()
2851 Selector Sel = I->getSelector(); in CheckCategoryVsClassMethodMatches() local
2852 if (SuperIDecl && SuperIDecl->lookupMethod(Sel, false)) in CheckCategoryVsClassMethodMatches()
2854 ClsMap.insert(Sel); in CheckCategoryVsClassMethodMatches()
3303 void Sema::ReadMethodPool(Selector Sel) { in ReadMethodPool() argument
3305 ExternalSource->ReadMethodPool(Sel); in ReadMethodPool()
3308 void Sema::updateOutOfDateSelector(Selector Sel) { in updateOutOfDateSelector() argument
3311 ExternalSource->updateOutOfDateSelector(Sel); in updateOutOfDateSelector()
[all …]
/external/swiftshader/third_party/LLVM/lib/VMCore/
DAutoUpgrade.cpp427 CallInst *&Sel, in FindExnAndSelIntrinsics() argument
441 assert(!Sel && "Found more than one eh.selector call!"); in FindExnAndSelIntrinsics()
442 Sel = CI; in FindExnAndSelIntrinsics()
446 if (Exn && Sel) return; in FindExnAndSelIntrinsics()
450 if (Exn && Sel) return; in FindExnAndSelIntrinsics()
453 FindExnAndSelIntrinsics(*I, Exn, Sel, Visited); in FindExnAndSelIntrinsics()
454 if (Exn && Sel) return; in FindExnAndSelIntrinsics()
544 CallInst *Sel = 0; in UpgradeExceptionHandling() local
545 FindExnAndSelIntrinsics(UnwindDest, Exn, Sel, Visited); in UpgradeExceptionHandling()
546 assert(Exn && Sel && "Cannot find eh.exception and eh.selector calls!"); in UpgradeExceptionHandling()
[all …]
/external/spirv-llvm/lib/SPIRV/
DSPIRVLowerBool.cpp91 auto Sel = SelectInst::Create(Op, One, Zero, "", &I); in visitZExtInst() local
92 replace(&I, Sel); in visitZExtInst()
101 auto Sel = SelectInst::Create(Op, One, Zero, "", &I); in visitSExtInst() local
102 replace(&I, Sel); in visitSExtInst()
/external/llvm/lib/Target/AMDGPU/
DR600EmitClauseMarkers.cpp103 std::pair<unsigned, unsigned> getAccessedBankLine(unsigned Sel) const { in getAccessedBankLine()
108 ((Sel >> 2) - 512) >> 12, // KC_BANK in getAccessedBankLine()
114 ((((Sel >> 2) - 512) & 4095) >> 5) << 1); in getAccessedBankLine()
134 unsigned Sel = Consts[i].second; in SubstituteKCacheBank() local
135 unsigned Chan = Sel & 3, Index = ((Sel >> 2) - 512) & 31; in SubstituteKCacheBank()
137 const std::pair<unsigned, unsigned> &BankLine = getAccessedBankLine(Sel); in SubstituteKCacheBank()
/external/clang/lib/StaticAnalyzer/Core/
DCallEvent.cpp840 Selector Sel) const { in canBeOverridenInSubclass()
865 D = IDecl->lookupMethod(Sel, true); in canBeOverridenInSubclass()
897 Selector Sel = E->getSelector(); in getRuntimeDefinition() local
923 if (!canBeOverridenInSubclass(IDecl, Sel)) in getRuntimeDefinition()
951 Optional<const ObjCMethodDecl *> &Val = PMC[std::make_pair(IDecl, Sel)]; in getRuntimeDefinition()
955 Val = IDecl->lookupPrivateMethod(Sel); in getRuntimeDefinition()
976 Val = CatDecl->getMethod(Sel, in getRuntimeDefinition()
983 Val = IDecl->lookupInstanceMethod(Sel); in getRuntimeDefinition()
1000 return RuntimeDefinition(IDecl->lookupPrivateClassMethod(Sel)); in getRuntimeDefinition()
1009 Selector Sel = getSelector(); in argumentsMayEscape() local
[all …]
/external/clang/lib/CodeGen/
DCGObjCRuntime.h125 virtual llvm::Value *GetSelector(CodeGenFunction &CGF, Selector Sel) = 0;
132 virtual Address GetAddrOfSelector(CodeGenFunction &CGF, Selector Sel) = 0;
165 Selector Sel,
181 Selector Sel,
/external/clang/lib/Analysis/
DCallGraph.cpp70 Selector Sel = ME->getSelector(); in VisitObjCMessageExpr() local
75 D = IDecl->lookupPrivateMethod(Sel); in VisitObjCMessageExpr()
77 D = IDecl->lookupPrivateClassMethod(Sel); in VisitObjCMessageExpr()
/external/swiftshader/third_party/LLVM/lib/CodeGen/
DDwarfEHPrepare.cpp187 IntrinsicInst *Sel = *I; in CleanupSelectors() local
190 unsigned OpIdx = Sel->getNumArgOperands() - 1; in CleanupSelectors()
191 GlobalVariable *GV = dyn_cast<GlobalVariable>(Sel->getArgOperand(OpIdx)); in CleanupSelectors()
193 Sel->setArgOperand(OpIdx, EHCatchAllValue->getInitializer()); in CleanupSelectors()
215 if (IntrinsicInst *Sel = dyn_cast<IntrinsicInst>(II)) { in FindSelectorAndURoR() local
216 if (Sel->getIntrinsicID() == Intrinsic::eh_selector) in FindSelectorAndURoR()
217 SelCalls.insert(Sel); in FindSelectorAndURoR()
/external/clang/include/clang/Sema/
DExternalSemaSource.h71 virtual void ReadMethodPool(Selector Sel);
75 virtual void updateOutOfDateSelector(Selector Sel);
DMultiplexExternalSemaSource.h204 void ReadMethodPool(Selector Sel) override;
208 void updateOutOfDateSelector(Selector Sel) override;
/external/clang/lib/Serialization/
DASTCommon.cpp167 unsigned serialization::ComputeHash(Selector Sel) { in ComputeHash() argument
168 unsigned N = Sel.getNumArgs(); in ComputeHash()
173 if (IdentifierInfo *II = Sel.getIdentifierInfoForSlot(I)) in ComputeHash()

1234