Home
last modified time | relevance | path

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

12

/openbsd-src/gnu/llvm/clang/lib/Sema/
H A DJumpDiagnostics.cpp77 SmallVector<LabelDecl*, 4> IndirectJumpTargets;
78 SmallVector<LabelDecl*, 4> AsmJumpTargets;
92 void DiagnoseIndirectOrAsmJump(Stmt *IG, unsigned IGScope, LabelDecl *Target,
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()
[all …]
H A DSemaStmtAsm.cpp968 LabelDecl *Sema::GetOrCreateMSAsmLabel(StringRef ExternalLabelName, in GetOrCreateMSAsmLabel()
971 LabelDecl* Label = LookupOrCreateLabel(PP.getIdentifierInfo(ExternalLabelName), in GetOrCreateMSAsmLabel()
H A DSemaLookup.cpp4414 LabelDecl *Sema::LookupOrCreateLabel(IdentifierInfo *II, SourceLocation Loc, in LookupOrCreateLabel()
4421 Res = LabelDecl::Create(Context, CurContext, Loc, II, GnuLabelLoc); in LookupOrCreateLabel()
4424 return cast<LabelDecl>(Res); in LookupOrCreateLabel()
4435 Res = LabelDecl::Create(Context, CurContext, Loc, II); in LookupOrCreateLabel()
4440 return cast<LabelDecl>(Res); in LookupOrCreateLabel()
H A DSemaTemplateInstantiateDecl.cpp914 TemplateDeclInstantiator::VisitLabelDecl(LabelDecl *D) { in VisitLabelDecl()
915 LabelDecl *Inst = LabelDecl::Create(SemaRef.Context, Owner, D->getLocation(), in VisitLabelDecl()
6113 assert(isa<LabelDecl>(D)); in FindInstantiatedDecl()
6119 return cast<LabelDecl>(Inst); in FindInstantiatedDecl()
/openbsd-src/gnu/llvm/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DSVals.h38 class LabelDecl; variable
490 explicit GotoLabel(const LabelDecl *Label) : Loc(GotoLabelKind, Label) { in GotoLabel()
494 const LabelDecl *getLabel() const { in getLabel()
495 return static_cast<const LabelDecl *>(Data); in getLabel()
H A DCoreEngine.h39 class LabelDecl; variable
513 const LabelDecl *getLabel() const { in getLabel()
/openbsd-src/gnu/llvm/clang/include/clang/AST/
H A DStmt.h56 class LabelDecl; variable
1844 LabelDecl *TheDecl;
1850 LabelStmt(SourceLocation IL, LabelDecl *D, Stmt *substmt) in LabelStmt()
1861 LabelDecl *getDecl() const { return TheDecl; } in getDecl()
1862 void setDecl(LabelDecl *D) { TheDecl = D; } in setDecl()
2650 LabelDecl *Label;
2654 GotoStmt(LabelDecl *label, SourceLocation GL, SourceLocation LL) in GotoStmt()
2662 LabelDecl *getLabel() const { return Label; } in getLabel()
2663 void setLabel(LabelDecl *D) { Label = D; } in setLabel()
2716 LabelDecl *getConstantTarget();
[all …]
H A DTextNodeDumper.h331 void VisitLabelDecl(const LabelDecl *D);
H A DDecl.h496 class LabelDecl : public NamedDecl {
506 LabelDecl(DeclContext *DC, SourceLocation IdentL, IdentifierInfo *II, in LabelDecl() function
513 static LabelDecl *Create(ASTContext &C, DeclContext *DC,
515 static LabelDecl *Create(ASTContext &C, DeclContext *DC,
518 static LabelDecl *CreateDeserialized(ASTContext &C, unsigned ID);
H A DExpr.h4313 LabelDecl *Label;
4315 AddrLabelExpr(SourceLocation AALoc, SourceLocation LLoc, LabelDecl *L, in AddrLabelExpr()
4334 LabelDecl *getLabel() const { return Label; } in getLabel()
4335 void setLabel(LabelDecl *L) { Label = L; } in setLabel()
/openbsd-src/gnu/llvm/clang/lib/AST/
H A DDecl.cpp5017 void LabelDecl::anchor() {} in anchor()
5019 LabelDecl *LabelDecl::Create(ASTContext &C, DeclContext *DC, in Create()
5021 return new (C, DC) LabelDecl(DC, IdentL, II, nullptr, IdentL); in Create()
5024 LabelDecl *LabelDecl::Create(ASTContext &C, DeclContext *DC, in Create()
5028 return new (C, DC) LabelDecl(DC, IdentL, II, nullptr, GnuLabelL); in Create()
5031 LabelDecl *LabelDecl::CreateDeserialized(ASTContext &C, unsigned ID) { in CreateDeserialized()
5032 return new (C, ID) LabelDecl(nullptr, SourceLocation(), nullptr, nullptr, in CreateDeserialized()
5036 void LabelDecl::setMSAsmLabel(StringRef Name) { in setMSAsmLabel()
H A DDeclPrinter.cpp72 void VisitLabelDecl(LabelDecl *D);
851 void DeclPrinter::VisitLabelDecl(LabelDecl *D) { in VisitLabelDecl()
H A DStmt.cpp1181 LabelDecl *IndirectGotoStmt::getConstantTarget() { in getConstantTarget()
H A DTextNodeDumper.cpp1633 void TextNodeDumper::VisitLabelDecl(const LabelDecl *D) { dumpName(D); } in VisitLabelDecl()
/openbsd-src/gnu/llvm/clang/lib/Parse/
H A DParseStmtAsm.cpp132 LabelDecl *Label = in LookupInlineAsmLabel()
844 LabelDecl *LD = Actions.LookupOrCreateLabel(Tok.getIdentifierInfo(), in ParseAsmStatement()
H A DParseStmt.cpp746 LabelDecl *LD = Actions.LookupOrCreateLabel(IdentTok.getIdentifierInfo(), in ParseLabeledStatement()
2307 LabelDecl *LD = Actions.LookupOrCreateLabel(Tok.getIdentifierInfo(), in ParseGotoStatement()
/openbsd-src/gnu/llvm/clang/lib/CodeGen/
H A DCodeGenFunction.h62 class LabelDecl; variable
934 SmallVector<const LabelDecl*, 4> Labels;
949 void addLabel(const LabelDecl *label) {
1425 llvm::DenseMap<const LabelDecl*, JumpDest> LabelMap;
2437 JumpDest getJumpDestForLabel(const LabelDecl *S);
2741 llvm::BlockAddress *GetAddrOfLabel(const LabelDecl *L);
3236 void EmitLabel(const LabelDecl *D); // helper for EmitLabelStmt.
H A DCGStmt.cpp618 CodeGenFunction::getJumpDestForLabel(const LabelDecl *D) { in getJumpDestForLabel()
629 void CodeGenFunction::EmitLabel(const LabelDecl *D) { in EmitLabel()
672 for (SmallVectorImpl<const LabelDecl*>::const_iterator in rescopeLabels()
743 if (const LabelDecl *Target = S.getConstantTarget()) { in EmitIndirectGotoStmt()
H A DCGDebugInfo.h480 void EmitLabel(const LabelDecl *D, CGBuilderTy &Builder);
/openbsd-src/gnu/llvm/clang/lib/ASTMatchers/
H A DASTMatchersInternal.cpp741 const internal::VariadicDynCastAllOfMatcher<Decl, LabelDecl> labelDecl;
/openbsd-src/gnu/llvm/clang/lib/Serialization/
H A DASTReaderDecl.cpp323 void VisitLabelDecl(LabelDecl *LD);
1754 void ASTDeclReader::VisitLabelDecl(LabelDecl *D) { in VisitLabelDecl()
3687 D = LabelDecl::CreateDeserialized(Context, ID); in ReadDeclRecord()
H A DASTReaderStmt.cpp194 auto *LD = readDeclAs<LabelDecl>(); in VisitLabelStmt()
312 S->setLabel(readDeclAs<LabelDecl>()); in VisitGotoStmt()
1302 E->setLabel(readDeclAs<LabelDecl>()); in VisitAddrLabelExpr()
H A DASTWriterDecl.cpp63 void VisitLabelDecl(LabelDecl *LD);
1257 void ASTDeclWriter::VisitLabelDecl(LabelDecl *D) { in VisitLabelDecl()
/openbsd-src/gnu/llvm/clang/lib/Analysis/
H A DCFG.cpp498 using LabelMapTy = llvm::DenseMap<LabelDecl *, JumpTarget>;
507 using LabelSetTy = llvm::SmallSetVector<LabelDecl *, 8>;
2905 if (isa<LabelDecl>(*DS->decl_begin())) in VisitDeclStmt()
/openbsd-src/gnu/llvm/clang/tools/libclang/
H A DCIndex.cpp2013 LabelRefVisit(LabelDecl *LD, SourceLocation labelLoc, CXCursor parent) in LabelRefVisit()
2020 const LabelDecl *get() const { in get()
2021 return static_cast<const LabelDecl *>(data[0]); in get()
3380 const LabelDecl *LS = cast<LabelRefVisit>(&LI)->get(); in RunVisitorWorkList()
6586 if (LabelDecl *label = Goto->getLabel()) in clang_getCursorReferenced()

12