Lines Matching refs:Scope
152 DISubprogram *llvm::getDISubprogram(const MDNode *Scope) { in getDISubprogram() argument
153 if (auto *LocalScope = dyn_cast_or_null<DILocalScope>(Scope)) in getDISubprogram()
161 MDNode *Scope = DeclareLoc.getScope(); in getDebugValueLoc() local
167 return DILocation::get(DII->getContext(), 0, 0, Scope, InlinedAt); in getDebugValueLoc()
173 MDNode *Scope = DeclareLoc.getScope(); in getDebugValueLoc() local
179 return DILocation::get(DVR->getContext(), 0, 0, Scope, InlinedAt); in getDebugValueLoc()
288 void DebugInfoFinder::processScope(DIScope *Scope) { in processScope() argument
289 if (!Scope) in processScope()
291 if (auto *Ty = dyn_cast<DIType>(Scope)) { in processScope()
295 if (auto *CU = dyn_cast<DICompileUnit>(Scope)) { in processScope()
299 if (auto *SP = dyn_cast<DISubprogram>(Scope)) { in processScope()
303 if (!addScope(Scope)) in processScope()
305 if (auto *LB = dyn_cast<DILexicalBlockBase>(Scope)) { in processScope()
307 } else if (auto *NS = dyn_cast<DINamespace>(Scope)) { in processScope()
309 } else if (auto *M = dyn_cast<DIModule>(Scope)) { in processScope()
385 bool DebugInfoFinder::addScope(DIScope *Scope) { in addScope() argument
386 if (!Scope) in addScope()
390 if (Scope->getNumOperands() == 0) in addScope()
392 if (!NodesSeen.insert(Scope).second) in addScope()
394 Scopes.push_back(Scope); in addScope()
733 auto *Scope = map(MLD->getScope()); in getReplacementMDLocation() local
737 MLD->getColumn(), Scope, InlinedAt); in getReplacementMDLocation()
739 Scope, InlinedAt); in getReplacementMDLocation()
879 auto *Scope = DL.getScope(); in stripNonLineTableDebugInfo() local
881 Scope = remap(Scope); in stripNonLineTableDebugInfo()
884 Scope, InlinedAt); in stripNonLineTableDebugInfo()
1119 LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, const char *Name, in LLVMDIBuilderCreateFunction() argument
1125 unwrapDI<DIScope>(Scope), {Name, NameLen}, {LinkageName, LinkageNameLen}, in LLVMDIBuilderCreateFunction()
1134 LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, in LLVMDIBuilderCreateLexicalBlock() argument
1136 return wrap(unwrap(Builder)->createLexicalBlock(unwrapDI<DIScope>(Scope), in LLVMDIBuilderCreateLexicalBlock()
1143 LLVMMetadataRef Scope, in LLVMDIBuilderCreateLexicalBlockFile() argument
1146 return wrap(unwrap(Builder)->createLexicalBlockFile(unwrapDI<DIScope>(Scope), in LLVMDIBuilderCreateLexicalBlockFile()
1153 LLVMMetadataRef Scope, in LLVMDIBuilderCreateImportedModuleFromNamespace() argument
1157 return wrap(unwrap(Builder)->createImportedModule(unwrapDI<DIScope>(Scope), in LLVMDIBuilderCreateImportedModuleFromNamespace()
1164 LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, in LLVMDIBuilderCreateImportedModuleFromAlias() argument
1172 unwrapDI<DIScope>(Scope), unwrapDI<DIImportedEntity>(ImportedEntity), in LLVMDIBuilderCreateImportedModuleFromAlias()
1177 LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, LLVMMetadataRef M, in LLVMDIBuilderCreateImportedModuleFromModule() argument
1185 unwrapDI<DIScope>(Scope), unwrapDI<DIModule>(M), unwrapDI<DIFile>(File), in LLVMDIBuilderCreateImportedModuleFromModule()
1190 LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, LLVMMetadataRef Decl, in LLVMDIBuilderCreateImportedDeclaration() argument
1198 unwrapDI<DIScope>(Scope), unwrapDI<DINode>(Decl), unwrapDI<DIFile>(File), in LLVMDIBuilderCreateImportedDeclaration()
1204 unsigned Column, LLVMMetadataRef Scope, in LLVMDIBuilderCreateDebugLocation() argument
1206 return wrap(DILocation::get(*unwrap(Ctx), Line, Column, unwrap(Scope), in LLVMDIBuilderCreateDebugLocation()
1226 LLVMMetadataRef LLVMDIScopeGetFile(LLVMMetadataRef Scope) { in LLVMDIScopeGetFile() argument
1227 return wrap(unwrapDI<DIScope>(Scope)->getFile()); in LLVMDIScopeGetFile()
1280 LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, const char *Name, in LLVMDIBuilderCreateEnumerationType() argument
1287 unwrapDI<DIScope>(Scope), {Name, NameLen}, unwrapDI<DIFile>(File), in LLVMDIBuilderCreateEnumerationType()
1292 LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, const char *Name, in LLVMDIBuilderCreateUnionType() argument
1300 unwrapDI<DIScope>(Scope), {Name, NameLen}, unwrapDI<DIFile>(File), in LLVMDIBuilderCreateUnionType()
1348 LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, const char *Name, in LLVMDIBuilderCreateStructType() argument
1357 unwrapDI<DIScope>(Scope), {Name, NameLen}, unwrapDI<DIFile>(File), in LLVMDIBuilderCreateStructType()
1364 LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, const char *Name, in LLVMDIBuilderCreateMemberType() argument
1368 return wrap(unwrap(Builder)->createMemberType(unwrapDI<DIScope>(Scope), in LLVMDIBuilderCreateMemberType()
1380 LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, const char *Name, in LLVMDIBuilderCreateStaticMemberType() argument
1385 unwrapDI<DIScope>(Scope), {Name, NameLen}, unwrapDI<DIFile>(File), in LLVMDIBuilderCreateStaticMemberType()
1428 LLVMMetadataRef Scope, uint32_t AlignInBits) { in LLVMDIBuilderCreateTypedef() argument
1431 unwrapDI<DIScope>(Scope), AlignInBits)); in LLVMDIBuilderCreateTypedef()
1447 size_t NameLen, LLVMMetadataRef Scope, LLVMMetadataRef File, unsigned Line, in LLVMDIBuilderCreateForwardDecl() argument
1451 Tag, {Name, NameLen}, unwrapDI<DIScope>(Scope), in LLVMDIBuilderCreateForwardDecl()
1459 size_t NameLen, LLVMMetadataRef Scope, LLVMMetadataRef File, unsigned Line, in LLVMDIBuilderCreateReplaceableCompositeType() argument
1464 Tag, {Name, NameLen}, unwrapDI<DIScope>(Scope), in LLVMDIBuilderCreateReplaceableCompositeType()
1504 LLVMMetadataRef Scope, in LLVMDIBuilderCreateBitFieldMemberType() argument
1512 unwrapDI<DIScope>(Scope), {Name, NameLen}, in LLVMDIBuilderCreateBitFieldMemberType()
1519 LLVMMetadataRef Scope, const char *Name, size_t NameLen, in LLVMDIBuilderCreateClassType() argument
1529 unwrapDI<DIScope>(Scope), {Name, NameLen}, unwrapDI<DIFile>(File), in LLVMDIBuilderCreateClassType()
1605 LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, const char *Name, in LLVMDIBuilderCreateGlobalVariableExpression() argument
1610 unwrapDI<DIScope>(Scope), {Name, NameLen}, {Linkage, LinkLen}, in LLVMDIBuilderCreateGlobalVariableExpression()
1655 LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, const char *Name, in LLVMDIBuilderCreateTempGlobalVariableFwdDecl() argument
1660 unwrapDI<DIScope>(Scope), {Name, NameLen}, {Linkage, LnkLen}, in LLVMDIBuilderCreateTempGlobalVariableFwdDecl()
1731 LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, const char *Name, in LLVMDIBuilderCreateAutoVariable() argument
1735 unwrap<DIScope>(Scope), {Name, NameLen}, unwrap<DIFile>(File), in LLVMDIBuilderCreateAutoVariable()
1741 LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, const char *Name, in LLVMDIBuilderCreateParameterVariable() argument
1745 unwrap<DIScope>(Scope), {Name, NameLen}, ArgNo, unwrap<DIFile>(File), in LLVMDIBuilderCreateParameterVariable()