Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DJumpDiagnostics.cpp76 SmallVector<LabelDecl *, 4> IndirectJumpTargets;
92 void DiagnoseIndirectOrAsmJump(Stmt *IG, unsigned IGScope, LabelDecl *Target,
689 LabelDecl *LD = L->getLabel(); in VerifyJumps()
700 LabelDecl *Target = IGS->getConstantTarget(); in VerifyJumps()
775 llvm::DenseMap<unsigned, LabelDecl*> TargetScopes; in VerifyIndirectJumps()
776 for (LabelDecl *TheLabel : IndirectJumpTargets) { in VerifyIndirectJumps()
867 LabelDecl *Target, bool &Diagnosed) { in DiagnoseIndirectOrAsmJumpStmt()
889 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.cpp4362 LabelDecl *Sema::LookupOrCreateLabel(IdentifierInfo *II, SourceLocation Loc, in LookupOrCreateLabel()
4369 Res = LabelDecl::Create(Context, CurContext, Loc, II, GnuLabelLoc); in LookupOrCreateLabel()
4372 return cast<LabelDecl>(Res); in LookupOrCreateLabel()
4384 Res = LabelDecl::Create(Context, CurContext, Loc, II); in LookupOrCreateLabel()
4389 return cast<LabelDecl>(Res); in LookupOrCreateLabel()
H A DSemaTemplateInstantiateDecl.cpp979 TemplateDeclInstantiator::VisitLabelDecl(LabelDecl *D) { in VisitLabelDecl()
980 LabelDecl *Inst = LabelDecl::Create(SemaRef.Context, Owner, D->getLocation(), in VisitLabelDecl()
6167 assert(isa<LabelDecl>(D)); in FindInstantiatedDecl()
6173 return cast<LabelDecl>(Inst); in FindInstantiatedDecl()
H A DSemaDecl.cpp1537 if (isa<LabelDecl>(D) && !cast<LabelDecl>(D)->isGnuLocal()) { in PushOnScopeChains()
1941 if (isa<LabelDecl>(D)) in ShouldDiagnoseUnusedDecl()
2037 if (isa<LabelDecl>(D)) { in GenerateFixForUnusedDecl()
2088 else if (isa<LabelDecl>(D)) in DiagnoseUnusedDecl()
2162 static void CheckPoppedLabel(LabelDecl *L, Sema &S, in CheckPoppedLabel()
2223 if (LabelDecl *LD = dyn_cast<LabelDecl>(D)) in ActOnPopScope()
/freebsd/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DSVals.h41 class LabelDecl; variable
424 explicit GotoLabel(const LabelDecl *Label) : Loc(GotoLabelKind, Label) { in GotoLabel()
428 const LabelDecl *getLabel() const { return castDataAs<LabelDecl>(); } in getLabel()
H A DCoreEngine.h40 class LabelDecl; variable
509 const LabelDecl *getLabel() const { in getLabel()
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DStmt.h61 class LabelDecl; variable
2037 LabelDecl *TheDecl;
2043 LabelStmt(SourceLocation IL, LabelDecl *D, Stmt *substmt)
2054 LabelDecl *getDecl() const { return TheDecl; }
2055 void setDecl(LabelDecl *D) { TheDecl = D; }
2868 LabelDecl *Label;
2872 GotoStmt(LabelDecl *label, SourceLocation GL, SourceLocation LL)
2880 LabelDecl *getLabel() const { return Label; }
2881 void setLabel(LabelDecl *D) { Label = D; }
2934 LabelDecl *getConstantTarget();
[all …]
H A DTextNodeDumper.h353 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, GlobalDeclID ID);
H A DExpr.h4364 LabelDecl *Label;
4366 AddrLabelExpr(SourceLocation AALoc, SourceLocation LLoc, LabelDecl *L, in AddrLabelExpr()
4385 LabelDecl *getLabel() const { return Label; } in getLabel()
4386 void setLabel(LabelDecl *L) { Label = L; } in setLabel()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DDecl.cpp5329 void LabelDecl::anchor() {} in anchor()
5331 LabelDecl *LabelDecl::Create(ASTContext &C, DeclContext *DC, in Create()
5333 return new (C, DC) LabelDecl(DC, IdentL, II, nullptr, IdentL); in Create()
5336 LabelDecl *LabelDecl::Create(ASTContext &C, DeclContext *DC, in Create()
5340 return new (C, DC) LabelDecl(DC, IdentL, II, nullptr, GnuLabelL); in Create()
5343 LabelDecl *LabelDecl::CreateDeserialized(ASTContext &C, GlobalDeclID ID) { in CreateDeserialized()
5344 return new (C, ID) LabelDecl(nullptr, SourceLocation(), nullptr, nullptr, in CreateDeserialized()
5348 void LabelDecl::setMSAsmLabel(StringRef Name) { in setMSAsmLabel()
H A DDeclPrinter.cpp73 void VisitLabelDecl(LabelDecl *D);
917 void DeclPrinter::VisitLabelDecl(LabelDecl *D) { in VisitLabelDecl()
H A DASTStructuralEquivalence.cpp293 LabelDecl *L1 = S1->getLabel(); in IsStmtEquivalent()
294 LabelDecl *L2 = S2->getLabel(); in IsStmtEquivalent()
H A DStmt.cpp1183 LabelDecl *IndirectGotoStmt::getConstantTarget() { in getConstantTarget()
/freebsd/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.cpp801 LabelDecl *LD = Actions.LookupOrCreateLabel(IdentTok.getIdentifierInfo(), in ParseLabeledStatement()
2386 LabelDecl *LD = Actions.LookupOrCreateLabel(Tok.getIdentifierInfo(), in ParseGotoStatement()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCodeGenFunction.h64 class LabelDecl; variable
1028 SmallVector<const LabelDecl*, 4> Labels;
1043 void addLabel(const LabelDecl *label) {
1521 llvm::DenseMap<const LabelDecl*, JumpDest> LabelMap;
2612 JumpDest getJumpDestForLabel(const LabelDecl *S);
3004 llvm::BlockAddress *GetAddrOfLabel(const LabelDecl *L);
3547 void EmitLabel(const LabelDecl *D); // helper for EmitLabelStmt.
H A DCGStmt.cpp642 CodeGenFunction::getJumpDestForLabel(const LabelDecl *D) { in getJumpDestForLabel()
653 void CodeGenFunction::EmitLabel(const LabelDecl *D) { in EmitLabel()
696 for (SmallVectorImpl<const LabelDecl*>::const_iterator in rescopeLabels()
775 if (const LabelDecl *Target = S.getConstantTarget()) { in EmitIndirectGotoStmt()
H A DCGDebugInfo.h512 void EmitLabel(const LabelDecl *D, CGBuilderTy &Builder);
/freebsd/contrib/llvm-project/clang/lib/Serialization/
H A DASTReaderStmt.cpp195 auto *LD = readDeclAs<LabelDecl>(); in VisitLabelStmt()
315 S->setLabel(readDeclAs<LabelDecl>()); in VisitGotoStmt()
1337 E->setLabel(readDeclAs<LabelDecl>()); in VisitAddrLabelExpr()
H A DASTReaderDecl.cpp330 void VisitLabelDecl(LabelDecl *LD);
1821 void ASTDeclReader::VisitLabelDecl(LabelDecl *D) { in VisitLabelDecl()
3880 D = LabelDecl::CreateDeserialized(Context, ID); in ReadDeclRecord()
H A DASTWriterDecl.cpp66 void VisitLabelDecl(LabelDecl *LD);
1359 void ASTDeclWriter::VisitLabelDecl(LabelDecl *D) { in VisitLabelDecl()
/freebsd/contrib/llvm-project/clang/lib/Analysis/
H A DCFG.cpp514 using LabelMapTy = llvm::DenseMap<LabelDecl *, JumpTarget>;
523 using LabelSetTy = llvm::SmallSetVector<LabelDecl *, 8>;
2909 if (isa<LabelDecl>(*DS->decl_begin())) in VisitDeclStmt()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DSema.h7061 LabelDecl *TheDecl);
9210 LabelDecl *LookupOrCreateLabel(IdentifierInfo *II, SourceLocation IdentLoc,
10699 StmtResult ActOnLabelStmt(SourceLocation IdentLoc, LabelDecl *TheDecl,
10804 LabelDecl *TheDecl);
10979 LabelDecl *GetOrCreateMSAsmLabel(StringRef ExternalLabelName,

12