Home
last modified time | relevance | path

Searched refs:LabelDecl (Results 1 – 25 of 38) 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,
703 LabelDecl *LD = L->getLabel(); in VerifyJumps()
714 LabelDecl *Target = IGS->getConstantTarget(); in VerifyJumps()
792 llvm::DenseMap<unsigned, LabelDecl*> TargetScopes; in VerifyIndirectJumps()
793 for (LabelDecl *TheLabel : IndirectJumpTargets) { in VerifyIndirectJumps()
890 LabelDecl *Target, bool &Diagnosed) { in DiagnoseIndirectOrAsmJumpStmt()
912 LabelDecl *Target, in DiagnoseIndirectOrAsmJump()
H A DSemaStmtAsm.cpp1010 LabelDecl *Sema::GetOrCreateMSAsmLabel(StringRef ExternalLabelName, in GetOrCreateMSAsmLabel()
1013 LabelDecl* Label = LookupOrCreateLabel(PP.getIdentifierInfo(ExternalLabelName), in GetOrCreateMSAsmLabel()
H A DSemaLookup.cpp4457 LabelDecl *Sema::LookupOrCreateLabel(IdentifierInfo *II, SourceLocation Loc, in LookupOrCreateLabel()
4464 Res = LabelDecl::Create(Context, CurContext, Loc, II, GnuLabelLoc); in LookupOrCreateLabel()
4467 return cast<LabelDecl>(Res); in LookupOrCreateLabel()
4479 Res = LabelDecl::Create(Context, CurContext, Loc, II); in LookupOrCreateLabel()
4484 return cast<LabelDecl>(Res); in LookupOrCreateLabel()
H A DSemaTemplateInstantiateDecl.cpp1052 TemplateDeclInstantiator::VisitLabelDecl(LabelDecl *D) { in VisitLabelDecl()
1053 LabelDecl *Inst = LabelDecl::Create(SemaRef.Context, Owner, D->getLocation(), in VisitLabelDecl()
6854 assert(isa<LabelDecl>(D)); in FindInstantiatedDecl()
6860 return cast<LabelDecl>(Inst); in FindInstantiatedDecl()
/freebsd/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DSVals.h42 class LabelDecl; variable
476 explicit GotoLabel(const LabelDecl *Label) : Loc(GotoLabelKind, Label) { in GotoLabel()
480 const LabelDecl *getLabel() const { return castDataAs<LabelDecl>(); } in getLabel()
H A DCoreEngine.h40 class LabelDecl; variable
491 const LabelDecl *getLabel() const { in getLabel()
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DStmt.h62 class LabelDecl; variable
2158 LabelDecl *TheDecl;
2164 LabelStmt(SourceLocation IL, LabelDecl *D, Stmt *substmt)
2175 LabelDecl *getDecl() const { return TheDecl; }
2176 void setDecl(LabelDecl *D) { TheDecl = D; }
2973 LabelDecl *Label;
2977 GotoStmt(LabelDecl *label, SourceLocation GL, SourceLocation LL)
2985 LabelDecl *getLabel() const { return Label; }
2986 void setLabel(LabelDecl *D) { Label = D; }
3039 LabelDecl *getConstantTarget();
[all …]
H A DTextNodeDumper.h354 void VisitLabelDecl(const LabelDecl *D);
H A DDecl.h523 class LabelDecl : public NamedDecl {
533 LabelDecl(DeclContext *DC, SourceLocation IdentL, IdentifierInfo *II, in LabelDecl() function
540 static LabelDecl *Create(ASTContext &C, DeclContext *DC,
542 static LabelDecl *Create(ASTContext &C, DeclContext *DC,
545 static LabelDecl *CreateDeserialized(ASTContext &C, GlobalDeclID ID);
H A DExpr.h4480 LabelDecl *Label;
4482 AddrLabelExpr(SourceLocation AALoc, SourceLocation LLoc, LabelDecl *L, in AddrLabelExpr()
4501 LabelDecl *getLabel() const { return Label; } in getLabel()
4502 void setLabel(LabelDecl *L) { Label = L; } in setLabel()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DDecl.cpp5436 void LabelDecl::anchor() {} in anchor()
5438 LabelDecl *LabelDecl::Create(ASTContext &C, DeclContext *DC, in Create()
5440 return new (C, DC) LabelDecl(DC, IdentL, II, nullptr, IdentL); in Create()
5443 LabelDecl *LabelDecl::Create(ASTContext &C, DeclContext *DC, in Create()
5447 return new (C, DC) LabelDecl(DC, IdentL, II, nullptr, GnuLabelL); in Create()
5450 LabelDecl *LabelDecl::CreateDeserialized(ASTContext &C, GlobalDeclID ID) { in CreateDeserialized()
5451 return new (C, ID) LabelDecl(nullptr, SourceLocation(), nullptr, nullptr, in CreateDeserialized()
5455 void LabelDecl::setMSAsmLabel(StringRef Name) { in setMSAsmLabel()
H A DDeclPrinter.cpp74 void VisitLabelDecl(LabelDecl *D);
953 void DeclPrinter::VisitLabelDecl(LabelDecl *D) { in VisitLabelDecl()
H A DASTStructuralEquivalence.cpp295 LabelDecl *L1 = S1->getLabel(); in IsStmtEquivalent()
296 LabelDecl *L2 = S2->getLabel(); in IsStmtEquivalent()
H A DStmt.cpp1227 LabelDecl *IndirectGotoStmt::getConstantTarget() { in getConstantTarget()
/freebsd/contrib/llvm-project/clang/lib/Parse/
H A DParseStmtAsm.cpp130 LabelDecl *Label = in LookupInlineAsmLabel()
794 LabelDecl *LD = Actions.LookupOrCreateLabel(Tok.getIdentifierInfo(), in ParseAsmStatement()
H A DParseStmt.cpp740 LabelDecl *LD = Actions.LookupOrCreateLabel(IdentTok.getIdentifierInfo(), in ParseLabeledStatement()
2268 LabelDecl *LD = Actions.LookupOrCreateLabel(Tok.getIdentifierInfo(), in ParseGotoStatement()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCodeGenFunction.h65 class LabelDecl; variable
1088 SmallVector<const LabelDecl *, 4> Labels;
1098 void addLabel(const LabelDecl *label) {
1552 llvm::DenseMap<const LabelDecl *, JumpDest> LabelMap;
2621 JumpDest getJumpDestForLabel(const LabelDecl *S);
3051 llvm::BlockAddress *GetAddrOfLabel(const LabelDecl *L);
3591 void EmitLabel(const LabelDecl *D); // helper for EmitLabelStmt.
H A DCGStmt.cpp706 CodeGenFunction::getJumpDestForLabel(const LabelDecl *D) { in getJumpDestForLabel()
717 void CodeGenFunction::EmitLabel(const LabelDecl *D) { in EmitLabel()
760 for (const LabelDecl *Label : Labels) { in rescopeLabels()
856 if (const LabelDecl *Target = S.getConstantTarget()) { in EmitIndirectGotoStmt()
H A DCGDebugInfo.h537 void EmitLabel(const LabelDecl *D, CGBuilderTy &Builder);
/freebsd/contrib/llvm-project/clang/lib/Analysis/
H A DCFG.cpp536 using LabelMapTy = llvm::DenseMap<LabelDecl *, JumpTarget>;
545 using LabelSetTy = llvm::SmallSetVector<LabelDecl *, 8>;
1756 for (LabelDecl *LD : AddressTakenLabels) { in buildCFG()
3018 if (isa<LabelDecl>(*DS->decl_begin())) in VisitDeclStmt()
/freebsd/contrib/llvm-project/clang/lib/ASTMatchers/
H A DASTMatchersInternal.cpp766 const internal::VariadicDynCastAllOfMatcher<Decl, LabelDecl> labelDecl;
/freebsd/contrib/llvm-project/clang/lib/Serialization/
H A DASTReaderDecl.cpp321 void VisitLabelDecl(LabelDecl *LD);
1841 void ASTDeclReader::VisitLabelDecl(LabelDecl *D) { in VisitLabelDecl()
3957 D = LabelDecl::CreateDeserialized(Context, ID); in ReadDeclRecord()
H A DASTReaderStmt.cpp191 auto *LD = readDeclAs<LabelDecl>(); in VisitLabelStmt()
311 S->setLabel(readDeclAs<LabelDecl>()); in VisitGotoStmt()
1351 E->setLabel(readDeclAs<LabelDecl>()); in VisitAddrLabelExpr()
H A DASTWriterDecl.cpp78 void VisitLabelDecl(LabelDecl *LD);
1533 void ASTDeclWriter::VisitLabelDecl(LabelDecl *D) { in VisitLabelDecl()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DSema.h7486 LabelDecl *TheDecl);
9479 LabelDecl *LookupOrCreateLabel(IdentifierInfo *II, SourceLocation IdentLoc,
10914 StmtResult ActOnLabelStmt(SourceLocation IdentLoc, LabelDecl *TheDecl,
11019 LabelDecl *TheDecl);
11197 LabelDecl *GetOrCreateMSAsmLabel(StringRef ExternalLabelName,

12