Home
last modified time | relevance | path

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

12

/freebsd-14.2/contrib/llvm-project/clang/lib/Sema/
H A DJumpDiagnostics.cpp75 SmallVector<LabelDecl *, 4> IndirectJumpTargets;
91 void DiagnoseIndirectOrAsmJump(Stmt *IG, unsigned IGScope, LabelDecl *Target,
680 LabelDecl *LD = L->getLabel(); in VerifyJumps()
691 LabelDecl *Target = IGS->getConstantTarget(); in VerifyJumps()
766 llvm::DenseMap<unsigned, LabelDecl*> TargetScopes; in VerifyIndirectJumps()
767 for (LabelDecl *TheLabel : IndirectJumpTargets) { in VerifyIndirectJumps()
858 LabelDecl *Target, bool &Diagnosed) { in DiagnoseIndirectOrAsmJumpStmt()
880 LabelDecl *Target, in DiagnoseIndirectOrAsmJump()
H A DSemaStmtAsm.cpp970 LabelDecl *Sema::GetOrCreateMSAsmLabel(StringRef ExternalLabelName, in GetOrCreateMSAsmLabel()
973 LabelDecl* Label = LookupOrCreateLabel(PP.getIdentifierInfo(ExternalLabelName), in GetOrCreateMSAsmLabel()
H A DSemaLookup.cpp4432 LabelDecl *Sema::LookupOrCreateLabel(IdentifierInfo *II, SourceLocation Loc, in LookupOrCreateLabel()
4439 Res = LabelDecl::Create(Context, CurContext, Loc, II, GnuLabelLoc); in LookupOrCreateLabel()
4442 return cast<LabelDecl>(Res); in LookupOrCreateLabel()
4453 Res = LabelDecl::Create(Context, CurContext, Loc, II); in LookupOrCreateLabel()
4458 return cast<LabelDecl>(Res); in LookupOrCreateLabel()
H A DSemaTemplateInstantiateDecl.cpp954 TemplateDeclInstantiator::VisitLabelDecl(LabelDecl *D) { in VisitLabelDecl()
955 LabelDecl *Inst = LabelDecl::Create(SemaRef.Context, Owner, D->getLocation(), in VisitLabelDecl()
6215 assert(isa<LabelDecl>(D)); in FindInstantiatedDecl()
6221 return cast<LabelDecl>(Inst); in FindInstantiatedDecl()
H A DSemaDecl.cpp1600 if (isa<LabelDecl>(D) && !cast<LabelDecl>(D)->isGnuLocal()) { in PushOnScopeChains()
2033 if (isa<LabelDecl>(D)) in ShouldDiagnoseUnusedDecl()
2128 if (isa<LabelDecl>(D)) { in GenerateFixForUnusedDecl()
2181 else if (isa<LabelDecl>(D)) in DiagnoseUnusedDecl()
2242 static void CheckPoppedLabel(LabelDecl *L, Sema &S, in CheckPoppedLabel()
2303 if (LabelDecl *LD = dyn_cast<LabelDecl>(D)) in ActOnPopScope()
/freebsd-14.2/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DSVals.h41 class LabelDecl; variable
432 explicit GotoLabel(const LabelDecl *Label) : Loc(GotoLabelKind, Label) { in GotoLabel()
436 const LabelDecl *getLabel() const { return castDataAs<LabelDecl>(); } in getLabel()
H A DCoreEngine.h40 class LabelDecl; variable
509 const LabelDecl *getLabel() const { in getLabel()
/freebsd-14.2/contrib/llvm-project/clang/include/clang/AST/
H A DStmt.h61 class LabelDecl; variable
2030 LabelDecl *TheDecl;
2036 LabelStmt(SourceLocation IL, LabelDecl *D, Stmt *substmt) in LabelStmt()
2047 LabelDecl *getDecl() const { return TheDecl; } in getDecl()
2048 void setDecl(LabelDecl *D) { TheDecl = D; } in setDecl()
2861 LabelDecl *Label;
2865 GotoStmt(LabelDecl *label, SourceLocation GL, SourceLocation LL) in GotoStmt()
2873 LabelDecl *getLabel() const { return Label; } in getLabel()
2874 void setLabel(LabelDecl *D) { Label = D; } in setLabel()
2927 LabelDecl *getConstantTarget();
[all …]
H A DTextNodeDumper.h340 void VisitLabelDecl(const LabelDecl *D);
H A DDecl.h499 class LabelDecl : public NamedDecl {
509 LabelDecl(DeclContext *DC, SourceLocation IdentL, IdentifierInfo *II, in LabelDecl() function
516 static LabelDecl *Create(ASTContext &C, DeclContext *DC,
518 static LabelDecl *Create(ASTContext &C, DeclContext *DC,
521 static LabelDecl *CreateDeserialized(ASTContext &C, unsigned ID);
H A DExpr.h4311 LabelDecl *Label;
4313 AddrLabelExpr(SourceLocation AALoc, SourceLocation LLoc, LabelDecl *L, in AddrLabelExpr()
4332 LabelDecl *getLabel() const { return Label; } in getLabel()
4333 void setLabel(LabelDecl *L) { Label = L; } in setLabel()
/freebsd-14.2/contrib/llvm-project/clang/lib/AST/
H A DDecl.cpp5267 void LabelDecl::anchor() {} in anchor()
5269 LabelDecl *LabelDecl::Create(ASTContext &C, DeclContext *DC, in Create()
5271 return new (C, DC) LabelDecl(DC, IdentL, II, nullptr, IdentL); in Create()
5274 LabelDecl *LabelDecl::Create(ASTContext &C, DeclContext *DC, in Create()
5278 return new (C, DC) LabelDecl(DC, IdentL, II, nullptr, GnuLabelL); in Create()
5281 LabelDecl *LabelDecl::CreateDeserialized(ASTContext &C, unsigned ID) { in CreateDeserialized()
5282 return new (C, ID) LabelDecl(nullptr, SourceLocation(), nullptr, nullptr, in CreateDeserialized()
5286 void LabelDecl::setMSAsmLabel(StringRef Name) { in setMSAsmLabel()
H A DDeclPrinter.cpp84 void VisitLabelDecl(LabelDecl *D);
958 void DeclPrinter::VisitLabelDecl(LabelDecl *D) { in VisitLabelDecl()
H A DASTStructuralEquivalence.cpp292 LabelDecl *L1 = S1->getLabel(); in IsStmtEquivalent()
293 LabelDecl *L2 = S2->getLabel(); in IsStmtEquivalent()
H A DStmt.cpp1182 LabelDecl *IndirectGotoStmt::getConstantTarget() { in getConstantTarget()
/freebsd-14.2/contrib/llvm-project/clang/lib/Parse/
H A DParseStmtAsm.cpp132 LabelDecl *Label = in LookupInlineAsmLabel()
844 LabelDecl *LD = Actions.LookupOrCreateLabel(Tok.getIdentifierInfo(), in ParseAsmStatement()
H A DParseStmt.cpp789 LabelDecl *LD = Actions.LookupOrCreateLabel(IdentTok.getIdentifierInfo(), in ParseLabeledStatement()
2371 LabelDecl *LD = Actions.LookupOrCreateLabel(Tok.getIdentifierInfo(), in ParseGotoStatement()
/freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/
H A DCodeGenFunction.h62 class LabelDecl; variable
942 SmallVector<const LabelDecl*, 4> Labels;
957 void addLabel(const LabelDecl *label) {
1433 llvm::DenseMap<const LabelDecl*, JumpDest> LabelMap;
2505 JumpDest getJumpDestForLabel(const LabelDecl *S);
2806 llvm::BlockAddress *GetAddrOfLabel(const LabelDecl *L);
3321 void EmitLabel(const LabelDecl *D); // helper for EmitLabelStmt.
H A DCGStmt.cpp625 CodeGenFunction::getJumpDestForLabel(const LabelDecl *D) { in getJumpDestForLabel()
636 void CodeGenFunction::EmitLabel(const LabelDecl *D) { in EmitLabel()
679 for (SmallVectorImpl<const LabelDecl*>::const_iterator in rescopeLabels()
750 if (const LabelDecl *Target = S.getConstantTarget()) { in EmitIndirectGotoStmt()
H A DCGDebugInfo.h502 void EmitLabel(const LabelDecl *D, CGBuilderTy &Builder);
/freebsd-14.2/contrib/llvm-project/clang/lib/ASTMatchers/
H A DASTMatchersInternal.cpp741 const internal::VariadicDynCastAllOfMatcher<Decl, LabelDecl> labelDecl;
/freebsd-14.2/contrib/llvm-project/clang/lib/Serialization/
H A DASTReaderStmt.cpp195 auto *LD = readDeclAs<LabelDecl>(); in VisitLabelStmt()
315 S->setLabel(readDeclAs<LabelDecl>()); in VisitGotoStmt()
1330 E->setLabel(readDeclAs<LabelDecl>()); in VisitAddrLabelExpr()
H A DASTReaderDecl.cpp335 void VisitLabelDecl(LabelDecl *LD);
1829 void ASTDeclReader::VisitLabelDecl(LabelDecl *D) { in VisitLabelDecl()
3855 D = LabelDecl::CreateDeserialized(Context, ID); in ReadDeclRecord()
H A DASTWriterDecl.cpp63 void VisitLabelDecl(LabelDecl *LD);
1321 void ASTDeclWriter::VisitLabelDecl(LabelDecl *D) { in VisitLabelDecl()
/freebsd-14.2/contrib/llvm-project/clang/lib/Analysis/
H A DCFG.cpp514 using LabelMapTy = llvm::DenseMap<LabelDecl *, JumpTarget>;
523 using LabelSetTy = llvm::SmallSetVector<LabelDecl *, 8>;
2912 if (isa<LabelDecl>(*DS->decl_begin())) in VisitDeclStmt()

12