| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | JumpDiagnostics.cpp | 77 SmallVector<LabelDecl*, 4> IndirectJumpTargets; 78 SmallVector<LabelDecl*, 4> AsmJumpTargets; 671 LabelDecl *Target = IGS->getConstantTarget(); in VerifyJumps() 719 SmallVector<LabelDecl *, 4> JumpTargets = in VerifyIndirectOrAsmJumps() 756 llvm::DenseMap<unsigned, LabelDecl*> TargetScopes; in VerifyIndirectOrAsmJumps() 757 for (SmallVectorImpl<LabelDecl *>::iterator I = JumpTargets.begin(), in VerifyIndirectOrAsmJumps() 760 LabelDecl *TheLabel = *I; in VerifyIndirectOrAsmJumps() 764 LabelDecl *&Target = TargetScopes[LabelScope]; in VerifyIndirectOrAsmJumps() 777 for (llvm::DenseMap<unsigned,LabelDecl*>::iterator in VerifyIndirectOrAsmJumps() 780 LabelDecl *TargetLabel = TI->second; in VerifyIndirectOrAsmJumps() [all …]
|
| H A D | SemaStmtAsm.cpp | 951 LabelDecl *Sema::GetOrCreateMSAsmLabel(StringRef ExternalLabelName, in GetOrCreateMSAsmLabel() 954 LabelDecl* Label = LookupOrCreateLabel(PP.getIdentifierInfo(ExternalLabelName), in GetOrCreateMSAsmLabel()
|
| H A D | SemaLookup.cpp | 4402 LabelDecl *Sema::LookupOrCreateLabel(IdentifierInfo *II, SourceLocation Loc, in LookupOrCreateLabel() 4409 Res = LabelDecl::Create(Context, CurContext, Loc, II, GnuLabelLoc); in LookupOrCreateLabel() 4412 return cast<LabelDecl>(Res); in LookupOrCreateLabel() 4423 Res = LabelDecl::Create(Context, CurContext, Loc, II); in LookupOrCreateLabel() 4428 return cast<LabelDecl>(Res); in LookupOrCreateLabel()
|
| H A D | SemaTemplateInstantiateDecl.cpp | 906 TemplateDeclInstantiator::VisitLabelDecl(LabelDecl *D) { in VisitLabelDecl() 907 LabelDecl *Inst = LabelDecl::Create(SemaRef.Context, Owner, D->getLocation(), in VisitLabelDecl() 6102 assert(isa<LabelDecl>(D)); in FindInstantiatedDecl() 6108 return cast<LabelDecl>(Inst); in FindInstantiatedDecl()
|
| /llvm-project-15.0.7/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
| H A D | SVals.h | 39 class LabelDecl; variable 491 explicit GotoLabel(const LabelDecl *Label) : Loc(GotoLabelKind, Label) { in GotoLabel() 495 const LabelDecl *getLabel() const { in getLabel() 496 return static_cast<const LabelDecl *>(Data); in getLabel()
|
| H A D | CoreEngine.h | 39 class LabelDecl; variable 507 const LabelDecl *getLabel() const { in getLabel()
|
| /llvm-project-15.0.7/clang/include/clang/AST/ |
| H A D | Stmt.h | 54 class LabelDecl; variable 1832 LabelDecl *TheDecl; 1838 LabelStmt(SourceLocation IL, LabelDecl *D, Stmt *substmt) in LabelStmt() 1849 LabelDecl *getDecl() const { return TheDecl; } in getDecl() 1850 void setDecl(LabelDecl *D) { TheDecl = D; } in setDecl() 2638 LabelDecl *Label; 2642 GotoStmt(LabelDecl *label, SourceLocation GL, SourceLocation LL) in GotoStmt() 2650 LabelDecl *getLabel() const { return Label; } in getLabel() 2651 void setLabel(LabelDecl *D) { Label = D; } in setLabel() 2704 LabelDecl *getConstantTarget(); [all …]
|
| H A D | TextNodeDumper.h | 328 void VisitLabelDecl(const LabelDecl *D);
|
| H A D | Decl.h | 494 class LabelDecl : public NamedDecl { 504 LabelDecl(DeclContext *DC, SourceLocation IdentL, IdentifierInfo *II, in LabelDecl() function 511 static LabelDecl *Create(ASTContext &C, DeclContext *DC, 513 static LabelDecl *Create(ASTContext &C, DeclContext *DC, 516 static LabelDecl *CreateDeserialized(ASTContext &C, unsigned ID);
|
| H A D | Expr.h | 4306 LabelDecl *Label; 4308 AddrLabelExpr(SourceLocation AALoc, SourceLocation LLoc, LabelDecl *L, in AddrLabelExpr() 4327 LabelDecl *getLabel() const { return Label; } in getLabel() 4328 void setLabel(LabelDecl *L) { Label = L; } in setLabel()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/ |
| H A D | FindTarget.cpp | 294 if (auto *LabelDecl = Goto->getLabel()) in add() local 295 Outer.add(LabelDecl, Flags); in add() 298 if (auto *LabelDecl = Label->getDecl()) in add() local 299 Outer.add(LabelDecl, Flags); in add()
|
| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | Decl.cpp | 4937 void LabelDecl::anchor() {} in anchor() 4939 LabelDecl *LabelDecl::Create(ASTContext &C, DeclContext *DC, in Create() 4941 return new (C, DC) LabelDecl(DC, IdentL, II, nullptr, IdentL); in Create() 4944 LabelDecl *LabelDecl::Create(ASTContext &C, DeclContext *DC, in Create() 4948 return new (C, DC) LabelDecl(DC, IdentL, II, nullptr, GnuLabelL); in Create() 4951 LabelDecl *LabelDecl::CreateDeserialized(ASTContext &C, unsigned ID) { in CreateDeserialized() 4952 return new (C, ID) LabelDecl(nullptr, SourceLocation(), nullptr, nullptr, in CreateDeserialized() 4956 void LabelDecl::setMSAsmLabel(StringRef Name) { in setMSAsmLabel()
|
| H A D | DeclPrinter.cpp | 72 void VisitLabelDecl(LabelDecl *D); 852 void DeclPrinter::VisitLabelDecl(LabelDecl *D) { in VisitLabelDecl()
|
| H A D | Stmt.cpp | 1180 LabelDecl *IndirectGotoStmt::getConstantTarget() { in getConstantTarget()
|
| /llvm-project-15.0.7/clang/lib/Parse/ |
| H A D | ParseStmtAsm.cpp | 132 LabelDecl *Label = in LookupInlineAsmLabel() 844 LabelDecl *LD = Actions.LookupOrCreateLabel(Tok.getIdentifierInfo(), in ParseAsmStatement()
|
| H A D | ParseStmt.cpp | 722 LabelDecl *LD = Actions.LookupOrCreateLabel(IdentTok.getIdentifierInfo(), in ParseLabeledStatement() 2285 LabelDecl *LD = Actions.LookupOrCreateLabel(Tok.getIdentifierInfo(), in ParseGotoStatement()
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CodeGenFunction.h | 61 class LabelDecl; variable 933 SmallVector<const LabelDecl*, 4> Labels; 948 void addLabel(const LabelDecl *label) { 1424 llvm::DenseMap<const LabelDecl*, JumpDest> LabelMap; 2435 JumpDest getJumpDestForLabel(const LabelDecl *S); 2739 llvm::BlockAddress *GetAddrOfLabel(const LabelDecl *L); 3234 void EmitLabel(const LabelDecl *D); // helper for EmitLabelStmt.
|
| H A D | CGStmt.cpp | 615 CodeGenFunction::getJumpDestForLabel(const LabelDecl *D) { in getJumpDestForLabel() 626 void CodeGenFunction::EmitLabel(const LabelDecl *D) { in EmitLabel() 669 for (SmallVectorImpl<const LabelDecl*>::const_iterator in rescopeLabels() 741 if (const LabelDecl *Target = S.getConstantTarget()) { in EmitIndirectGotoStmt()
|
| H A D | CGDebugInfo.h | 481 void EmitLabel(const LabelDecl *D, CGBuilderTy &Builder);
|
| /llvm-project-15.0.7/clang/unittests/AST/ |
| H A D | SourceLocationTest.cpp | 123 TEST(LabelDecl, Range) { in TEST() argument
|
| /llvm-project-15.0.7/clang/lib/ASTMatchers/ |
| H A D | ASTMatchersInternal.cpp | 740 const internal::VariadicDynCastAllOfMatcher<Decl, LabelDecl> labelDecl;
|
| /llvm-project-15.0.7/clang/lib/Serialization/ |
| H A D | ASTReaderStmt.cpp | 193 auto *LD = readDeclAs<LabelDecl>(); in VisitLabelStmt() 311 S->setLabel(readDeclAs<LabelDecl>()); in VisitGotoStmt() 1296 E->setLabel(readDeclAs<LabelDecl>()); in VisitAddrLabelExpr()
|
| H A D | ASTReaderDecl.cpp | 323 void VisitLabelDecl(LabelDecl *LD); 1701 void ASTDeclReader::VisitLabelDecl(LabelDecl *D) { in VisitLabelDecl() 3598 D = LabelDecl::CreateDeserialized(Context, ID); in ReadDeclRecord()
|
| H A D | ASTWriterDecl.cpp | 62 void VisitLabelDecl(LabelDecl *LD); 1238 void ASTDeclWriter::VisitLabelDecl(LabelDecl *D) { in VisitLabelDecl()
|
| /llvm-project-15.0.7/clang/lib/Analysis/ |
| H A D | CFG.cpp | 494 using LabelMapTy = llvm::DenseMap<LabelDecl *, JumpTarget>; 503 using LabelSetTy = llvm::SmallSetVector<LabelDecl *, 8>; 2845 if (isa<LabelDecl>(*DS->decl_begin())) in VisitDeclStmt()
|