Home
last modified time | relevance | path

Searched refs:Stmts (Results 1 – 25 of 34) sorted by relevance

12

/llvm-project-15.0.7/clang/lib/AST/
H A DStmtObjC.cpp36 Stmt **Stmts = getStmts(); in ObjCAtTryStmt() local
37 Stmts[0] = atTryStmt; in ObjCAtTryStmt()
39 Stmts[I + 1] = CatchStmts[I]; in ObjCAtTryStmt()
42 Stmts[NumCatchStmts + 1] = atFinallyStmt; in ObjCAtTryStmt()
H A DStmtCXX.cpp42 Stmt **Stmts = getStmts(); in CXXTryStmt() local
43 Stmts[0] = tryBlock; in CXXTryStmt()
44 std::copy(handlers.begin(), handlers.end(), Stmts + 1); in CXXTryStmt()
H A DStmt.cpp364 CompoundStmt::CompoundStmt(ArrayRef<Stmt *> Stmts, FPOptionsOverride FPFeatures, in CompoundStmt() argument
367 CompoundStmtBits.NumStmts = Stmts.size(); in CompoundStmt()
369 setStmts(Stmts); in CompoundStmt()
374 void CompoundStmt::setStmts(ArrayRef<Stmt *> Stmts) { in setStmts() argument
375 assert(CompoundStmtBits.NumStmts == Stmts.size() && in setStmts()
378 std::copy(Stmts.begin(), Stmts.end(), body_begin()); in setStmts()
381 CompoundStmt *CompoundStmt::Create(const ASTContext &C, ArrayRef<Stmt *> Stmts, in Create() argument
386 Stmts.size(), FPFeatures.requiresTrailingStorage()), in Create()
388 return new (Mem) CompoundStmt(Stmts, FPFeatures, LB, RB); in Create()
/llvm-project-15.0.7/clang/unittests/Analysis/FlowSensitive/
H A DTestingSupport.cpp66 std::map<unsigned, const Stmt *> Stmts; in buildStatementToAnnotationMapping() local
73 Stmts[Offset] = S; in buildStatementToAnnotationMapping()
81 for (auto OffsetAndStmt = Stmts.rbegin(); OffsetAndStmt != Stmts.rend(); in buildStatementToAnnotationMapping()
/llvm-project-15.0.7/clang/lib/Parse/
H A DParseStmt.cpp40 StmtVector Stmts; in ParseStatement() local
166 StmtVector &Stmts, ParsedStmtContext StmtCtx, in ParseStatementOrDeclarationAfterAttributes() argument
337 ParseMicrosoftIfExistsStatement(Stmts); in ParseStatementOrDeclarationAfterAttributes()
705 StmtVector Stmts; in ParseLabeledStatement() local
1053 Stmts.push_back(R.get()); in ConsumeNullStmt()
1109 StmtVector Stmts; in ParseCompoundStatementBody() local
1138 Stmts.push_back(R.get()); in ParseCompoundStatementBody()
1152 if (ConsumeNullStmt(Stmts)) in ParseCompoundStatementBody()
1200 Stmts.push_back(R.get()); in ParseCompoundStatementBody()
2686 Stmts.push_back(DepResult.get()); in ParseMicrosoftIfExistsStatement()
[all …]
/llvm-project-15.0.7/clang/utils/TableGen/
H A DClangASTNodesEmitter.cpp148 const std::vector<Record*> Stmts in deriveChildTree() local
151 for (unsigned i = 0, e = Stmts.size(); i != e; ++i) { in deriveChildTree()
152 Record *R = Stmts[i]; in deriveChildTree()
/llvm-project-15.0.7/clang/lib/Analysis/
H A DBodyFarm.cpp136 CompoundStmt *ASTMaker::makeCompound(ArrayRef<Stmt *> Stmts) { in makeCompound() argument
137 return CompoundStmt::Create(C, Stmts, FPOptionsOverride(), SourceLocation(), in makeCompound()
565 Stmt *Stmts[] = { B, CE }; in create_dispatch_once() local
566 CompoundStmt *CS = M.makeCompound(Stmts); in create_dispatch_once()
667 Stmt *Stmts[2]; in create_OSAtomicCompareAndSwap() local
668 Stmts[0] = in create_OSAtomicCompareAndSwap()
679 Stmts[1] = M.makeReturn(RetVal); in create_OSAtomicCompareAndSwap()
680 CompoundStmt *Body = M.makeCompound(Stmts); in create_OSAtomicCompareAndSwap()
H A DCFG.cpp5595 SmallVector<const Stmt *, 3> Stmts; in print_construction_context() local
5608 Stmts.push_back(CICC->getCXXBindTemporaryExpr()); in print_construction_context()
5613 Stmts.push_back(SDSCC->getDeclStmt()); in print_construction_context()
5618 Stmts.push_back(CDSCC->getDeclStmt()); in print_construction_context()
5624 Stmts.push_back(NECC->getCXXNewExpr()); in print_construction_context()
5629 Stmts.push_back(RSCC->getReturnStmt()); in print_construction_context()
5635 Stmts.push_back(RSCC->getReturnStmt()); in print_construction_context()
5636 Stmts.push_back(RSCC->getCXXBindTemporaryExpr()); in print_construction_context()
5641 Stmts.push_back(TOCC->getCXXBindTemporaryExpr()); in print_construction_context()
5647 Stmts.push_back(TOCC->getCXXBindTemporaryExpr()); in print_construction_context()
[all …]
/llvm-project-15.0.7/polly/include/polly/
H A DScopInfo.h1693 StmtSet Stmts; variable
2046 bool isEmpty() const { return Stmts.empty(); } in isEmpty()
2350 size_t getSize() const { return Stmts.size(); } in getSize()
2359 iterator begin() { return Stmts.begin(); } in begin()
2360 iterator end() { return Stmts.end(); } in end()
2361 const_iterator begin() const { return Stmts.begin(); } in begin()
2362 const_iterator end() const { return Stmts.end(); } in end()
2367 reverse_iterator rbegin() { return Stmts.rbegin(); } in rbegin()
2368 reverse_iterator rend() { return Stmts.rend(); } in rend()
2369 const_reverse_iterator rbegin() const { return Stmts.rbegin(); } in rbegin()
[all …]
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DUseAfterMoveCheck.cpp80 llvm::SmallPtrSetImpl<const Stmt *> *Stmts,
297 llvm::SmallPtrSetImpl<const Stmt *> *Stmts, in getReinits() argument
355 Stmts->clear(); in getReinits()
369 Stmts->insert(TheStmt); in getReinits()
/llvm-project-15.0.7/clang/include/clang/Sema/
H A DScopeInfo.h93 llvm::TinyPtrVector<const Stmt*> Stmts; variable
96 ArrayRef<const Stmt *> Stmts) in PossiblyUnreachableDiag() argument
97 : PD(PD), Loc(Loc), Stmts(Stmts) {} in PossiblyUnreachableDiag()
/llvm-project-15.0.7/polly/test/Simplify/
H A Demptyaccessdomain.ll34 ; CHECK: Stmts removed: 1
H A Dredundant.ll38 ; CHECK: Stmts removed: 1
H A Ddead_access_phi.ll47 ; CHECK: Stmts removed: 1
H A Ddead_access_value.ll49 ; CHECK: Stmts removed: 1
H A Dpr33323.ll40 ; CHECK: Stmts removed: 1
/llvm-project-15.0.7/clang/include/clang/AST/
H A DStmtDataCollectors.td113 //--- C++ OOP Stmts ------------------------------------------------------//
184 //--- Miscellaneous Stmts ------------------------------------------------//
/llvm-project-15.0.7/llvm/tools/llvm-rc/
H A DResourceScriptStmt.h288 OptStatementsRCResource(OptionalStmtList &&Stmts,
291 OptStatements(std::make_unique<OptionalStmtList>(std::move(Stmts))) {} in RCResource()
753 std::vector<std::unique_ptr<VersionInfoStmt>> Stmts;
758 Stmts.push_back(std::move(Stmt)); in addStmt()
H A DResourceScriptStmt.cpp177 for (auto &Stmt : Stmts) in log()
/llvm-project-15.0.7/clang/lib/Frontend/Rewrite/
H A DRewriteObjC.cpp115 SmallVector<Stmt *, 32> Stmts; member in __anon0b56e30a0111::RewriteObjC
1418 if (Stmts.empty() || !isa<ObjCForCollectionStmt>(Stmts.back())) in RewriteBreakStmt()
1435 if (Stmts.empty() || !isa<ObjCForCollectionStmt>(Stmts.back())) in RewriteContinueStmt()
1483 assert(isa<ObjCForCollectionStmt>(Stmts.back()) && in RewriteObjCForCollectionStmt()
1639 Stmts.pop_back(); in RewriteObjCForCollectionStmt()
4545 dyn_cast<ObjCForCollectionStmt>(Stmts.back())) in IsDeclStmtInForeachHeader()
4557 Stmts.push_back(S); in RewriteFunctionBodyOrGlobalInitializer()
4559 Stmts.push_back(S); in RewriteFunctionBodyOrGlobalInitializer()
4724 assert ((isa<SwitchStmt>(Stmts.back()) || isa<WhileStmt>(Stmts.back()) || in RewriteFunctionBodyOrGlobalInitializer()
4725 isa<DoStmt>(Stmts.back()) || isa<ForStmt>(Stmts.back())) in RewriteFunctionBodyOrGlobalInitializer()
[all …]
H A DRewriteModernObjC.cpp125 SmallVector<Stmt *, 32> Stmts; member in __anon21803b4f0111::RewriteModernObjC
1610 if (Stmts.empty() || !isa<ObjCForCollectionStmt>(Stmts.back())) in RewriteBreakStmt()
1640 if (Stmts.empty() || !isa<ObjCForCollectionStmt>(Stmts.back())) in RewriteContinueStmt()
1688 assert(isa<ObjCForCollectionStmt>(Stmts.back()) && in RewriteObjCForCollectionStmt()
1847 Stmts.pop_back(); in RewriteObjCForCollectionStmt()
5420 dyn_cast<ObjCForCollectionStmt>(Stmts.back())) in IsDeclStmtInForeachHeader()
5432 Stmts.push_back(S); in RewriteFunctionBodyOrGlobalInitializer()
5434 Stmts.push_back(S); in RewriteFunctionBodyOrGlobalInitializer()
5621 assert ((isa<SwitchStmt>(Stmts.back()) || isa<WhileStmt>(Stmts.back()) || in RewriteFunctionBodyOrGlobalInitializer()
5622 isa<DoStmt>(Stmts.back()) || isa<ForStmt>(Stmts.back())) in RewriteFunctionBodyOrGlobalInitializer()
[all …]
/llvm-project-15.0.7/polly/lib/Analysis/
H A DScopInfo.cpp1658 for (auto StmtIt = Stmts.begin(), StmtEnd = Stmts.end(); StmtIt != StmtEnd;) { in removeStmts()
1672 StmtIt = Stmts.erase(StmtIt); in removeStmts()
1874 if (Stmts.empty()) in hasFeasibleRuntimeContext()
2298 Stmts.emplace_back(*this, *BB, Name, SurroundingLoop, Instructions); in addScopStmt()
2299 auto *Stmt = &Stmts.back(); in addScopStmt()
2311 Stmts.emplace_back(*this, *R, Name, SurroundingLoop, Instructions); in addScopStmt()
2312 auto *Stmt = &Stmts.back(); in addScopStmt()
2342 Stmts.emplace_back(*this, SourceRel, TargetRel, Domain); in addScopStmt()
2344 return &(Stmts.back()); in addScopStmt()
/llvm-project-15.0.7/clang/include/clang/Parse/
H A DParser.h2077 StmtVector &Stmts, ParsedStmtContext StmtCtx,
2080 StmtVector &Stmts, ParsedStmtContext StmtCtx,
2094 bool ConsumeNullStmt(StmtVector &Stmts);
2112 StmtResult ParsePragmaLoopHint(StmtVector &Stmts, ParsedStmtContext StmtCtx,
2149 void ParseMicrosoftIfExistsStatement(StmtVector &Stmts);
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaDeclCXX.cpp8079 llvm::SmallVector<Stmt*, 16> Stmts; member
8085 Stmts.push_back(S.get()); in add()
8114 StmtListResult Stmts = visit(); in build() local
8115 if (Stmts.IsInvalid) in build()
8132 auto OldStmts = std::move(Stmts.Stmts); in build()
8133 Stmts.Stmts.clear(); in build()
8139 if (RetVal.isUnset() && Stmts.Stmts.empty()) in build()
8167 std::reverse(Stmts.Stmts.begin(), Stmts.Stmts.end()); in build()
8194 RetVal = cast<Expr>(Stmts.Stmts.pop_back_val()); in build()
8204 Stmts.Stmts.push_back(ReturnStmt.get()); in build()
[all …]
/llvm-project-15.0.7/clang/lib/Serialization/
H A DASTReaderStmt.cpp153 SmallVector<Stmt *, 16> Stmts; in VisitCompoundStmt() local
158 Stmts.push_back(Record.readSubStmt()); in VisitCompoundStmt()
159 S->setStmts(Stmts); in VisitCompoundStmt()
1356 Stmt **Stmts = E->getTrailingObjects<Stmt *>(); in VisitGenericSelectionExpr() local
1361 Stmts[I] = Record.readSubExpr(); in VisitGenericSelectionExpr()

12