Home
last modified time | relevance | path

Searched refs:LabelDecl (Results 1 – 25 of 34) sorted by relevance

12

/freebsd-12.1/contrib/llvm/tools/clang/lib/Sema/
H A DJumpDiagnostics.cpp70 SmallVector<LabelDecl*, 4> IndirectJumpTargets;
83 LabelDecl *Target, unsigned TargetScope);
607 LabelDecl *Target = IGS->getConstantTarget(); in VerifyJumps()
688 llvm::DenseMap<unsigned, LabelDecl*> TargetScopes; in VerifyIndirectJumps()
689 for (SmallVectorImpl<LabelDecl*>::iterator in VerifyIndirectJumps()
692 LabelDecl *TheLabel = *I; in VerifyIndirectJumps()
696 LabelDecl *&Target = TargetScopes[LabelScope]; in VerifyIndirectJumps()
709 for (llvm::DenseMap<unsigned,LabelDecl*>::iterator in VerifyIndirectJumps()
712 LabelDecl *TargetLabel = TI->second; in VerifyIndirectJumps()
789 LabelDecl *Target, bool &Diagnosed) { in DiagnoseIndirectJumpStmt()
[all …]
H A DSemaStmtAsm.cpp856 LabelDecl *Sema::GetOrCreateMSAsmLabel(StringRef ExternalLabelName, in GetOrCreateMSAsmLabel()
859 LabelDecl* Label = LookupOrCreateLabel(PP.getIdentifierInfo(ExternalLabelName), in GetOrCreateMSAsmLabel()
H A DSemaLookup.cpp3812 LabelDecl *Sema::LookupOrCreateLabel(IdentifierInfo *II, SourceLocation Loc, in LookupOrCreateLabel()
3819 Res = LabelDecl::Create(Context, CurContext, Loc, II, GnuLabelLoc); in LookupOrCreateLabel()
3822 return cast<LabelDecl>(Res); in LookupOrCreateLabel()
3833 Res = LabelDecl::Create(Context, CurContext, Loc, II); in LookupOrCreateLabel()
3838 return cast<LabelDecl>(Res); in LookupOrCreateLabel()
H A DSemaTemplateInstantiateDecl.cpp527 TemplateDeclInstantiator::VisitLabelDecl(LabelDecl *D) { in VisitLabelDecl()
528 LabelDecl *Inst = LabelDecl::Create(SemaRef.Context, Owner, D->getLocation(), in VisitLabelDecl()
5063 assert(isa<LabelDecl>(D)); in FindInstantiatedDecl()
5069 return cast<LabelDecl>(Inst); in FindInstantiatedDecl()
H A DSemaDecl.cpp1383 if (isa<LabelDecl>(D) && !cast<LabelDecl>(D)->isGnuLocal()) { in PushOnScopeChains()
1663 if (isa<LabelDecl>(D)) in ShouldDiagnoseUnusedDecl()
1737 if (isa<LabelDecl>(D)) { in GenerateFixForUnusedDecl()
1779 else if (isa<LabelDecl>(D)) in DiagnoseUnusedDecl()
1787 static void CheckPoppedLabel(LabelDecl *L, Sema &S) { in CheckPoppedLabel()
1824 if (LabelDecl *LD = dyn_cast<LabelDecl>(D)) in ActOnPopScope()
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DSVals.h41 class LabelDecl; variable
574 explicit GotoLabel(const LabelDecl *Label) : Loc(GotoLabelKind, Label) { in GotoLabel()
578 const LabelDecl *getLabel() const { in getLabel()
579 return static_cast<const LabelDecl *>(Data); in getLabel()
H A DCoreEngine.h39 class LabelDecl; variable
492 const LabelDecl *getLabel() const { in getLabel()
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/AST/
H A DStmt.h50 class LabelDecl; variable
1594 LabelDecl *TheDecl;
1599 LabelStmt(SourceLocation IL, LabelDecl *D, Stmt *substmt) in LabelStmt()
1610 LabelDecl *getDecl() const { return TheDecl; } in getDecl()
1611 void setDecl(LabelDecl *D) { TheDecl = D; } in setDecl()
2305 LabelDecl *Label;
2309 GotoStmt(LabelDecl *label, SourceLocation GL, SourceLocation LL) in GotoStmt()
2317 LabelDecl *getLabel() const { return Label; } in getLabel()
2318 void setLabel(LabelDecl *D) { Label = D; } in setLabel()
2367 LabelDecl *getConstantTarget();
[all …]
H A DDecl.h469 class LabelDecl : public NamedDecl {
479 LabelDecl(DeclContext *DC, SourceLocation IdentL, IdentifierInfo *II, in LabelDecl() function
486 static LabelDecl *Create(ASTContext &C, DeclContext *DC,
488 static LabelDecl *Create(ASTContext &C, DeclContext *DC,
491 static LabelDecl *CreateDeserialized(ASTContext &C, unsigned ID);
H A DExpr.h3764 LabelDecl *Label;
3766 AddrLabelExpr(SourceLocation AALoc, SourceLocation LLoc, LabelDecl *L, in AddrLabelExpr()
3784 LabelDecl *getLabel() const { return Label; } in getLabel()
3785 void setLabel(LabelDecl *L) { Label = L; } in setLabel()
/freebsd-12.1/contrib/llvm/tools/clang/lib/AST/
H A DDecl.cpp4366 void LabelDecl::anchor() {} in anchor()
4368 LabelDecl *LabelDecl::Create(ASTContext &C, DeclContext *DC, in Create()
4370 return new (C, DC) LabelDecl(DC, IdentL, II, nullptr, IdentL); in Create()
4373 LabelDecl *LabelDecl::Create(ASTContext &C, DeclContext *DC, in Create()
4377 return new (C, DC) LabelDecl(DC, IdentL, II, nullptr, GnuLabelL); in Create()
4380 LabelDecl *LabelDecl::CreateDeserialized(ASTContext &C, unsigned ID) { in CreateDeserialized()
4381 return new (C, ID) LabelDecl(nullptr, SourceLocation(), nullptr, nullptr, in CreateDeserialized()
4385 void LabelDecl::setMSAsmLabel(StringRef Name) { in setMSAsmLabel()
H A DDeclPrinter.cpp72 void VisitLabelDecl(LabelDecl *D);
795 void DeclPrinter::VisitLabelDecl(LabelDecl *D) { in VisitLabelDecl()
H A DASTDumper.cpp217 void VisitLabelDecl(const LabelDecl *D);
528 void ASTDumper::VisitLabelDecl(const LabelDecl *D) { NodeDumper.dumpName(D); } in VisitLabelDecl()
H A DStmt.cpp1043 LabelDecl *IndirectGotoStmt::getConstantTarget() { in getConstantTarget()
H A DASTImporter.cpp465 ExpectedDecl VisitLabelDecl(LabelDecl *D);
2419 ExpectedDecl ASTNodeImporter::VisitLabelDecl(LabelDecl *D) { in VisitLabelDecl()
2432 LabelDecl *ToLabel; in VisitLabelDecl()
5693 LabelDecl *ToLabelDecl; in VisitLabelStmt()
5831 LabelDecl *ToLabel; in VisitGotoStmt()
6314 LabelDecl *ToLabel; in VisitAddrLabelExpr()
/freebsd-12.1/contrib/llvm/tools/clang/lib/CodeGen/
H A DCGStmt.cpp498 CodeGenFunction::getJumpDestForLabel(const LabelDecl *D) { in getJumpDestForLabel()
509 void CodeGenFunction::EmitLabel(const LabelDecl *D) { in EmitLabel()
543 for (SmallVectorImpl<const LabelDecl*>::const_iterator in rescopeLabels()
580 if (const LabelDecl *Target = S.getConstantTarget()) { in EmitIndirectGotoStmt()
H A DCodeGenFunction.h61 class LabelDecl; variable
761 SmallVector<const LabelDecl*, 4> Labels;
776 void addLabel(const LabelDecl *label) {
1235 llvm::DenseMap<const LabelDecl*, JumpDest> LabelMap;
2045 JumpDest getJumpDestForLabel(const LabelDecl *S);
2366 llvm::BlockAddress *GetAddrOfLabel(const LabelDecl *L);
2854 void EmitLabel(const LabelDecl *D); // helper for EmitLabelStmt.
/freebsd-12.1/contrib/llvm/tools/clang/lib/Parse/
H A DParseStmtAsm.cpp133 LabelDecl *Label = in LookupInlineAsmLabel()
H A DParseStmt.cpp633 LabelDecl *LD = Actions.LookupOrCreateLabel(IdentTok.getIdentifierInfo(), in ParseLabeledStatement()
1898 LabelDecl *LD = Actions.LookupOrCreateLabel(Tok.getIdentifierInfo(), in ParseGotoStatement()
/freebsd-12.1/contrib/llvm/tools/clang/lib/ASTMatchers/
H A DASTMatchersInternal.cpp565 const internal::VariadicDynCastAllOfMatcher<Decl, LabelDecl> labelDecl;
/freebsd-12.1/contrib/llvm/tools/clang/lib/Serialization/
H A DASTReaderStmt.cpp196 auto *LD = ReadDeclAs<LabelDecl>(); in VisitLabelStmt()
307 S->setLabel(ReadDeclAs<LabelDecl>()); in VisitGotoStmt()
975 E->setLabel(ReadDeclAs<LabelDecl>()); in VisitAddrLabelExpr()
H A DASTReaderDecl.cpp328 void VisitLabelDecl(LabelDecl *LD);
1524 void ASTDeclReader::VisitLabelDecl(LabelDecl *D) { in VisitLabelDecl()
3665 D = LabelDecl::CreateDeserialized(Context, ID); in ReadDeclRecord()
H A DASTWriterDecl.cpp63 void VisitLabelDecl(LabelDecl *LD);
1155 void ASTDeclWriter::VisitLabelDecl(LabelDecl *D) { in VisitLabelDecl()
/freebsd-12.1/contrib/llvm/tools/clang/lib/Analysis/
H A DCFG.cpp472 using LabelMapTy = llvm::DenseMap<LabelDecl *, JumpTarget>;
481 using LabelSetTy = llvm::SmallSetVector<LabelDecl *, 8>;
2633 if (isa<LabelDecl>(*DS->decl_begin())) in VisitDeclStmt()
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/Sema/
H A DSema.h3233 LabelDecl *LookupOrCreateLabel(IdentifierInfo *II, SourceLocation IdentLoc,
3753 StmtResult ActOnLabelStmt(SourceLocation IdentLoc, LabelDecl *TheDecl,
3825 LabelDecl *TheDecl);
3890 LabelDecl *GetOrCreateMSAsmLabel(StringRef ExternalLabelName,
4463 LabelDecl *TheDecl);

12