Lines Matching refs:Scope

44 DISubprogram *llvm::getDISubprogram(const MDNode *Scope) {  in getDISubprogram()  argument
45 if (auto *LocalScope = dyn_cast_or_null<DILocalScope>(Scope)) in getDISubprogram()
149 void DebugInfoFinder::processScope(DIScope *Scope) { in processScope() argument
150 if (!Scope) in processScope()
152 if (auto *Ty = dyn_cast<DIType>(Scope)) { in processScope()
156 if (auto *CU = dyn_cast<DICompileUnit>(Scope)) { in processScope()
160 if (auto *SP = dyn_cast<DISubprogram>(Scope)) { in processScope()
164 if (!addScope(Scope)) in processScope()
166 if (auto *LB = dyn_cast<DILexicalBlockBase>(Scope)) { in processScope()
168 } else if (auto *NS = dyn_cast<DINamespace>(Scope)) { in processScope()
170 } else if (auto *M = dyn_cast<DIModule>(Scope)) { in processScope()
269 bool DebugInfoFinder::addScope(DIScope *Scope) { in addScope() argument
270 if (!Scope) in addScope()
274 if (Scope->getNumOperands() == 0) in addScope()
276 if (!NodesSeen.insert(Scope).second) in addScope()
278 Scopes.push_back(Scope); in addScope()
496 auto *Scope = map(MLD->getScope()); in getReplacementMDLocation() local
500 MLD->getColumn(), Scope, InlinedAt); in getReplacementMDLocation()
502 Scope, InlinedAt); in getReplacementMDLocation()
641 auto *Scope = DL.getScope(); in stripNonLineTableDebugInfo() local
643 Scope = remap(Scope); in stripNonLineTableDebugInfo()
645 return DebugLoc::get(DL.getLine(), DL.getCol(), Scope, InlinedAt); in stripNonLineTableDebugInfo()
802 LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, const char *Name, in LLVMDIBuilderCreateFunction() argument
808 unwrapDI<DIScope>(Scope), {Name, NameLen}, {LinkageName, LinkageNameLen}, in LLVMDIBuilderCreateFunction()
817 LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, in LLVMDIBuilderCreateLexicalBlock() argument
819 return wrap(unwrap(Builder)->createLexicalBlock(unwrapDI<DIScope>(Scope), in LLVMDIBuilderCreateLexicalBlock()
826 LLVMMetadataRef Scope, in LLVMDIBuilderCreateLexicalBlockFile() argument
829 return wrap(unwrap(Builder)->createLexicalBlockFile(unwrapDI<DIScope>(Scope), in LLVMDIBuilderCreateLexicalBlockFile()
836 LLVMMetadataRef Scope, in LLVMDIBuilderCreateImportedModuleFromNamespace() argument
840 return wrap(unwrap(Builder)->createImportedModule(unwrapDI<DIScope>(Scope), in LLVMDIBuilderCreateImportedModuleFromNamespace()
848 LLVMMetadataRef Scope, in LLVMDIBuilderCreateImportedModuleFromAlias() argument
853 unwrapDI<DIScope>(Scope), in LLVMDIBuilderCreateImportedModuleFromAlias()
860 LLVMMetadataRef Scope, in LLVMDIBuilderCreateImportedModuleFromModule() argument
864 return wrap(unwrap(Builder)->createImportedModule(unwrapDI<DIScope>(Scope), in LLVMDIBuilderCreateImportedModuleFromModule()
872 LLVMMetadataRef Scope, in LLVMDIBuilderCreateImportedDeclaration() argument
878 unwrapDI<DIScope>(Scope), in LLVMDIBuilderCreateImportedDeclaration()
885 unsigned Column, LLVMMetadataRef Scope, in LLVMDIBuilderCreateDebugLocation() argument
887 return wrap(DILocation::get(*unwrap(Ctx), Line, Column, unwrap(Scope), in LLVMDIBuilderCreateDebugLocation()
904 LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, const char *Name, in LLVMDIBuilderCreateEnumerationType() argument
911 unwrapDI<DIScope>(Scope), {Name, NameLen}, unwrapDI<DIFile>(File), in LLVMDIBuilderCreateEnumerationType()
916 LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, const char *Name, in LLVMDIBuilderCreateUnionType() argument
924 unwrapDI<DIScope>(Scope), {Name, NameLen}, unwrapDI<DIFile>(File), in LLVMDIBuilderCreateUnionType()
972 LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, const char *Name, in LLVMDIBuilderCreateStructType() argument
981 unwrapDI<DIScope>(Scope), {Name, NameLen}, unwrapDI<DIFile>(File), in LLVMDIBuilderCreateStructType()
988 LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, const char *Name, in LLVMDIBuilderCreateMemberType() argument
992 return wrap(unwrap(Builder)->createMemberType(unwrapDI<DIScope>(Scope), in LLVMDIBuilderCreateMemberType()
1005 LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, const char *Name, in LLVMDIBuilderCreateStaticMemberType() argument
1010 unwrapDI<DIScope>(Scope), {Name, NameLen}, in LLVMDIBuilderCreateStaticMemberType()
1054 LLVMMetadataRef Scope) { in LLVMDIBuilderCreateTypedef() argument
1058 unwrapDI<DIScope>(Scope))); in LLVMDIBuilderCreateTypedef()
1074 size_t NameLen, LLVMMetadataRef Scope, LLVMMetadataRef File, unsigned Line, in LLVMDIBuilderCreateForwardDecl() argument
1078 Tag, {Name, NameLen}, unwrapDI<DIScope>(Scope), in LLVMDIBuilderCreateForwardDecl()
1086 size_t NameLen, LLVMMetadataRef Scope, LLVMMetadataRef File, unsigned Line, in LLVMDIBuilderCreateReplaceableCompositeType() argument
1091 Tag, {Name, NameLen}, unwrapDI<DIScope>(Scope), in LLVMDIBuilderCreateReplaceableCompositeType()
1131 LLVMMetadataRef Scope, in LLVMDIBuilderCreateBitFieldMemberType() argument
1139 unwrapDI<DIScope>(Scope), {Name, NameLen}, in LLVMDIBuilderCreateBitFieldMemberType()
1146 LLVMMetadataRef Scope, const char *Name, size_t NameLen, in LLVMDIBuilderCreateClassType() argument
1156 unwrapDI<DIScope>(Scope), {Name, NameLen}, in LLVMDIBuilderCreateClassType()
1229 LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, const char *Name, in LLVMDIBuilderCreateGlobalVariableExpression() argument
1234 unwrapDI<DIScope>(Scope), {Name, NameLen}, {Linkage, LinkLen}, in LLVMDIBuilderCreateGlobalVariableExpression()
1258 LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, const char *Name, in LLVMDIBuilderCreateTempGlobalVariableFwdDecl() argument
1263 unwrapDI<DIScope>(Scope), {Name, NameLen}, {Linkage, LnkLen}, in LLVMDIBuilderCreateTempGlobalVariableFwdDecl()
1312 LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, const char *Name, in LLVMDIBuilderCreateAutoVariable() argument
1316 unwrap<DIScope>(Scope), {Name, NameLen}, unwrap<DIFile>(File), in LLVMDIBuilderCreateAutoVariable()
1322 LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, const char *Name, in LLVMDIBuilderCreateParameterVariable() argument
1326 unwrap<DIScope>(Scope), {Name, NameLen}, ArgNo, unwrap<DIFile>(File), in LLVMDIBuilderCreateParameterVariable()