Lines Matching refs:Scope
129 DISubprogram *llvm::getDISubprogram(const MDNode *Scope) { in getDISubprogram() argument
130 if (auto *LocalScope = dyn_cast_or_null<DILocalScope>(Scope)) in getDISubprogram()
232 void DebugInfoFinder::processScope(DIScope *Scope) { in processScope() argument
233 if (!Scope) in processScope()
235 if (auto *Ty = dyn_cast<DIType>(Scope)) { in processScope()
239 if (auto *CU = dyn_cast<DICompileUnit>(Scope)) { in processScope()
243 if (auto *SP = dyn_cast<DISubprogram>(Scope)) { in processScope()
247 if (!addScope(Scope)) in processScope()
249 if (auto *LB = dyn_cast<DILexicalBlockBase>(Scope)) { in processScope()
251 } else if (auto *NS = dyn_cast<DINamespace>(Scope)) { in processScope()
253 } else if (auto *M = dyn_cast<DIModule>(Scope)) { in processScope()
337 bool DebugInfoFinder::addScope(DIScope *Scope) { in addScope() argument
338 if (!Scope) in addScope()
342 if (Scope->getNumOperands() == 0) in addScope()
344 if (!NodesSeen.insert(Scope).second) in addScope()
346 Scopes.push_back(Scope); in addScope()
618 auto *Scope = map(MLD->getScope()); in getReplacementMDLocation() local
622 MLD->getColumn(), Scope, InlinedAt); in getReplacementMDLocation()
624 Scope, InlinedAt); in getReplacementMDLocation()
765 auto *Scope = DL.getScope(); in stripNonLineTableDebugInfo() local
767 Scope = remap(Scope); in stripNonLineTableDebugInfo()
770 Scope, InlinedAt); in stripNonLineTableDebugInfo()
962 LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, const char *Name, in LLVMDIBuilderCreateFunction() argument
968 unwrapDI<DIScope>(Scope), {Name, NameLen}, {LinkageName, LinkageNameLen}, in LLVMDIBuilderCreateFunction()
977 LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, in LLVMDIBuilderCreateLexicalBlock() argument
979 return wrap(unwrap(Builder)->createLexicalBlock(unwrapDI<DIScope>(Scope), in LLVMDIBuilderCreateLexicalBlock()
986 LLVMMetadataRef Scope, in LLVMDIBuilderCreateLexicalBlockFile() argument
989 return wrap(unwrap(Builder)->createLexicalBlockFile(unwrapDI<DIScope>(Scope), in LLVMDIBuilderCreateLexicalBlockFile()
996 LLVMMetadataRef Scope, in LLVMDIBuilderCreateImportedModuleFromNamespace() argument
1000 return wrap(unwrap(Builder)->createImportedModule(unwrapDI<DIScope>(Scope), in LLVMDIBuilderCreateImportedModuleFromNamespace()
1008 LLVMMetadataRef Scope, in LLVMDIBuilderCreateImportedModuleFromAlias() argument
1013 unwrapDI<DIScope>(Scope), in LLVMDIBuilderCreateImportedModuleFromAlias()
1020 LLVMMetadataRef Scope, in LLVMDIBuilderCreateImportedModuleFromModule() argument
1024 return wrap(unwrap(Builder)->createImportedModule(unwrapDI<DIScope>(Scope), in LLVMDIBuilderCreateImportedModuleFromModule()
1032 LLVMMetadataRef Scope, in LLVMDIBuilderCreateImportedDeclaration() argument
1038 unwrapDI<DIScope>(Scope), in LLVMDIBuilderCreateImportedDeclaration()
1045 unsigned Column, LLVMMetadataRef Scope, in LLVMDIBuilderCreateDebugLocation() argument
1047 return wrap(DILocation::get(*unwrap(Ctx), Line, Column, unwrap(Scope), in LLVMDIBuilderCreateDebugLocation()
1067 LLVMMetadataRef LLVMDIScopeGetFile(LLVMMetadataRef Scope) { in LLVMDIScopeGetFile() argument
1068 return wrap(unwrapDI<DIScope>(Scope)->getFile()); in LLVMDIScopeGetFile()
1121 LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, const char *Name, in LLVMDIBuilderCreateEnumerationType() argument
1128 unwrapDI<DIScope>(Scope), {Name, NameLen}, unwrapDI<DIFile>(File), in LLVMDIBuilderCreateEnumerationType()
1133 LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, const char *Name, in LLVMDIBuilderCreateUnionType() argument
1141 unwrapDI<DIScope>(Scope), {Name, NameLen}, unwrapDI<DIFile>(File), in LLVMDIBuilderCreateUnionType()
1189 LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, const char *Name, in LLVMDIBuilderCreateStructType() argument
1198 unwrapDI<DIScope>(Scope), {Name, NameLen}, unwrapDI<DIFile>(File), in LLVMDIBuilderCreateStructType()
1205 LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, const char *Name, in LLVMDIBuilderCreateMemberType() argument
1209 return wrap(unwrap(Builder)->createMemberType(unwrapDI<DIScope>(Scope), in LLVMDIBuilderCreateMemberType()
1222 LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, const char *Name, in LLVMDIBuilderCreateStaticMemberType() argument
1227 unwrapDI<DIScope>(Scope), {Name, NameLen}, in LLVMDIBuilderCreateStaticMemberType()
1271 LLVMMetadataRef Scope, uint32_t AlignInBits) { in LLVMDIBuilderCreateTypedef() argument
1274 unwrapDI<DIScope>(Scope), AlignInBits)); in LLVMDIBuilderCreateTypedef()
1290 size_t NameLen, LLVMMetadataRef Scope, LLVMMetadataRef File, unsigned Line, in LLVMDIBuilderCreateForwardDecl() argument
1294 Tag, {Name, NameLen}, unwrapDI<DIScope>(Scope), in LLVMDIBuilderCreateForwardDecl()
1302 size_t NameLen, LLVMMetadataRef Scope, LLVMMetadataRef File, unsigned Line, in LLVMDIBuilderCreateReplaceableCompositeType() argument
1307 Tag, {Name, NameLen}, unwrapDI<DIScope>(Scope), in LLVMDIBuilderCreateReplaceableCompositeType()
1347 LLVMMetadataRef Scope, in LLVMDIBuilderCreateBitFieldMemberType() argument
1355 unwrapDI<DIScope>(Scope), {Name, NameLen}, in LLVMDIBuilderCreateBitFieldMemberType()
1362 LLVMMetadataRef Scope, const char *Name, size_t NameLen, in LLVMDIBuilderCreateClassType() argument
1372 unwrapDI<DIScope>(Scope), {Name, NameLen}, in LLVMDIBuilderCreateClassType()
1445 LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, const char *Name, in LLVMDIBuilderCreateGlobalVariableExpression() argument
1450 unwrapDI<DIScope>(Scope), {Name, NameLen}, {Linkage, LinkLen}, in LLVMDIBuilderCreateGlobalVariableExpression()
1495 LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, const char *Name, in LLVMDIBuilderCreateTempGlobalVariableFwdDecl() argument
1500 unwrapDI<DIScope>(Scope), {Name, NameLen}, {Linkage, LnkLen}, in LLVMDIBuilderCreateTempGlobalVariableFwdDecl()
1549 LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, const char *Name, in LLVMDIBuilderCreateAutoVariable() argument
1553 unwrap<DIScope>(Scope), {Name, NameLen}, unwrap<DIFile>(File), in LLVMDIBuilderCreateAutoVariable()
1559 LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, const char *Name, in LLVMDIBuilderCreateParameterVariable() argument
1563 unwrap<DIScope>(Scope), {Name, NameLen}, ArgNo, unwrap<DIFile>(File), in LLVMDIBuilderCreateParameterVariable()