Lines Matching defs:Scope

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