Lines Matching refs:Scope

148 DISubprogram *llvm::getDISubprogram(const MDNode *Scope) {  in getDISubprogram()  argument
149 if (auto *LocalScope = dyn_cast_or_null<DILocalScope>(Scope)) in getDISubprogram()
157 MDNode *Scope = DeclareLoc.getScope(); in getDebugValueLoc() local
163 return DILocation::get(DII->getContext(), 0, 0, Scope, InlinedAt); in getDebugValueLoc()
169 MDNode *Scope = DeclareLoc.getScope(); in getDebugValueLoc() local
175 return DILocation::get(DPV->getContext(), 0, 0, Scope, InlinedAt); in getDebugValueLoc()
283 void DebugInfoFinder::processScope(DIScope *Scope) { in processScope() argument
284 if (!Scope) in processScope()
286 if (auto *Ty = dyn_cast<DIType>(Scope)) { in processScope()
290 if (auto *CU = dyn_cast<DICompileUnit>(Scope)) { in processScope()
294 if (auto *SP = dyn_cast<DISubprogram>(Scope)) { in processScope()
298 if (!addScope(Scope)) in processScope()
300 if (auto *LB = dyn_cast<DILexicalBlockBase>(Scope)) { in processScope()
302 } else if (auto *NS = dyn_cast<DINamespace>(Scope)) { in processScope()
304 } else if (auto *M = dyn_cast<DIModule>(Scope)) { in processScope()
380 bool DebugInfoFinder::addScope(DIScope *Scope) { in addScope() argument
381 if (!Scope) in addScope()
385 if (Scope->getNumOperands() == 0) in addScope()
387 if (!NodesSeen.insert(Scope).second) in addScope()
389 Scopes.push_back(Scope); in addScope()
728 auto *Scope = map(MLD->getScope()); in getReplacementMDLocation() local
732 MLD->getColumn(), Scope, InlinedAt); in getReplacementMDLocation()
734 Scope, InlinedAt); in getReplacementMDLocation()
874 auto *Scope = DL.getScope(); in stripNonLineTableDebugInfo() local
876 Scope = remap(Scope); in stripNonLineTableDebugInfo()
879 Scope, InlinedAt); in stripNonLineTableDebugInfo()
1114 LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, const char *Name, in LLVMDIBuilderCreateFunction() argument
1120 unwrapDI<DIScope>(Scope), {Name, NameLen}, {LinkageName, LinkageNameLen}, in LLVMDIBuilderCreateFunction()
1129 LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, in LLVMDIBuilderCreateLexicalBlock() argument
1131 return wrap(unwrap(Builder)->createLexicalBlock(unwrapDI<DIScope>(Scope), in LLVMDIBuilderCreateLexicalBlock()
1138 LLVMMetadataRef Scope, in LLVMDIBuilderCreateLexicalBlockFile() argument
1141 return wrap(unwrap(Builder)->createLexicalBlockFile(unwrapDI<DIScope>(Scope), in LLVMDIBuilderCreateLexicalBlockFile()
1148 LLVMMetadataRef Scope, in LLVMDIBuilderCreateImportedModuleFromNamespace() argument
1152 return wrap(unwrap(Builder)->createImportedModule(unwrapDI<DIScope>(Scope), in LLVMDIBuilderCreateImportedModuleFromNamespace()
1159 LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, in LLVMDIBuilderCreateImportedModuleFromAlias() argument
1167 unwrapDI<DIScope>(Scope), unwrapDI<DIImportedEntity>(ImportedEntity), in LLVMDIBuilderCreateImportedModuleFromAlias()
1172 LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, LLVMMetadataRef M, in LLVMDIBuilderCreateImportedModuleFromModule() argument
1180 unwrapDI<DIScope>(Scope), unwrapDI<DIModule>(M), unwrapDI<DIFile>(File), in LLVMDIBuilderCreateImportedModuleFromModule()
1185 LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, LLVMMetadataRef Decl, in LLVMDIBuilderCreateImportedDeclaration() argument
1193 unwrapDI<DIScope>(Scope), unwrapDI<DINode>(Decl), unwrapDI<DIFile>(File), in LLVMDIBuilderCreateImportedDeclaration()
1199 unsigned Column, LLVMMetadataRef Scope, in LLVMDIBuilderCreateDebugLocation() argument
1201 return wrap(DILocation::get(*unwrap(Ctx), Line, Column, unwrap(Scope), in LLVMDIBuilderCreateDebugLocation()
1221 LLVMMetadataRef LLVMDIScopeGetFile(LLVMMetadataRef Scope) { in LLVMDIScopeGetFile() argument
1222 return wrap(unwrapDI<DIScope>(Scope)->getFile()); in LLVMDIScopeGetFile()
1275 LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, const char *Name, in LLVMDIBuilderCreateEnumerationType() argument
1282 unwrapDI<DIScope>(Scope), {Name, NameLen}, unwrapDI<DIFile>(File), in LLVMDIBuilderCreateEnumerationType()
1287 LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, const char *Name, in LLVMDIBuilderCreateUnionType() argument
1295 unwrapDI<DIScope>(Scope), {Name, NameLen}, unwrapDI<DIFile>(File), in LLVMDIBuilderCreateUnionType()
1343 LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, const char *Name, in LLVMDIBuilderCreateStructType() argument
1352 unwrapDI<DIScope>(Scope), {Name, NameLen}, unwrapDI<DIFile>(File), in LLVMDIBuilderCreateStructType()
1359 LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, const char *Name, in LLVMDIBuilderCreateMemberType() argument
1363 return wrap(unwrap(Builder)->createMemberType(unwrapDI<DIScope>(Scope), in LLVMDIBuilderCreateMemberType()
1375 LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, const char *Name, in LLVMDIBuilderCreateStaticMemberType() argument
1380 unwrapDI<DIScope>(Scope), {Name, NameLen}, unwrapDI<DIFile>(File), in LLVMDIBuilderCreateStaticMemberType()
1423 LLVMMetadataRef Scope, uint32_t AlignInBits) { in LLVMDIBuilderCreateTypedef() argument
1426 unwrapDI<DIScope>(Scope), AlignInBits)); in LLVMDIBuilderCreateTypedef()
1442 size_t NameLen, LLVMMetadataRef Scope, LLVMMetadataRef File, unsigned Line, in LLVMDIBuilderCreateForwardDecl() argument
1446 Tag, {Name, NameLen}, unwrapDI<DIScope>(Scope), in LLVMDIBuilderCreateForwardDecl()
1454 size_t NameLen, LLVMMetadataRef Scope, LLVMMetadataRef File, unsigned Line, in LLVMDIBuilderCreateReplaceableCompositeType() argument
1459 Tag, {Name, NameLen}, unwrapDI<DIScope>(Scope), in LLVMDIBuilderCreateReplaceableCompositeType()
1499 LLVMMetadataRef Scope, in LLVMDIBuilderCreateBitFieldMemberType() argument
1507 unwrapDI<DIScope>(Scope), {Name, NameLen}, in LLVMDIBuilderCreateBitFieldMemberType()
1514 LLVMMetadataRef Scope, const char *Name, size_t NameLen, in LLVMDIBuilderCreateClassType() argument
1524 unwrapDI<DIScope>(Scope), {Name, NameLen}, unwrapDI<DIFile>(File), in LLVMDIBuilderCreateClassType()
1600 LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, const char *Name, in LLVMDIBuilderCreateGlobalVariableExpression() argument
1605 unwrapDI<DIScope>(Scope), {Name, NameLen}, {Linkage, LinkLen}, in LLVMDIBuilderCreateGlobalVariableExpression()
1650 LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, const char *Name, in LLVMDIBuilderCreateTempGlobalVariableFwdDecl() argument
1655 unwrapDI<DIScope>(Scope), {Name, NameLen}, {Linkage, LnkLen}, in LLVMDIBuilderCreateTempGlobalVariableFwdDecl()
1704 LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, const char *Name, in LLVMDIBuilderCreateAutoVariable() argument
1708 unwrap<DIScope>(Scope), {Name, NameLen}, unwrap<DIFile>(File), in LLVMDIBuilderCreateAutoVariable()
1714 LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, const char *Name, in LLVMDIBuilderCreateParameterVariable() argument
1718 unwrap<DIScope>(Scope), {Name, NameLen}, ArgNo, unwrap<DIFile>(File), in LLVMDIBuilderCreateParameterVariable()