Lines Matching refs:Scope

128 DISubprogram *llvm::getDISubprogram(const MDNode *Scope) {  in getDISubprogram()  argument
129 if (auto *LocalScope = dyn_cast_or_null<DILocalScope>(Scope)) in getDISubprogram()
231 void DebugInfoFinder::processScope(DIScope *Scope) { in processScope() argument
232 if (!Scope) in processScope()
234 if (auto *Ty = dyn_cast<DIType>(Scope)) { in processScope()
238 if (auto *CU = dyn_cast<DICompileUnit>(Scope)) { in processScope()
242 if (auto *SP = dyn_cast<DISubprogram>(Scope)) { in processScope()
246 if (!addScope(Scope)) in processScope()
248 if (auto *LB = dyn_cast<DILexicalBlockBase>(Scope)) { in processScope()
250 } else if (auto *NS = dyn_cast<DINamespace>(Scope)) { in processScope()
252 } else if (auto *M = dyn_cast<DIModule>(Scope)) { in processScope()
336 bool DebugInfoFinder::addScope(DIScope *Scope) { in addScope() argument
337 if (!Scope) in addScope()
341 if (Scope->getNumOperands() == 0) in addScope()
343 if (!NodesSeen.insert(Scope).second) in addScope()
345 Scopes.push_back(Scope); in addScope()
616 auto *Scope = map(MLD->getScope()); in getReplacementMDLocation() local
620 MLD->getColumn(), Scope, InlinedAt); in getReplacementMDLocation()
622 Scope, InlinedAt); in getReplacementMDLocation()
763 auto *Scope = DL.getScope(); in stripNonLineTableDebugInfo() local
765 Scope = remap(Scope); in stripNonLineTableDebugInfo()
768 Scope, InlinedAt); in stripNonLineTableDebugInfo()
965 LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, const char *Name, in LLVMDIBuilderCreateFunction() argument
971 unwrapDI<DIScope>(Scope), {Name, NameLen}, {LinkageName, LinkageNameLen}, in LLVMDIBuilderCreateFunction()
980 LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, in LLVMDIBuilderCreateLexicalBlock() argument
982 return wrap(unwrap(Builder)->createLexicalBlock(unwrapDI<DIScope>(Scope), in LLVMDIBuilderCreateLexicalBlock()
989 LLVMMetadataRef Scope, in LLVMDIBuilderCreateLexicalBlockFile() argument
992 return wrap(unwrap(Builder)->createLexicalBlockFile(unwrapDI<DIScope>(Scope), in LLVMDIBuilderCreateLexicalBlockFile()
999 LLVMMetadataRef Scope, in LLVMDIBuilderCreateImportedModuleFromNamespace() argument
1003 return wrap(unwrap(Builder)->createImportedModule(unwrapDI<DIScope>(Scope), in LLVMDIBuilderCreateImportedModuleFromNamespace()
1010 LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, in LLVMDIBuilderCreateImportedModuleFromAlias() argument
1018 unwrapDI<DIScope>(Scope), unwrapDI<DIImportedEntity>(ImportedEntity), in LLVMDIBuilderCreateImportedModuleFromAlias()
1023 LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, LLVMMetadataRef M, in LLVMDIBuilderCreateImportedModuleFromModule() argument
1031 unwrapDI<DIScope>(Scope), unwrapDI<DIModule>(M), unwrapDI<DIFile>(File), in LLVMDIBuilderCreateImportedModuleFromModule()
1036 LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, LLVMMetadataRef Decl, in LLVMDIBuilderCreateImportedDeclaration() argument
1044 unwrapDI<DIScope>(Scope), unwrapDI<DINode>(Decl), unwrapDI<DIFile>(File), in LLVMDIBuilderCreateImportedDeclaration()
1050 unsigned Column, LLVMMetadataRef Scope, in LLVMDIBuilderCreateDebugLocation() argument
1052 return wrap(DILocation::get(*unwrap(Ctx), Line, Column, unwrap(Scope), in LLVMDIBuilderCreateDebugLocation()
1072 LLVMMetadataRef LLVMDIScopeGetFile(LLVMMetadataRef Scope) { in LLVMDIScopeGetFile() argument
1073 return wrap(unwrapDI<DIScope>(Scope)->getFile()); in LLVMDIScopeGetFile()
1126 LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, const char *Name, in LLVMDIBuilderCreateEnumerationType() argument
1133 unwrapDI<DIScope>(Scope), {Name, NameLen}, unwrapDI<DIFile>(File), in LLVMDIBuilderCreateEnumerationType()
1138 LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, const char *Name, in LLVMDIBuilderCreateUnionType() argument
1146 unwrapDI<DIScope>(Scope), {Name, NameLen}, unwrapDI<DIFile>(File), in LLVMDIBuilderCreateUnionType()
1194 LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, const char *Name, in LLVMDIBuilderCreateStructType() argument
1203 unwrapDI<DIScope>(Scope), {Name, NameLen}, unwrapDI<DIFile>(File), in LLVMDIBuilderCreateStructType()
1210 LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, const char *Name, in LLVMDIBuilderCreateMemberType() argument
1214 return wrap(unwrap(Builder)->createMemberType(unwrapDI<DIScope>(Scope), in LLVMDIBuilderCreateMemberType()
1227 LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, const char *Name, in LLVMDIBuilderCreateStaticMemberType() argument
1232 unwrapDI<DIScope>(Scope), {Name, NameLen}, in LLVMDIBuilderCreateStaticMemberType()
1276 LLVMMetadataRef Scope, uint32_t AlignInBits) { in LLVMDIBuilderCreateTypedef() argument
1279 unwrapDI<DIScope>(Scope), AlignInBits)); in LLVMDIBuilderCreateTypedef()
1295 size_t NameLen, LLVMMetadataRef Scope, LLVMMetadataRef File, unsigned Line, in LLVMDIBuilderCreateForwardDecl() argument
1299 Tag, {Name, NameLen}, unwrapDI<DIScope>(Scope), in LLVMDIBuilderCreateForwardDecl()
1307 size_t NameLen, LLVMMetadataRef Scope, LLVMMetadataRef File, unsigned Line, in LLVMDIBuilderCreateReplaceableCompositeType() argument
1312 Tag, {Name, NameLen}, unwrapDI<DIScope>(Scope), in LLVMDIBuilderCreateReplaceableCompositeType()
1352 LLVMMetadataRef Scope, in LLVMDIBuilderCreateBitFieldMemberType() argument
1360 unwrapDI<DIScope>(Scope), {Name, NameLen}, in LLVMDIBuilderCreateBitFieldMemberType()
1367 LLVMMetadataRef Scope, const char *Name, size_t NameLen, in LLVMDIBuilderCreateClassType() argument
1377 unwrapDI<DIScope>(Scope), {Name, NameLen}, in LLVMDIBuilderCreateClassType()
1450 LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, const char *Name, in LLVMDIBuilderCreateGlobalVariableExpression() argument
1455 unwrapDI<DIScope>(Scope), {Name, NameLen}, {Linkage, LinkLen}, in LLVMDIBuilderCreateGlobalVariableExpression()
1500 LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, const char *Name, in LLVMDIBuilderCreateTempGlobalVariableFwdDecl() argument
1505 unwrapDI<DIScope>(Scope), {Name, NameLen}, {Linkage, LnkLen}, in LLVMDIBuilderCreateTempGlobalVariableFwdDecl()
1554 LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, const char *Name, in LLVMDIBuilderCreateAutoVariable() argument
1558 unwrap<DIScope>(Scope), {Name, NameLen}, unwrap<DIFile>(File), in LLVMDIBuilderCreateAutoVariable()
1564 LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, const char *Name, in LLVMDIBuilderCreateParameterVariable() argument
1568 unwrap<DIScope>(Scope), {Name, NameLen}, ArgNo, unwrap<DIFile>(File), in LLVMDIBuilderCreateParameterVariable()