| /llvm-project-15.0.7/clang/include/clang/Sema/ |
| H A D | Scope.h | 40 class Scope { 148 Scope *AnyParent; 174 Scope *FnParent; 175 Scope *MSLastManglingParent; 185 Scope *BlockParent; 191 Scope *TemplateParamParent; 230 Scope(Scope *Parent, unsigned ScopeFlags, DiagnosticsEngine &Diag) in Scope() function 279 Scope *getBreakParent() { in getBreakParent() 455 else if (S->getFlags() & (Scope::FnScope | Scope::ClassScope | in isSwitchScope() 456 Scope::BlockScope | Scope::TemplateParamScope | in isSwitchScope() [all …]
|
| H A D | Sema.h | 1124 Scope *TUScope; 3481 static Scope *getScopeForDeclContext(Scope *S, DeclContext *DC); 4131 Scope *getNonFieldDeclScope(Scope *S); 5626 Scope *S; 5636 const Scope *S, 9953 Scope *S, 9977 Scope *S, 10072 Scope *S, 10716 ExprResult ActOnOpenMPCall(ExprResult Call, Scope *Scope, 12898 Scope, enumerator [all …]
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/ |
| H A D | LexicalScopes.cpp | 125 DILocalScope *Scope = DL->getScope(); in findLexicalScope() local 126 if (!Scope) in findLexicalScope() 131 Scope = Scope->getNonLexicalBlockFileScope(); in findLexicalScope() 137 return findLexicalScope(Scope); in findLexicalScope() 150 getOrCreateAbstractScope(Scope); in getOrCreateLexicalScope() 162 Scope = Scope->getNonLexicalBlockFileScope(); in getOrCreateRegularScope() 191 Scope = Scope->getNonLexicalBlockFileScope(); in getOrCreateInlinedScope() 214 Scope = Scope->getNonLexicalBlockFileScope(); in getOrCreateAbstractScope() 228 if (isa<DISubprogram>(Scope)) in getOrCreateAbstractScope() 286 if (!Scope) in getMachineBasicBlocks() [all …]
|
| /llvm-project-15.0.7/flang/lib/Semantics/ |
| H A D | scope.cpp | 52 Scope &Scope::MakeScope(Kind kind, Symbol *symbol) { in MakeScope() 75 Scope::iterator Scope::find(const SourceName &name) { in find() 78 Scope::size_type Scope::erase(const SourceName &name) { in erase() 110 bool Scope::Contains(const Scope &that) const { in Contains() 157 Scope *Scope::FindSubmodule(const SourceName &name) const { in FindSubmodule() 165 bool Scope::AddSubmodule(const SourceName &name, Scope &submodule) { in AddSubmodule() 248 Scope::ImportKind Scope::GetImportKind() const { in GetImportKind() 303 const Scope *Scope::FindScope(parser::CharBlock source) const { in FindScope() 307 Scope *Scope::FindScope(parser::CharBlock source) { in FindScope() 415 const Scope *Scope::GetDerivedTypeParent() const { in GetDerivedTypeParent() [all …]
|
| H A D | tools.cpp | 29 const Scope &start, std::function<bool(const Scope &)> predicate) { in FindScopeContaining() 40 const Scope &GetTopLevelUnitContaining(const Scope &start) { in GetTopLevelUnitContaining() 50 const Scope *FindModuleContaining(const Scope &start) { in FindModuleContaining() 55 const Scope *FindModuleFileContaining(const Scope &start) { in FindModuleFileContaining() 60 const Scope &GetProgramUnitContaining(const Scope &start) { in GetProgramUnitContaining() 64 case Scope::Kind::Module: in GetProgramUnitContaining() 79 const Scope &GetProgramUnitOrBlockConstructContaining(const Scope &start) { in GetProgramUnitOrBlockConstructContaining() 99 const Scope *FindPureProcedureContaining(const Scope &start) { in FindPureProcedureContaining() 225 const Scope &owner{ in IsUseAssociated() 232 const Scope *maybeAncestor, const Scope &maybeDescendent) { in DoesScopeContain() [all …]
|
| H A D | check-return.cpp | 18 static const Scope *FindContainingSubprogram(const Scope &start) { in FindContainingSubprogram() 19 const Scope &scope{GetProgramUnitContaining(start)}; in FindContainingSubprogram() 20 return scope.kind() == Scope::Kind::MainProgram || in FindContainingSubprogram() 21 scope.kind() == Scope::Kind::Subprogram in FindContainingSubprogram() 35 (subprogramScope->kind() == Scope::Kind::MainProgram || in Leave() 39 } else if (subprogramScope->kind() == Scope::Kind::MainProgram && in Leave()
|
| H A D | mod-file.h | 31 class Scope; variable 55 void WriteAll(const Scope &); 56 void WriteOne(const Scope &); 59 void PutSymbols(const Scope &); 68 void PutDerivedType(const Symbol &, const Scope * = nullptr); 69 void PutDECStructure(const Symbol &, const Scope * = nullptr); 84 Scope *Read(const SourceName &, std::optional<bool> isIntrinsic, 85 Scope *ancestor, bool silent = false);
|
| H A D | runtime-type-info.cpp | 58 const ObjectEntityDetails &, Scope &, Scope &, 70 const Scope &dtScope, Scope &); 78 const Scope *); 194 static Scope &GetContainingNonDerivedScope(Scope &scope) { in GetContainingNonDerivedScope() 195 Scope *p{&scope}; in GetContainingNonDerivedScope() 204 const Scope &scope{ in GetSchemaField() 423 Scope *dtSymbolScope{const_cast<Scope *>(dtSymbol->scope())}; in DescribeType() 424 Scope &scope{ in DescribeType() 755 Scope *derivedScope{const_cast<Scope *>( in DescribeComponent() 880 const ObjectEntityDetails &object, Scope &scope, Scope &dtScope, in InitializeDataPointer() [all …]
|
| /llvm-project-15.0.7/flang/include/flang/Semantics/ |
| H A D | tools.h | 32 class Scope; variable 37 const Scope &GetTopLevelUnitContaining(const Scope &); 39 const Scope &GetProgramUnitContaining(const Scope &); 41 const Scope &GetProgramUnitOrBlockConstructContaining(const Scope &); 44 const Scope *FindModuleContaining(const Scope &); 45 const Scope *FindModuleFileContaining(const Scope &); 46 const Scope *FindPureProcedureContaining(const Scope &); 87 bool DoesScopeContain(const Scope *maybeAncestor, const Scope &maybeDescendent); 100 bool IsBindCProcedure(const Scope &); 463 typename Scope::const_iterator, in ENUM_CLASS() [all …]
|
| H A D | scope.h | 58 class Scope { 68 explicit Scope(SemanticsContext &context) in Scope() function 70 Scope(Scope &parent, Kind kind, Symbol *symbol, SemanticsContext &context) in Scope() function 76 Scope(const Scope &) = delete; 81 Scope &parent() { in parent() 85 const Scope &parent() const { in parent() 117 const Scope *GetDerivedTypeParent() const; 118 const Scope &GetDerivedTypeBase() const; 120 bool Contains(const Scope &) const; 252 Scope *FindScope(parser::CharBlock); [all …]
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Instrumentation/ |
| H A D | ControlHeightReduction.cpp | 236 return Scope; in split() 288 delete Scope; in ~CHR() 301 Output.push_back(Scope); in findScopes() 395 Scope.print(OS); in operator <<() 1123 CHRScope *Scope, in splitScope() argument 1192 Scope = Tail; in splitScope() 1209 Splits.push_back(Scope); in splitScope() 1255 classifyBiasedScopes(Scope, Scope); in classifyBiasedScopes() 1342 assert(Scope->HoistStopMap.empty() && Scope->CHRRegions.empty() && in setCHRRegions() 1344 setCHRRegions(Scope, Scope); in setCHRRegions() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/AMDGPU/ |
| H A D | SIMemoryLegalizer.cpp | 112 Scope(Scope), OrderingAddrSpace(OrderingAddrSpace), in SIMemOpInfo() 143 this->Scope = std::min(Scope, SIAtomicScope::SINGLETHREAD); in SIMemOpInfo() 147 this->Scope = std::min(Scope, SIAtomicScope::WORKGROUP); in SIMemOpInfo() 151 this->Scope = std::min(Scope, SIAtomicScope::AGENT); in SIMemOpInfo() 159 return Scope; in getScope() 864 switch (Scope) { in enableLoadCacheBypass() 983 switch (Scope) { in insertWait() 1000 switch (Scope) { in insertWait() 1023 switch (Scope) { in insertWait() 1077 switch (Scope) { in insertAcquire() [all …]
|
| /llvm-project-15.0.7/llvm/lib/IR/ |
| H A D | LLVMContextImpl.h | 269 Metadata *Scope; 479 Metadata *Scope; 494 : Tag(Tag), Name(Name), File(File), Line(Line), Scope(Scope), 571 Metadata *Scope; 597 : Tag(Tag), Name(Name), File(File), Line(Line), Scope(Scope), 695 Metadata *Scope; 829 : Scope(Scope), File(File), Line(Line), Column(Column) {} 850 : Scope(Scope), File(File), Discriminator(Discriminator) {} 871 : Scope(Scope), Name(Name), ExportSymbols(ExportSymbols) {} 922 : File(File), Scope(Scope), Name(Name), [all …]
|
| H A D | DebugInfo.cpp | 232 if (!Scope) in processScope() 234 if (auto *Ty = dyn_cast<DIType>(Scope)) { in processScope() 246 if (!addScope(Scope)) in processScope() 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 622 Scope, InlinedAt); in getReplacementMDLocation() 763 auto *Scope = DL.getScope(); in stripNonLineTableDebugInfo() local [all …]
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CGCleanup.cpp | 195 EHCleanupScope *Scope = in pushCleanup() local 207 Scope->setLifetimeMarker(); in pushCleanup() 668 Scope.shouldTestFlagInNormalCleanup() ? Scope.getActiveFlag() in PopCleanupBlock() 671 Scope.shouldTestFlagInEHCleanup() ? Scope.getActiveFlag() in PopCleanupBlock() 774 if (Scope.isNormalCleanup()) in PopCleanupBlock() 776 if (Scope.isEHCleanup()) in PopCleanupBlock() 1131 EHCleanupScope &Scope = in EmitBranchThroughCleanup() local 1237 if (Scope.isEHCleanup() && in SetupCleanupBlockActivation() 1250 Scope.setActiveFlag(var); in SetupCleanupBlockActivation() 1279 Scope.setActive(true); in ActivateCleanupBlock() [all …]
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | Scope.cpp | 20 void Scope::setFlags(Scope *parent, unsigned flags) { in setFlags() 87 void Scope::Init(Scope *parent, unsigned flags) { in Init() 97 bool Scope::containedInPrototypeScope() const { in containedInPrototypeScope() 98 const Scope *S = this; in containedInPrototypeScope() 107 void Scope::AddFlags(unsigned FlagsToSet) { in AddFlags() 128 void Scope::updateNRVOCandidate(VarDecl *VD) { in updateNRVOCandidate() 129 auto UpdateReturnSlotsInScopeForVD = [VD](Scope *S) -> bool { in updateNRVOCandidate() 157 void Scope::applyNRVO() { in applyNRVO() 188 LLVM_DUMP_METHOD void Scope::dump() const { dumpImpl(llvm::errs()); } in dump() 190 void Scope::dumpImpl(raw_ostream &OS) const { in dumpImpl() [all …]
|
| /llvm-project-15.0.7/clang/lib/Basic/ |
| H A D | Attributes.cpp | 9 const IdentifierInfo *Scope, const IdentifierInfo *Attr, in hasAttribute() argument 17 StringRef ScopeName = Scope ? Scope->getName() : ""; in hasAttribute() 47 normalizeAttrScopeName(const IdentifierInfo *Scope, in normalizeAttrScopeName() argument 49 if (!Scope) in normalizeAttrScopeName() 54 StringRef ScopeName = Scope->getName(); in normalizeAttrScopeName() 95 const IdentifierInfo *Scope, in normalizeName() argument 97 StringRef ScopeName = normalizeAttrScopeName(Scope, SyntaxUsed); in normalizeName() 127 StringRef Scope = normalizeAttrScopeName(getScopeName(), Syntax); in calculateAttributeSpellingListIndex() local 128 StringRef Name = normalizeAttrName(getAttrName(), Scope, Syntax); in calculateAttributeSpellingListIndex()
|
| /llvm-project-15.0.7/flang/include/flang/Evaluate/ |
| H A D | check-expression.h | 23 class Scope; variable 71 const semantics::Scope *instantiation = nullptr); 79 const A &, const semantics::Scope &, FoldingContext &); 81 const Expr<SomeType> &x, const semantics::Scope &, FoldingContext &); 83 const Expr<SomeInteger> &x, const semantics::Scope &, FoldingContext &); 85 const semantics::Scope &, FoldingContext &); 87 const std::optional<Expr<SomeType>> &x, const semantics::Scope &, 90 const std::optional<Expr<SomeInteger>> &x, const semantics::Scope &, 93 const std::optional<Expr<SubscriptInteger>> &x, const semantics::Scope &,
|
| /llvm-project-15.0.7/llvm/include/llvm/IR/ |
| H A D | DIBuilder.h | 317 DIDerivedType *createMemberType(DIScope *Scope, StringRef Name, 374 DIDerivedType *createStaticMemberType(DIScope *Scope, StringRef Name, 462 DICompositeType *createUnionType(DIScope *Scope, StringRef Name, 483 DICompositeType *createVariantPart(DIScope *Scope, StringRef Name, 497 DITemplateTypeParameter *createTemplateTypeParameter(DIScope *Scope, 528 DITemplateValueParameter *createTemplateParameterPack(DIScope *Scope, 697 createAutoVariable(DIScope *Scope, StringRef Name, DIFile *File, 798 createMethod(DIScope *Scope, StringRef Name, StringRef LinkageName, 822 DINamespace *createNameSpace(DIScope *Scope, StringRef Name, 842 DIModule *createModule(DIScope *Scope, StringRef Name, [all …]
|
| /llvm-project-15.0.7/llvm/include/llvm-c/ |
| H A D | DebugInfo.h | 352 LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, const char *Name, 367 LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, 379 LLVMMetadataRef Scope, 393 LLVMMetadataRef Scope, 410 LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, 425 LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, LLVMMetadataRef M, 502 LLVMMetadataRef LLVMDIScopeGetFile(LLVMMetadataRef Scope); 618 LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, const char *Name, 641 LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, const char *Name, 980 LLVMMetadataRef Scope, [all …]
|
| /llvm-project-15.0.7/llvm/unittests/IR/ |
| H A D | MetadataTest.cpp | 1661 EXPECT_EQ(Scope, N->getScope()); in TEST_F() 1760 EXPECT_EQ(Scope, N->getScope()); in TEST_F() 2301 EXPECT_EQ(Scope, N->getScope()); in TEST_F() 2458 EXPECT_EQ(Scope, N->getScope()); in TEST_F() 2510 EXPECT_EQ(Scope, N->getScope()); in TEST_F() 2529 DIScope *Scope = getFile(); in TEST_F() local 2536 EXPECT_EQ(Scope, N->getScope()); in TEST_F() 2551 DIScope *Scope = getFile(); in TEST_F() local 2564 EXPECT_EQ(Scope, N->getScope()); in TEST_F() 2676 EXPECT_EQ(Scope, N->getScope()); in TEST_F() [all …]
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/AsmPrinter/ |
| H A D | DwarfCompileUnit.h | 175 DIScope *Scope = IE->getScope(); in addImportedEntity() local 176 assert(Scope && "Invalid Scope encoding!"); in addImportedEntity() 177 if (!isa<DILocalScope>(Scope)) in addImportedEntity() 196 void constructScopeDIE(LexicalScope *Scope, DIE &ParentScopeDIE); 209 DIE *constructInlinedScopeDIE(LexicalScope *Scope); 213 DIE *constructLexicalScopeDIE(LexicalScope *Scope); 222 DIE *constructLabelDIE(DbgLabel &DL, const LexicalScope &Scope); 228 LexicalScope *Scope); 230 DIE *createAndAddScopeChildren(LexicalScope *Scope, DIE &ScopeDIE); 232 void constructAbstractSubprogramScopeDIE(LexicalScope *Scope); [all …]
|
| /llvm-project-15.0.7/llvm/unittests/ExecutionEngine/JITLink/ |
| H A D | LinkGraphTests.cpp | 288 G.makeDefined(S1, B1, 0, 4, Linkage::Strong, Scope::Default, false); in TEST() 322 Scope::Default, false, false); in TEST() 355 Scope::Default, false, false); in TEST() 389 Scope::Default, false, false); in TEST() 395 Scope::Default, false, false); in TEST() 519 Scope::Default, false, false); in TEST() 522 Scope::Default, false, false); in TEST() 529 Scope::Default, false, false); in TEST() 531 Scope::Default, false, false); in TEST() 533 Scope::Default, false, false); in TEST() [all …]
|
| /llvm-project-15.0.7/llvm/bindings/ocaml/debuginfo/ |
| H A D | debuginfo_ocaml.c | 324 Scope, InlinedAt); in llvm_dibuild_create_debug_location() 343 value llvm_di_scope_get_file(LLVMMetadataRef Scope) { in llvm_di_scope_get_file() argument 344 return (ptr_to_option(LLVMDIScopeGetFile(Scope))); in llvm_di_scope_get_file() 642 value LineNo, LLVMMetadataRef Scope, value AlignInBits) { in llvm_dibuild_create_typedef_native() argument 646 File, Int_val(LineNo), Scope, Int_val(AlignInBits)); in llvm_dibuild_create_typedef_native() 684 value Builder, value Tag, value Name, LLVMMetadataRef Scope, in llvm_dibuild_create_forward_decl_native() argument 689 caml_string_length(Name), Scope, File, Int_val(Line), in llvm_dibuild_create_forward_decl_native() 712 value Builder, value Tag, value Name, LLVMMetadataRef Scope, in llvm_dibuild_create_replaceable_composite_type_native() argument 718 caml_string_length(Name), Scope, File, Int_val(Line), in llvm_dibuild_create_replaceable_composite_type_native() 872 value Builder, LLVMMetadataRef Scope, value Name, value Linkage, in llvm_dibuild_create_global_variable_expression_native() argument [all …]
|
| /llvm-project-15.0.7/polly/lib/Support/ |
| H A D | SCEVValidator.cpp | 124 Loop *Scope; member in SCEVValidator 129 SCEVValidator(const Region *R, Loop *Scope, ScalarEvolution &SE, in SCEVValidator() argument 131 : R(R), Scope(Scope), SE(SE), ILS(ILS) {} in SCEVValidator() 235 if (R->contains(L) && (!Scope || !L->contains(Scope))) { in visitAddRecExpr() 467 Loop *Scope; member in SCEVInRegionDependences 475 : R(R), Scope(Scope), ILS(ILS), AllowLoops(AllowLoops) {} in SCEVInRegionDependences() 508 if (R->contains(L) && !L->contains(Scope)) { in follow() 597 SCEVValidator Validator(R, Scope, SE, ILS); in isAffineExpr() 622 SCEVValidator Validator(R, Scope, SE, nullptr); in isAffineExpr() 653 return ::isAffineExpr(V, R, Scope, SE, Params); in isAffineConstraint() [all …]
|