Lines Matching refs:Stmt
52 } StmtClassInfo[Stmt::lastStmtConstant+1];
54 static StmtClassNameTable &getStmtInfoTableEntry(Stmt::StmtClass E) { in getStmtInfoTableEntry()
63 StmtClassInfo[(unsigned)Stmt::CLASS##Class].Name = #CLASS; \ in getStmtInfoTableEntry()
64 StmtClassInfo[(unsigned)Stmt::CLASS##Class].Size = sizeof(CLASS); in getStmtInfoTableEntry()
70 void *Stmt::operator new(size_t bytes, const ASTContext& C, in operator new()
75 const char *Stmt::getStmtClassName() const { in getStmtClassName()
87 void Stmt::PrintStats() { in PrintStats()
89 getStmtInfoTableEntry(Stmt::NullStmtClass); in PrintStats()
93 for (int i = 0; i != Stmt::lastStmtConstant+1; i++) { in PrintStats()
99 for (int i = 0; i != Stmt::lastStmtConstant+1; i++) { in PrintStats()
112 void Stmt::addStmtClass(StmtClass s) { in addStmtClass()
116 bool Stmt::StatisticsEnabled = false;
117 void Stmt::EnableStatistics() { in EnableStatistics()
121 Stmt *Stmt::IgnoreImplicit() { in IgnoreImplicit()
122 Stmt *s = this; in IgnoreImplicit()
124 Stmt *lasts = nullptr; in IgnoreImplicit()
147 Stmt *Stmt::IgnoreContainers(bool IgnoreCaptured) { in IgnoreContainers()
148 Stmt *S = this; in IgnoreContainers()
169 const Stmt *Stmt::stripLabelLikeStatements() const { in stripLabelLikeStatements()
170 const Stmt *S = this; in stripLabelLikeStatements()
193 typedef Stmt::child_range children_t();
198 static bad implements_children(children_t Stmt::*) { in implements_children() argument
207 static bad implements_getBeginLoc(getBeginLoc_t Stmt::*) { return bad(); } in implements_getBeginLoc() argument
214 static bad implements_getEndLoc(getLocEnd_t Stmt::*) { return bad(); } in implements_getEndLoc() argument
237 Stmt::child_range Stmt::children() { in children()
239 case Stmt::NoStmtClass: llvm_unreachable("statement without class"); in children()
242 case Stmt::type##Class: \ in children()
258 SourceRange getSourceRangeImpl(const Stmt *stmt, in getSourceRangeImpl()
268 SourceRange getSourceRangeImpl(const Stmt *stmt, in getSourceRangeImpl()
269 SourceRange (Stmt::*v)() const) { in getSourceRangeImpl()
276 SourceRange Stmt::getSourceRange() const { in getSourceRange()
278 case Stmt::NoStmtClass: llvm_unreachable("statement without class"); in getSourceRange()
281 case Stmt::type##Class: \ in getSourceRange()
288 SourceLocation Stmt::getBeginLoc() const { in getBeginLoc()
291 case Stmt::NoStmtClass: llvm_unreachable("statement without class"); in getBeginLoc()
294 case Stmt::type##Class: \ in getBeginLoc()
301 SourceLocation Stmt::getEndLoc() const { in getEndLoc()
303 case Stmt::NoStmtClass: llvm_unreachable("statement without class"); in getEndLoc()
306 case Stmt::type##Class: \ in getEndLoc()
313 int64_t Stmt::getID(const ASTContext &Context) const { in getID()
314 return Context.getAllocator().identifyKnownAlignedObject<Stmt>(this); in getID()
317 CompoundStmt::CompoundStmt(ArrayRef<Stmt *> Stmts, SourceLocation LB, in CompoundStmt()
319 : Stmt(CompoundStmtClass), RBraceLoc(RB) { in CompoundStmt()
325 void CompoundStmt::setStmts(ArrayRef<Stmt *> Stmts) { in setStmts()
332 CompoundStmt *CompoundStmt::Create(const ASTContext &C, ArrayRef<Stmt *> Stmts, in Create()
335 C.Allocate(totalSizeToAlloc<Stmt *>(Stmts.size()), alignof(CompoundStmt)); in Create()
342 C.Allocate(totalSizeToAlloc<Stmt *>(NumStmts), alignof(CompoundStmt)); in CreateEmpty()
354 Stmt *SubStmt) { in Create()
464 Stmt **Exprs, in setOutputsAndInputsAndClobbers()
480 this->Exprs = new (C) Stmt*[NumExprs]; in setOutputsAndInputsAndClobbers()
747 Exprs = new (C) Stmt*[NumExprs]; in GCCAsmStmt()
787 Exprs = new (C) Stmt*[exprs.size()]; in initialize()
808 Stmt *Init, VarDecl *Var, Expr *Cond, Stmt *Then, in IfStmt()
809 SourceLocation EL, Stmt *Else) in IfStmt()
810 : Stmt(IfStmtClass) { in IfStmt()
835 : Stmt(IfStmtClass, Empty) { in IfStmt()
842 bool IsConstexpr, Stmt *Init, VarDecl *Var, Expr *Cond, in Create()
843 Stmt *Then, SourceLocation EL, Stmt *Else) { in Create()
848 totalSizeToAlloc<Stmt *, SourceLocation>( in Create()
858 totalSizeToAlloc<Stmt *, SourceLocation>( in CreateEmpty()
876 getTrailingObjects<Stmt *>()[varOffset()] = nullptr; in setConditionVariable()
881 getTrailingObjects<Stmt *>()[varOffset()] = new (Ctx) in setConditionVariable()
889 ForStmt::ForStmt(const ASTContext &C, Stmt *Init, Expr *Cond, VarDecl *condVar, in ForStmt()
890 Expr *Inc, Stmt *Body, SourceLocation FL, SourceLocation LP, in ForStmt()
892 : Stmt(ForStmtClass), LParenLoc(LP), RParenLoc(RP) in ForStmt()
921 SwitchStmt::SwitchStmt(const ASTContext &Ctx, Stmt *Init, VarDecl *Var, in SwitchStmt()
923 : Stmt(SwitchStmtClass), FirstCase(nullptr) { in SwitchStmt()
941 : Stmt(SwitchStmtClass, Empty) { in SwitchStmt()
947 SwitchStmt *SwitchStmt::Create(const ASTContext &Ctx, Stmt *Init, VarDecl *Var, in Create()
952 totalSizeToAlloc<Stmt *>(NumMandatoryStmtPtr + HasInit + HasVar), in Create()
960 totalSizeToAlloc<Stmt *>(NumMandatoryStmtPtr + HasInit + HasVar), in CreateEmpty()
977 getTrailingObjects<Stmt *>()[varOffset()] = nullptr; in setConditionVariable()
982 getTrailingObjects<Stmt *>()[varOffset()] = new (Ctx) in setConditionVariable()
987 Stmt *Body, SourceLocation WL) in WhileStmt()
988 : Stmt(WhileStmtClass) { in WhileStmt()
1001 : Stmt(WhileStmtClass, Empty) { in WhileStmt()
1006 Stmt *Body, SourceLocation WL) { in Create()
1009 Ctx.Allocate(totalSizeToAlloc<Stmt *>(NumMandatoryStmtPtr + HasVar), in Create()
1016 Ctx.Allocate(totalSizeToAlloc<Stmt *>(NumMandatoryStmtPtr + HasVar), in CreateEmpty()
1033 getTrailingObjects<Stmt *>()[varOffset()] = nullptr; in setConditionVariable()
1038 getTrailingObjects<Stmt *>()[varOffset()] = new (Ctx) in setConditionVariable()
1051 : Stmt(ReturnStmtClass), RetExpr(E) { in ReturnStmt()
1060 : Stmt(ReturnStmtClass, Empty) { in ReturnStmt()
1085 totalSizeToAlloc<Stmt *, SourceLocation>( in Create()
1094 totalSizeToAlloc<Stmt *, SourceLocation>( in CreateEmpty()
1100 SEHTryStmt::SEHTryStmt(bool IsCXXTry, SourceLocation TryLoc, Stmt *TryBlock, in SEHTryStmt()
1101 Stmt *Handler) in SEHTryStmt()
1102 : Stmt(SEHTryStmtClass), IsCXXTry(IsCXXTry), TryLoc(TryLoc) { in SEHTryStmt()
1108 SourceLocation TryLoc, Stmt *TryBlock, in Create()
1109 Stmt *Handler) { in Create()
1121 SEHExceptStmt::SEHExceptStmt(SourceLocation Loc, Expr *FilterExpr, Stmt *Block) in SEHExceptStmt()
1122 : Stmt(SEHExceptStmtClass), Loc(Loc) { in SEHExceptStmt()
1128 Expr *FilterExpr, Stmt *Block) { in Create()
1132 SEHFinallyStmt::SEHFinallyStmt(SourceLocation Loc, Stmt *Block) in SEHFinallyStmt()
1133 : Stmt(SEHFinallyStmtClass), Loc(Loc), Block(Block) {} in SEHFinallyStmt()
1136 Stmt *Block) { in Create()
1179 unsigned Size = sizeof(CapturedStmt) + sizeof(Stmt *) * (NumCaptures + 1); in getStoredCaptures()
1189 CapturedStmt::CapturedStmt(Stmt *S, CapturedRegionKind Kind, in CapturedStmt()
1194 : Stmt(CapturedStmtClass), NumCaptures(Captures.size()), in CapturedStmt()
1201 Stmt **Stored = getStoredStmts(); in CapturedStmt()
1214 : Stmt(CapturedStmtClass, Empty), NumCaptures(NumCaptures), in CapturedStmt()
1219 CapturedStmt *CapturedStmt::Create(const ASTContext &Context, Stmt *S, in Create()
1236 unsigned Size = sizeof(CapturedStmt) + sizeof(Stmt *) * (Captures.size() + 1); in Create()
1249 unsigned Size = sizeof(CapturedStmt) + sizeof(Stmt *) * (NumCaptures + 1); in CreateDeserialized()
1260 Stmt::child_range CapturedStmt::children() { in children()