| /openbsd-src/gnu/llvm/clang/include/clang/Sema/ |
| H A D | Scope.h | 41 class Scope { 153 Scope *AnyParent; 179 Scope *FnParent; 180 Scope *MSLastManglingParent; 186 Scope *BreakParent, *ContinueParent; 190 Scope *BlockParent; 196 Scope *TemplateParamParent; 232 void setFlags(Scope *Parent, unsigned F); 235 Scope(Scope *Parent, unsigned ScopeFlags, DiagnosticsEngine &Diag) in Scope() function 249 const Scope *getParent() const { return AnyParent; } in getParent() [all …]
|
| H A D | Sema.h | 436 SmallVector<Scope*, 2> CurrentSEHFinally; 1125 Scope *TUScope; 1949 Scope *getScopeForContext(DeclContext *Ctx); 1952 void PushBlockScope(Scope *BlockScope, BlockDecl *Block); 1960 void PushCapturedRegionScope(Scope *RegionScope, CapturedDecl *CD, 1971 void operator()(sema::FunctionScopeInfo *Scope) const; 2116 TypeSourceInfo *GetTypeForDeclarator(Declarator &D, Scope *S); 2160 TypeResult ActOnTypeName(Scope *S, Declarator &D); 2596 Scope *S, CXXScopeSpec *SS = nullptr, 2605 TypeSpecifierType isTagName(IdentifierInfo &II, Scope *S); [all …]
|
| /openbsd-src/gnu/llvm/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() 134 auto I = InlinedLexicalScopeMap.find(std::make_pair(Scope, IA)); in findLexicalScope() 137 return findLexicalScope(Scope); in findLexicalScope() 142 LexicalScope *LexicalScopes::getOrCreateLexicalScope(const DILocalScope *Scope, in getOrCreateLexicalScope() argument 146 if (Scope->getSubprogram()->getUnit()->getEmissionKind() == in getOrCreateLexicalScope() 150 getOrCreateAbstractScope(Scope); in getOrCreateLexicalScope() 152 return getOrCreateInlinedScope(Scope, IA); in getOrCreateLexicalScope() 155 return getOrCreateRegularScope(Scope); in getOrCreateLexicalScope() [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/DebugInfo/LogicalView/Core/ |
| H A D | LVScope.cpp | 175 void LVScope::addElement(LVScope *Scope) { in addElement() argument 176 assert(Scope && "Invalid scope."); in addElement() 177 assert(!Scope->getParent() && "Scope already inserted"); in addElement() 182 Scopes->push_back(Scope); in addElement() 183 addToChildren(Scope); in addElement() 184 Scope->setParent(this); in addElement() 187 getReaderCompileUnit()->addedElement(Scope); in addElement() 192 if (Scope->getIsGlobalReference()) in addElement() 459 for (LVScope *Scope : *Scopes) { in resolveElements() 460 LVScopeCompileUnit *CompileUnit = static_cast<LVScopeCompileUnit *>(Scope); in resolveElements() [all …]
|
| H A D | LVRange.cpp | 30 LVScope *Scope = RangeEntry.scope(); in startSearch() 31 dbgs() << "Scope: " << format_decimal(Scope->getLevel(), 5) << " " in startSearch() 52 void LVRange::addEntry(LVScope *Scope, LVAddress LowerAddress, in addEntry() argument 65 RangeEntries.emplace_back(LowerAddress, UpperAddress, Scope); in addEntry() 68 void LVRange::addEntry(LVScope *Scope) { in addEntry() argument 69 assert(Scope && "Scope must not be nullptr"); in addEntry() 72 if (const LVLocations *Locations = Scope->getRanges()) in addEntry() 78 addEntry(Scope, LowPC, HighPC); in addEntry() 89 LVScope *Scope = nullptr; in getEntry() local 95 Scope = Iter->value(); in getEntry() [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/Instrumentation/ |
| H A D | ControlHeightReduction.cpp | 242 auto *Scope = new CHRScope(TailRegInfos, TailSubs); in split() local 245 return Scope; in split() 296 for (CHRScope *Scope : Scopes) { in ~CHR() 297 delete Scope; in ~CHR() 309 if (CHRScope *Scope = findScopes(R, nullptr, nullptr, Output)) { in findScopes() local 310 Output.push_back(Scope); in findScopes() 316 void checkScopeHoistable(CHRScope *Scope); 320 SmallVector<CHRScope *, 8> splitScope(CHRScope *Scope, 328 void classifyBiasedScopes(CHRScope *Scope, CHRScope *OutermostScope); 335 void setCHRRegions(CHRScope *Scope, CHRScope *OutermostScope); [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/AMDGPU/ |
| H A D | SIMemoryLegalizer.cpp | 95 SIAtomicScope Scope = SIAtomicScope::SYSTEM; member in __anon623980fe0111::SIMemOpInfo 103 SIAtomicScope Scope = SIAtomicScope::SYSTEM, in SIMemOpInfo() argument 112 Scope(Scope), OrderingAddrSpace(OrderingAddrSpace), in SIMemOpInfo() 119 assert(Scope == SIAtomicScope::NONE && in SIMemOpInfo() 126 assert(Scope != SIAtomicScope::NONE && 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() 290 SIAtomicScope Scope, [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/DebugInfo/LogicalView/Readers/ |
| H A D | LVBinaryReader.cpp | 33 SymbolNames[SymbolName].Scope = Function; in add() 55 LVScope *Function = SymbolNames[SymbolName].Scope; in add() 75 SymbolNames[SymbolName].Scope = Function; in update() 111 LVScope *Scope = SymbolName.Scope; in print() local 112 LVOffset Offset = Scope ? Scope->getOffset() : 0; in print() 255 LVBinaryReader::getSection(LVScope *Scope, LVAddress Address, in getSection() argument 265 Scope->getName().str().c_str()); in getSection() 277 Scope->getName().str().c_str()); in getSection() 287 LVScope *Scope) { in addSectionRange() argument 289 ScopesWithRanges->addEntry(Scope); in addSectionRange() [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/IR/ |
| H A D | LLVMContextImpl.h | 318 Metadata *Scope; 322 MDNodeKeyImpl(unsigned Line, unsigned Column, Metadata *Scope, 324 : Line(Line), Column(Column), Scope(Scope), InlinedAt(InlinedAt), 327 : Line(L->getLine()), Column(L->getColumn()), Scope(L->getRawScope()), 332 Scope == RHS->getRawScope() && InlinedAt == RHS->getRawInlinedAt() && 337 return hash_combine(Line, Column, Scope, InlinedAt, ImplicitCode); 528 Metadata *Scope; 539 Metadata *Scope, Metadata *BaseType, uint64_t SizeInBits, 543 : Tag(Tag), Name(Name), File(File), Line(Line), Scope(Scope), 549 Line(N->getLine()), Scope(N->getRawScope()), [all …]
|
| H A D | DebugInfo.cpp | 132 DISubprogram *llvm::getDISubprogram(const MDNode *Scope) { in getDISubprogram() argument 133 if (auto *LocalScope = dyn_cast_or_null<DILocalScope>(Scope)) in getDISubprogram() 141 MDNode *Scope = DeclareLoc.getScope(); in getDebugValueLoc() local 147 return DILocation::get(DII->getContext(), 0, 0, Scope, InlinedAt); in getDebugValueLoc() 247 void DebugInfoFinder::processScope(DIScope *Scope) { in processScope() argument 248 if (!Scope) in processScope() 250 if (auto *Ty = dyn_cast<DIType>(Scope)) { in processScope() 254 if (auto *CU = dyn_cast<DICompileUnit>(Scope)) { in processScope() 258 if (auto *SP = dyn_cast<DISubprogram>(Scope)) { in processScope() 262 if (!addScope(Scope)) in processScope() [all …]
|
| /openbsd-src/gnu/llvm/clang/lib/CodeGen/ |
| H A D | CGCleanup.cpp | 195 EHCleanupScope *Scope = in pushCleanup() local 207 Scope->setLifetimeMarker(); in pushCleanup() 214 return Scope->getCleanupBuffer(); in pushCleanup() 439 EHCleanupScope &Scope = cast<EHCleanupScope>(*EHStack.begin()); in PopCleanupBlocks() local 440 HadBranches |= Scope.hasBranches(); in PopCleanupBlocks() 446 Old.strictlyEncloses(Scope.getEnclosingNormalCleanup()); in PopCleanupBlocks() 521 EHCleanupScope &Scope) { in CreateNormalEntry() argument 522 assert(Scope.isNormalCleanup()); in CreateNormalEntry() 523 llvm::BasicBlock *Entry = Scope.getNormalBlock(); in CreateNormalEntry() 526 Scope.setNormalBlock(Entry); in CreateNormalEntry() [all …]
|
| /openbsd-src/gnu/llvm/clang/lib/Sema/ |
| H A D | Scope.cpp | 20 void Scope::setFlags(Scope *parent, unsigned flags) { in setFlags() 90 void Scope::Init(Scope *parent, unsigned flags) { in Init() 100 bool Scope::containedInPrototypeScope() const { in containedInPrototypeScope() 101 const Scope *S = this; in containedInPrototypeScope() 110 void Scope::AddFlags(unsigned FlagsToSet) { in AddFlags() 131 void Scope::updateNRVOCandidate(VarDecl *VD) { in updateNRVOCandidate() 132 auto UpdateReturnSlotsInScopeForVD = [VD](Scope *S) -> bool { in updateNRVOCandidate() 160 void Scope::applyNRVO() { in applyNRVO() 191 LLVM_DUMP_METHOD void Scope::dump() const { dumpImpl(llvm::errs()); } in dump() 193 void Scope::dumpImpl(raw_ostream &OS) const { in dumpImpl() [all …]
|
| /openbsd-src/gnu/llvm/clang/lib/Basic/ |
| H A D | Attributes.cpp | 8 const IdentifierInfo *Scope, const IdentifierInfo *Attr, in hasAttribute() argument 16 StringRef ScopeName = Scope ? Scope->getName() : ""; in hasAttribute() 46 normalizeAttrScopeName(const IdentifierInfo *Scope, in normalizeAttrScopeName() argument 48 if (!Scope) in normalizeAttrScopeName() 53 StringRef ScopeName = Scope->getName(); in normalizeAttrScopeName() 94 const IdentifierInfo *Scope, in normalizeName() argument 96 StringRef ScopeName = normalizeAttrScopeName(Scope, SyntaxUsed); in normalizeName() 126 StringRef Scope = normalizeAttrScopeName(getScopeName(), Syntax); in calculateAttributeSpellingListIndex() local 127 StringRef Name = normalizeAttrName(getAttrName(), Scope, Syntax); in calculateAttributeSpellingListIndex()
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/DebugInfo/LogicalView/Core/ |
| H A D | LVScope.h | 214 void addElement(LVScope *Scope); 297 virtual bool equalNumberOfChildren(const LVScope *Scope) const; 300 virtual bool equals(const LVScope *Scope) const; 338 void setReference(LVScope *Scope) override { in setReference() argument 339 Reference = Scope; in setReference() 354 bool equals(const LVScope *Scope) const override; 375 bool equals(const LVScope *Scope) const override; 391 bool equals(const LVScope *Scope) const override; 473 LVLine *lineLowerBound(LVAddress Address, LVScope *Scope) const; 474 LVLine *lineUpperBound(LVAddress Address, LVScope *Scope) const; [all …]
|
| H A D | LVRange.h | 28 LVScope *Scope = nullptr; variable 34 LVRangeEntry(LVAddress LowerAddress, LVAddress UpperAddress, LVScope *Scope) in LVRangeEntry() argument 35 : Lower(LowerAddress), Upper(UpperAddress), Scope(Scope) {} in LVRangeEntry() 42 LVScope *scope() const { return Scope; } in scope() 66 void addEntry(LVScope *Scope, LVAddress LowerAddress, LVAddress UpperAddress); 67 void addEntry(LVScope *Scope);
|
| H A D | LVReader.h | 149 void setCompileUnit(LVScope *Scope) { in setCompileUnit() argument 150 assert(Scope && Scope->isCompileUnit() && "Scope is not a compile unit"); in setCompileUnit() 151 CompileUnit = static_cast<LVScopeCompileUnit *>(Scope); in setCompileUnit() 166 virtual LVSectionIndex getSectionIndex(LVScope *Scope) { in getSectionIndex() argument 182 void notifyAddedElement(LVScope *Scope) { in notifyAddedElement() argument 184 Scopes.push_back(Scope); in notifyAddedElement() 207 bool doPrintScope(const LVScope *Scope) const { in doPrintScope() argument 208 return patterns().printElement(Scope); in doPrintScope()
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/DebugInfo/LogicalView/Readers/ |
| H A D | LVBinaryReader.h | 36 LVScope *Scope = nullptr; member 41 LVSymbolTableEntry(LVScope *Scope, LVAddress Address, in LVSymbolTableEntry() 43 : Scope(Scope), Address(Address), SectionIndex(SectionIndex), in LVSymbolTableEntry() 129 getSection(LVScope *Scope, LVAddress Address, LVSectionIndex SectionIndex); 131 void addSectionRange(LVSectionIndex SectionIndex, LVScope *Scope); 132 void addSectionRange(LVSectionIndex SectionIndex, LVScope *Scope, 165 LVSectionIndex getSectionIndex(LVScope *Scope) override { in getSectionIndex() argument 166 return Scope ? getSymbolTableIndex(Scope->getLinkageName()) in getSectionIndex()
|
| /openbsd-src/gnu/llvm/llvm/include/llvm-c/ |
| H A D | DebugInfo.h | 362 LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, const char *Name, 377 LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, 389 LLVMMetadataRef Scope, 403 LLVMMetadataRef Scope, 420 LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, 435 LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, LLVMMetadataRef M, 455 LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, LLVMMetadataRef Decl, 471 unsigned Column, LLVMMetadataRef Scope, 512 LLVMMetadataRef LLVMDIScopeGetFile(LLVMMetadataRef Scope); 628 LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, const char *Name, [all …]
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/IR/ |
| H A D | DIBuilder.h | 320 DIDerivedType *createMemberType(DIScope *Scope, StringRef Name, 340 DIDerivedType *createVariantMemberType(DIScope *Scope, StringRef Name, 359 DIDerivedType *createBitFieldMemberType(DIScope *Scope, StringRef Name, 377 DIDerivedType *createStaticMemberType(DIScope *Scope, StringRef Name, 431 DIScope *Scope, StringRef Name, DIFile *File, unsigned LineNumber, 449 DIScope *Scope, StringRef Name, DIFile *File, unsigned LineNumber, 465 DICompositeType *createUnionType(DIScope *Scope, StringRef Name, 486 DICompositeType *createVariantPart(DIScope *Scope, StringRef Name, 500 DITemplateTypeParameter *createTemplateTypeParameter(DIScope *Scope, 513 createTemplateValueParameter(DIScope *Scope, StringRef Name, DIType *Ty, [all …]
|
| H A D | DebugInfoMetadata.h | 982 unsigned Line, DIScope *Scope, DIType *BaseType, uint64_t SizeInBits, 988 Line, Scope, BaseType, SizeInBits, AlignInBits, OffsetInBits, 994 unsigned Line, Metadata *Scope, Metadata *BaseType, 1011 Metadata *Scope, Metadata *BaseType, uint64_t SizeInBits, 1015 (Tag, Name, File, Line, Scope, BaseType, SizeInBits, AlignInBits, 1019 DIScope *Scope, DIType *BaseType, uint64_t SizeInBits, 1024 (Tag, Name, File, Line, Scope, BaseType, SizeInBits, 1110 unsigned Line, DIScope *Scope, DIType *BaseType, uint64_t SizeInBits, 1119 Context, Tag, getCanonicalMDString(Context, Name), File, Line, Scope, 1127 unsigned Line, Metadata *Scope, Metadata *BaseType, [all …]
|
| /openbsd-src/gnu/llvm/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() 181 auto *LocalScope = cast<DILocalScope>(Scope)->getNonLexicalBlockFileScope(); in addImportedEntity() 197 void constructScopeDIE(LexicalScope *Scope, DIE &ParentScopeDIE); 210 DIE *constructInlinedScopeDIE(LexicalScope *Scope, DIE &ParentScopeDIE); 214 DIE *constructLexicalScopeDIE(LexicalScope *Scope); 219 DIE *constructVariableDIE(DbgVariable &DV, const LexicalScope &Scope, 223 DIE *constructLabelDIE(DbgLabel &DL, const LexicalScope &Scope); 229 LexicalScope *Scope); [all …]
|
| H A D | DwarfCompileUnit.cpp | 541 void DwarfCompileUnit::constructScopeDIE(LexicalScope *Scope, in constructScopeDIE() argument 543 if (!Scope || !Scope->getScopeNode()) in constructScopeDIE() 546 auto *DS = Scope->getScopeNode(); in constructScopeDIE() 548 assert((Scope->getInlinedAt() || !isa<DISubprogram>(DS)) && in constructScopeDIE() 554 if (Scope->getParent() && isa<DISubprogram>(DS)) { in constructScopeDIE() 555 DIE *ScopeDIE = constructInlinedScopeDIE(Scope, ParentScopeDIE); in constructScopeDIE() 557 createAndAddScopeChildren(Scope, *ScopeDIE); in constructScopeDIE() 562 if (DD->isLexicalScopeDIENull(Scope)) in constructScopeDIE() 566 DIE *ScopeDIE = constructLexicalScopeDIE(Scope); in constructScopeDIE() 570 createAndAddScopeChildren(Scope, *ScopeDIE); in constructScopeDIE() [all …]
|
| /openbsd-src/gnu/llvm/llvm/bindings/ocaml/debuginfo/ |
| H A D | debuginfo_ocaml.c | 283 value Builder, LLVMMetadataRef Scope, value Name, value LinkageName, in llvm_dibuild_create_function_native() argument 287 DIBuilder_val(Builder), Scope, String_val(Name), caml_string_length(Name), in llvm_dibuild_create_function_native() 310 LLVMMetadataRef Scope, in llvm_dibuild_create_lexical_block() argument 313 return LLVMDIBuilderCreateLexicalBlock(DIBuilder_val(Builder), Scope, File, in llvm_dibuild_create_lexical_block() 321 LLVMMetadataRef Scope, in llvm_dibuild_create_debug_location() argument 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() 398 value Builder, LLVMMetadataRef Scope, value Name, LLVMMetadataRef File, in llvm_dibuild_create_enumeration_type_native() argument 402 DIBuilder_val(Builder), Scope, String_val(Name), caml_string_length(Name), in llvm_dibuild_create_enumeration_type_native() [all …]
|
| /openbsd-src/gnu/llvm/llvm/utils/TableGen/ |
| H A D | DAGISelMatcherOpt.cpp | 31 if (ScopeMatcher *Scope = dyn_cast<ScopeMatcher>(N)) { in ContractNodes() local 32 for (unsigned i = 0, e = Scope->getNumChildren(); i != e; ++i) { in ContractNodes() 33 std::unique_ptr<Matcher> Child(Scope->takeChild(i)); in ContractNodes() 35 Scope->resetChild(i, Child.release()); in ContractNodes() 189 ScopeMatcher *Scope = nullptr; in FactorNodes() local 191 while (!Scope) { in FactorNodes() 197 Scope = dyn_cast<ScopeMatcher>(N); in FactorNodes() 198 if (!Scope) in FactorNodes() 207 for (unsigned i = 0, e = Scope->getNumChildren(); i != e; ++i) { in FactorNodes() 209 std::unique_ptr<Matcher> Child(Scope->takeChild(i)); in FactorNodes() [all …]
|
| /openbsd-src/gnu/llvm/clang/lib/AST/Interp/ |
| H A D | Function.h | 32 class Scope final { 44 Scope(LocalVectorTy &&Descriptors) : Descriptors(std::move(Descriptors)) {} in Scope() function 105 llvm::iterator_range<llvm::SmallVector<Scope, 2>::const_iterator> 118 Scope &getScope(unsigned Idx) { return Scopes[Idx]; } in getScope() 119 const Scope &getScope(unsigned Idx) const { return Scopes[Idx]; } in getScope() 152 llvm::SmallVector<Scope, 2> &&NewScopes) { in setCode() argument 182 llvm::SmallVector<Scope, 2> Scopes;
|