/freebsd/contrib/llvm-project/clang/include/clang/Sema/ |
H A D | Scope.h | 41 class Scope { 170 Scope *AnyParent; 196 Scope *FnParent; 197 Scope *MSLastManglingParent; 203 Scope *BreakParent, *ContinueParent; 207 Scope *BlockParent; 213 Scope *TemplateParamParent; 217 Scope *DeclParent; 253 void setFlags(Scope *Parent, unsigned F); 256 Scope(Scope *Parent, unsigned ScopeFlags, DiagnosticsEngine &Diag) in Scope() function [all …]
|
H A D | SemaCodeCompletion.h | 96 void CodeCompleteOrdinaryName(Scope *S, 98 void CodeCompleteDeclSpec(Scope *S, DeclSpec &DS, bool AllowNonIdentifiers, 102 void CodeCompleteExpression(Scope *S, const CodeCompleteExpressionData &Data); 103 void CodeCompleteExpression(Scope *S, QualType PreferredType, 105 void CodeCompleteMemberReferenceExpr(Scope *S, Expr *Base, Expr *OtherOpBase, 109 void CodeCompletePostfixExpression(Scope *S, ExprResult LHS, 111 void CodeCompleteTag(Scope *S, unsigned TagSpec); 115 void CodeCompleteBracketDeclarator(Scope *S); 116 void CodeCompleteCase(Scope *S); 119 Scope, enumerator [all …]
|
H A D | SemaObjC.h | 73 Scope *CurScope); 89 Scope *S, SourceLocation Loc, ParsedType BaseType, 249 DeclResult actOnObjCTypeParam(Scope *S, ObjCTypeParamVariance variance, 255 ObjCTypeParamList *actOnObjCTypeParamList(Scope *S, SourceLocation lAngleLoc, 258 void popObjCTypeParamList(Scope *S, ObjCTypeParamList *typeParamList); 261 Scope *S, SourceLocation AtInterfaceLoc, IdentifierInfo *ClassName, 270 Scope *S, SourceLocation AtInterfaceLoc, ObjCInterfaceDecl *IDecl, 339 Scope *S, ParsedType baseType, SourceLocation lAngleLoc, 350 Decl *ActOnAtEnd(Scope *S, SourceRange AtEnd, 367 Scope *S, [all …]
|
H A D | Sema.h | 717 Scope *getScopeForContext(DeclContext *Ctx); 720 void PushBlockScope(Scope *BlockScope, BlockDecl *Block); 728 void PushCapturedRegionScope(Scope *RegionScope, CapturedDecl *CD, 739 void operator()(sema::FunctionScopeInfo *Scope) const; 803 Scope *getCurScope() const { return CurScope; } in getCurScope() 917 void ActOnTranslationUnitScope(Scope *S); 963 Scope *TUScope; 1290 Scope *CurScope; 1945 void ActOnPragmaUnused(const Token &Identifier, Scope *curScope, 1960 void AddPragmaAttributes(Scope *S, Decl *D); [all …]
|
/freebsd/sys/contrib/dev/acpica/components/parser/ |
H A D | psscope.c | 177 return (ParserState->Scope->ParseScope.Op); in AcpiPsGetParentScope() 201 ((ParserState->Aml >= ParserState->Scope->ParseScope.ArgEnd || in AcpiPsHasCompletedScope() 202 !ParserState->Scope->ParseScope.ArgCount))); in AcpiPsHasCompletedScope() 224 ACPI_GENERIC_STATE *Scope; in AcpiPsInitScope() local 230 Scope = AcpiUtCreateGenericState (); in AcpiPsInitScope() 231 if (!Scope) in AcpiPsInitScope() 236 Scope->Common.DescriptorType = ACPI_DESC_TYPE_STATE_RPSCOPE; in AcpiPsInitScope() 237 Scope->ParseScope.Op = RootOp; in AcpiPsInitScope() 238 Scope->ParseScope.ArgCount = ACPI_VAR_ARGS; in AcpiPsInitScope() 239 Scope->ParseScope.ArgEnd = ParserState->AmlEnd; in AcpiPsInitScope() [all …]
|
/freebsd/contrib/llvm-project/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 …]
|
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/LogicalView/Core/ |
H A D | LVScope.cpp | 25 #define DEBUG_TYPE "Scope" 166 void LVScope::addElement(LVScope *Scope) { in addElement() argument 167 assert(Scope && "Invalid scope."); in addElement() 168 assert(!Scope->getParent() && "Scope already inserted"); in addElement() 173 Scopes->push_back(Scope); in addElement() 174 addToChildren(Scope); in addElement() 175 Scope->setParent(this); in addElement() 178 getReaderCompileUnit()->addedElement(Scope); in addElement() 183 if (Scope in addElement() 735 __anonc6b9c58b0802(LVScope *Scope) traverseParentsAndChildren() argument 1186 addSize(LVScope * Scope,LVOffset Lower,LVOffset Upper) addSize() argument 1319 increment(LVScope * Scope) increment() argument 1339 addedElement(LVScope * Scope) addedElement() argument 1384 LVScope *Scope = Line->getParentScope(); addLineZero() local 1536 printScopeSize(const LVScope * Scope,raw_ostream & OS) printScopeSize() argument 1562 __anonc6b9c58b1102(const LVScope *Scope) printSizes() argument 1565 for (const LVScope *Scope : MatchedScopes) printSizes() local 1655 for (const LVScope *Scope : MatchedScopes) { printMatchedElements() local [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 …]
|
/freebsd/contrib/llvm-project/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 …]
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | CGCleanup.cpp | 166 EHCleanupScope *Scope = in pushCleanup() local 178 Scope->setLifetimeMarker(); in pushCleanup() 190 return Scope->getCleanupBuffer(); in pushCleanup() 417 EHCleanupScope &Scope = cast<EHCleanupScope>(*EHStack.begin()); in PopCleanupBlocks() local 418 HadBranches |= Scope.hasBranches(); in PopCleanupBlocks() 424 Old.strictlyEncloses(Scope.getEnclosingNormalCleanup()); in PopCleanupBlocks() 499 EHCleanupScope &Scope) { in CreateNormalEntry() argument 500 assert(Scope.isNormalCleanup()); in CreateNormalEntry() 501 llvm::BasicBlock *Entry = Scope.getNormalBlock(); in CreateNormalEntry() 504 Scope.setNormalBlock(Entry); in CreateNormalEntry() [all …]
|
/freebsd/contrib/llvm-project/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() 339 LVBinaryReader::getSection(LVScope *Scope, LVAddress Address, in getSection() argument 349 Scope->getName().str().c_str()); in getSection() 361 Scope->getName().str().c_str()); in getSection() 371 LVScope *Scope) { in addSectionRange() argument 373 ScopesWithRanges->addEntry(Scope); in addSectionRange() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | SIMemoryLegalizer.cpp | 97 SIAtomicScope Scope = SIAtomicScope::SYSTEM; member in __anone9343ac70111::SIMemOpInfo 107 SIAtomicScope Scope = SIAtomicScope::SYSTEM, in SIMemOpInfo() argument 114 : Ordering(Ordering), FailureOrdering(FailureOrdering), Scope(Scope), in SIMemOpInfo() 121 assert(Scope == SIAtomicScope::NONE && in SIMemOpInfo() 128 assert(Scope != SIAtomicScope::NONE && in SIMemOpInfo() 145 this->Scope = std::min(Scope, SIAtomicScope::SINGLETHREAD); in SIMemOpInfo() 149 this->Scope = std::min(Scope, SIAtomicScope::WORKGROUP); in SIMemOpInfo() 153 this->Scope = std::min(Scope, SIAtomicScope::AGENT); in SIMemOpInfo() 161 return Scope; in getScope() 296 SIAtomicScope Scope, [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/IR/ |
H A D | LLVMContextImpl.h | 319 Metadata *Scope; 323 MDNodeKeyImpl(unsigned Line, unsigned Column, Metadata *Scope, 325 : Line(Line), Column(Column), Scope(Scope), InlinedAt(InlinedAt), 328 : Line(L->getLine()), Column(L->getColumn()), Scope(L->getRawScope()), 333 Scope == RHS->getRawScope() && InlinedAt == RHS->getRawInlinedAt() && 338 return hash_combine(Line, Column, Scope, InlinedAt, ImplicitCode); 538 Metadata *Scope; 550 Metadata *Scope, Metadata *BaseType, uint64_t SizeInBits, 555 : Tag(Tag), Name(Name), File(File), Line(Line), Scope(Scope), 562 Line(N->getLine()), Scope(N->getRawScope()), [all …]
|
H A D | DebugInfo.cpp | 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() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/Sema/ |
H A D | Scope.cpp | 20 void Scope::setFlags(Scope *parent, unsigned flags) { in setFlags() 95 void Scope::Init(Scope *parent, unsigned flags) { in Init() 105 bool Scope::containedInPrototypeScope() const { in containedInPrototypeScope() 106 const Scope *S = this; in containedInPrototypeScope() 115 void Scope::AddFlags(unsigned FlagsToSet) { in AddFlags() 136 void Scope::updateNRVOCandidate(VarDecl *VD) { in updateNRVOCandidate() 137 auto UpdateReturnSlotsInScopeForVD = [VD](Scope *S) -> bool { in updateNRVOCandidate() 165 void Scope::applyNRVO() { in applyNRVO() 196 LLVM_DUMP_METHOD void Scope::dump() const { dumpImpl(llvm::errs()); } in dump() 198 void Scope::dumpImpl(raw_ostream &OS) const { in dumpImpl() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/Basic/ |
H A D | Attributes.cpp | 32 const IdentifierInfo *Scope, const IdentifierInfo *Attr, in hasAttribute() argument 40 StringRef ScopeName = Scope ? Scope->getName() : ""; in hasAttribute() 80 normalizeAttrScopeName(const IdentifierInfo *Scope, in normalizeAttrScopeName() argument 82 if (!Scope) in normalizeAttrScopeName() 87 StringRef ScopeName = Scope->getName(); in normalizeAttrScopeName() 128 const IdentifierInfo *Scope, in normalizeName() argument 130 StringRef ScopeName = normalizeAttrScopeName(Scope, SyntaxUsed); in normalizeName() 160 StringRef Scope = normalizeAttrScopeName(getScopeName(), Syntax); in calculateAttributeSpellingListIndex() local 161 StringRef Name = normalizeAttrName(getAttrName(), Scope, Syntax); in calculateAttributeSpellingListIndex()
|
/freebsd/contrib/llvm-project/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; 476 LVLine *lineLowerBound(LVAddress Address, LVScope *Scope) const; 477 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 | 97 LV_OBJECT_ALLOCATOR(Scope) 203 LV_CREATE_OBJECT(Scope) in LV_CREATE_OBJECT() 247 void setCompileUnit(LVScope *Scope) { in setCompileUnit() argument 248 assert(Scope && Scope->isCompileUnit() && "Scope is not a compile unit"); in setCompileUnit() 249 CompileUnit = static_cast<LVScopeCompileUnit *>(Scope); in setCompileUnit() 271 virtual LVSectionIndex getSectionIndex(LVScope *Scope) { in getSectionIndex() argument 287 void notifyAddedElement(LVScope *Scope) { in notifyAddedElement() argument 289 Scopes.push_back(Scope); in notifyAddedElement() 312 bool doPrintScope(const LVScope *Scope) const { in doPrintScope() argument 313 return patterns().printElement(Scope); in doPrintScope()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/LogicalView/Readers/ |
H A D | LVBinaryReader.h | 37 LVScope *Scope = nullptr; member 42 LVSymbolTableEntry(LVScope *Scope, LVAddress Address, in LVSymbolTableEntry() 44 : Scope(Scope), Address(Address), SectionIndex(SectionIndex), in LVSymbolTableEntry() 180 getSection(LVScope *Scope, LVAddress Address, LVSectionIndex SectionIndex); 182 void addSectionRange(LVSectionIndex SectionIndex, LVScope *Scope); 183 void addSectionRange(LVSectionIndex SectionIndex, LVScope *Scope, 207 void addInlineeLines(LVScope *Scope, LVLines &Lines) { in addInlineeLines() argument 208 CUInlineeLines.emplace(Scope, std::make_unique<LVLines>(std::move(Lines))); in addInlineeLines() 228 LVSectionIndex getSectionIndex(LVScope *Scope) override { in getSectionIndex() argument 229 return Scope ? getSymbolTableIndex(Scope->getLinkageName()) in getSectionIndex()
|
/freebsd/contrib/llvm-project/llvm/include/llvm-c/ |
H A D | DebugInfo.h | 376 LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, const char *Name, 391 LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, 403 LLVMMetadataRef Scope, 417 LLVMMetadataRef Scope, 434 LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, 449 LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, LLVMMetadataRef M, 469 LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, LLVMMetadataRef Decl, 485 unsigned Column, LLVMMetadataRef Scope, 526 LLVMMetadataRef LLVMDIScopeGetFile(LLVMMetadataRef Scope); 642 LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, const char *Name, [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | DIBuilder.h | 357 DIDerivedType *createMemberType(DIScope *Scope, StringRef Name, 377 DIDerivedType *createVariantMemberType(DIScope *Scope, StringRef Name, 396 DIDerivedType *createBitFieldMemberType(DIScope *Scope, StringRef Name, 415 DIDerivedType *createStaticMemberType(DIScope *Scope, StringRef Name, 470 DIScope *Scope, StringRef Name, DIFile *File, unsigned LineNumber, 488 DIScope *Scope, StringRef Name, DIFile *File, unsigned LineNumber, 504 DICompositeType *createUnionType(DIScope *Scope, StringRef Name, 525 DICompositeType *createVariantPart(DIScope *Scope, StringRef Name, 539 DITemplateTypeParameter *createTemplateTypeParameter(DIScope *Scope, 552 createTemplateValueParameter(DIScope *Scope, StringRef Name, DIType *Ty, [all …]
|
/freebsd/contrib/byacc/test/ |
H A D | btyacc_demo.y | 20 typedef int Scope; typedef 26 Scope *scope; 37 Scope *scope; 204 extern Scope *global_scope; 206 extern Decl * lookup(Scope *scope, char *id); 207 extern Scope * new_scope(Scope *outer_scope); 208 extern Scope * start_fn_def(Scope *scope, Decl *fn_decl); 216 extern Decl * declare(Scope *scope, char *id, Type *type); 223 extern Expr * var_expr(Scope *scope, char *id);
|
/freebsd/sys/contrib/dev/acpica/components/dispatcher/ |
H A D | dswscope.c | 188 WalkState->ScopeInfo = ScopeInfo->Scope.Next; in AcpiDsScopeStackClear() 254 ScopeInfo->Scope.Node = Node; in AcpiDsScopeStackPush() 267 AcpiUtGetNodeName (OldScopeInfo->Scope.Node), in AcpiDsScopeStackPush() 277 AcpiUtGetNodeName (ScopeInfo->Scope.Node), in AcpiDsScopeStackPush() 324 AcpiUtGetNodeName (ScopeInfo->Scope.Node), in AcpiDsScopeStackPop() 331 AcpiUtGetNodeName (NewScopeInfo->Scope.Node), in AcpiDsScopeStackPop()
|
/freebsd/contrib/llvm-project/llvm/utils/TableGen/ |
H A D | DAGISelMatcherOpt.cpp | 33 if (ScopeMatcher *Scope = dyn_cast<ScopeMatcher>(N)) { in ContractNodes() local 34 for (unsigned i = 0, e = Scope->getNumChildren(); i != e; ++i) { in ContractNodes() 35 std::unique_ptr<Matcher> Child(Scope->takeChild(i)); in ContractNodes() 37 Scope->resetChild(i, Child.release()); in ContractNodes() 208 ScopeMatcher *Scope = nullptr; in FactorNodes() local 210 while (!Scope) { in FactorNodes() 217 Scope = dyn_cast<ScopeMatcher>(N); in FactorNodes() 218 if (!Scope) in FactorNodes() 227 for (unsigned i = 0, e = Scope->getNumChildren(); i != e; ++i) { in FactorNodes() 229 std::unique_ptr<Matcher> Child(Scope->takeChild(i)); in FactorNodes() [all …]
|