Index: include/clang/AST/Stmt.h =================================================================== --- include/clang/AST/Stmt.h +++ include/clang/AST/Stmt.h @@ -91,12 +91,15 @@ //===--- Statement bitfields classes ---===// class StmtBitfields { + friend class ASTStmtReader; + friend class ASTStmtWriter; friend class Stmt; /// The statement class. unsigned sClass : 8; + unsigned IsOMPStructuredBlock : 1; }; - enum { NumStmtBits = 8 }; + enum { NumStmtBits = 9 }; class NullStmtBitfields { friend class ASTStmtReader; @@ -1026,6 +1029,7 @@ static_assert(sizeof(*this) % alignof(void *) == 0, "Insufficient alignment!"); StmtBits.sClass = SC; + StmtBits.IsOMPStructuredBlock = false; if (StatisticsEnabled) Stmt::addStmtClass(SC); } @@ -1035,6 +1039,11 @@ const char *getStmtClassName() const; + bool isOMPStructuredBlock() const { return StmtBits.IsOMPStructuredBlock; } + void setIsOMPStructuredBlock(bool IsOMPStructuredBlock) { + StmtBits.IsOMPStructuredBlock = IsOMPStructuredBlock; + } + /// SourceLocation tokens are not useful in isolation - they are low level /// value objects created/interpreted by SourceManager. We assume AST /// clients will have a pointer to the respective SourceManager. Index: include/clang/AST/StmtOpenMP.h =================================================================== --- include/clang/AST/StmtOpenMP.h +++ include/clang/AST/StmtOpenMP.h @@ -261,6 +261,17 @@ ArrayRef clauses() const { return const_cast(this)->getClauses(); } + + /// Returns whether or not this is a Standalone directive. + /// + /// Stand-alone directives are executable directives + /// that have no associated user code. + bool isStandaloneDirective() const; + + /// Returns the AST node representing OpenMP structured-block of this + /// OpenMP executable directive, + /// Prerequisite: Executable Directive must not be Standalone directive. + Stmt *getStructuredBlock() const; }; /// This represents '#pragma omp parallel' directive. Index: include/clang/AST/TextNodeDumper.h =================================================================== --- include/clang/AST/TextNodeDumper.h +++ include/clang/AST/TextNodeDumper.h @@ -307,6 +307,7 @@ void VisitImportDecl(const ImportDecl *D); void VisitPragmaCommentDecl(const PragmaCommentDecl *D); void VisitPragmaDetectMismatchDecl(const PragmaDetectMismatchDecl *D); + void VisitOMPExecutableDirective(const OMPExecutableDirective *D); void VisitOMPDeclareReductionDecl(const OMPDeclareReductionDecl *D); void VisitOMPRequiresDecl(const OMPRequiresDecl *D); void VisitOMPCapturedExprDecl(const OMPCapturedExprDecl *D); Index: lib/AST/StmtOpenMP.cpp =================================================================== --- lib/AST/StmtOpenMP.cpp +++ lib/AST/StmtOpenMP.cpp @@ -22,6 +22,25 @@ std::copy(Clauses.begin(), Clauses.end(), getClauses().begin()); } +bool OMPExecutableDirective::isStandaloneDirective() const { + // Special case: 'omp target enter data', 'omp target exit data', + // 'omp target update' are stand-alone directives, but for implementation + // reasons they have empty synthetic structured block, to simplify codegen. + if (isa(this) || + isa(this) || + isa(this)) + return true; + return !hasAssociatedStmt() || !getAssociatedStmt(); +} + +Stmt *OMPExecutableDirective::getStructuredBlock() const { + assert(!isStandaloneDirective() && + "Standalone Executable Directives don't have Structured Blocks."); + if (auto *LD = dyn_cast(this)) + return const_cast(LD->getBody()); + return const_cast(getInnermostCapturedStmt()->getCapturedStmt()); +} + void OMPLoopDirective::setCounters(ArrayRef A) { assert(A.size() == getCollapsedNumber() && "Number of loop counters is not the same as the collapsed number"); Index: lib/AST/TextNodeDumper.cpp =================================================================== --- lib/AST/TextNodeDumper.cpp +++ lib/AST/TextNodeDumper.cpp @@ -121,6 +121,9 @@ dumpPointer(Node); dumpSourceRange(Node->getSourceRange()); + if (Node->isOMPStructuredBlock()) + OS << " openmp_structured_block"; + if (const auto *E = dyn_cast(Node)) { dumpType(E->getType()); @@ -1414,6 +1417,12 @@ OS << " \"" << D->getName() << "\" \"" << D->getValue() << "\""; } +void TextNodeDumper::VisitOMPExecutableDirective( + const OMPExecutableDirective *D) { + if (D->isStandaloneDirective()) + OS << " openmp_standalone_directive"; +} + void TextNodeDumper::VisitOMPDeclareReductionDecl( const OMPDeclareReductionDecl *D) { dumpName(D); Index: lib/Sema/SemaOpenMP.cpp =================================================================== --- lib/Sema/SemaOpenMP.cpp +++ lib/Sema/SemaOpenMP.cpp @@ -3817,6 +3817,8 @@ llvm_unreachable("Unknown OpenMP directive"); } + ErrorFound = Res.isInvalid() || ErrorFound; + for (const auto &P : VarsWithInheritedDSA) { Diag(P.second->getExprLoc(), diag::err_omp_no_dsa_for_variable) << P.first << P.second->getSourceRange(); @@ -3829,6 +3831,13 @@ if (ErrorFound) return StmtError(); + + if (!(Res.getAs()->isStandaloneDirective())) { + Res.getAs() + ->getStructuredBlock() + ->setIsOMPStructuredBlock(true); + } + return Res; } Index: lib/Serialization/ASTReaderStmt.cpp =================================================================== --- lib/Serialization/ASTReaderStmt.cpp +++ lib/Serialization/ASTReaderStmt.cpp @@ -111,7 +111,7 @@ /// The number of record fields required for the Stmt class /// itself. - static const unsigned NumStmtFields = 0; + static const unsigned NumStmtFields = 1; /// The number of record fields required for the Expr class /// itself. @@ -148,6 +148,7 @@ void ASTStmtReader::VisitStmt(Stmt *S) { assert(Record.getIdx() == 0 && "Incorrect statement field count"); + S->setIsOMPStructuredBlock(Record.readInt()); } void ASTStmtReader::VisitNullStmt(NullStmt *S) { Index: lib/Serialization/ASTWriterDecl.cpp =================================================================== --- lib/Serialization/ASTWriterDecl.cpp +++ lib/Serialization/ASTWriterDecl.cpp @@ -2179,7 +2179,8 @@ Abv = std::make_shared(); Abv->Add(BitCodeAbbrevOp(serialization::EXPR_DECL_REF)); //Stmt - //Expr + Abv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 1)); // IsOMPStructuredBlock + // Expr Abv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::VBR, 6)); // Type Abv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 1)); //TypeDependent Abv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 1)); //ValueDependent @@ -2202,7 +2203,8 @@ Abv = std::make_shared(); Abv->Add(BitCodeAbbrevOp(serialization::EXPR_INTEGER_LITERAL)); //Stmt - //Expr + Abv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 1)); // IsOMPStructuredBlock + // Expr Abv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::VBR, 6)); // Type Abv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 1)); //TypeDependent Abv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 1)); //ValueDependent @@ -2220,7 +2222,8 @@ Abv = std::make_shared(); Abv->Add(BitCodeAbbrevOp(serialization::EXPR_CHARACTER_LITERAL)); //Stmt - //Expr + Abv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 1)); // IsOMPStructuredBlock + // Expr Abv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::VBR, 6)); // Type Abv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 1)); //TypeDependent Abv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 1)); //ValueDependent @@ -2238,6 +2241,7 @@ Abv = std::make_shared(); Abv->Add(BitCodeAbbrevOp(serialization::EXPR_IMPLICIT_CAST)); // Stmt + Abv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 1)); // IsOMPStructuredBlock // Expr Abv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::VBR, 6)); // Type Abv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 1)); //TypeDependent Index: lib/Serialization/ASTWriterStmt.cpp =================================================================== --- lib/Serialization/ASTWriterStmt.cpp +++ lib/Serialization/ASTWriterStmt.cpp @@ -67,6 +67,7 @@ } void ASTStmtWriter::VisitStmt(Stmt *S) { + Record.push_back(S->StmtBits.IsOMPStructuredBlock); } void ASTStmtWriter::VisitNullStmt(NullStmt *S) { Index: test/AST/ast-dump-openmp-atomic.c =================================================================== --- test/AST/ast-dump-openmp-atomic.c +++ test/AST/ast-dump-openmp-atomic.c @@ -12,7 +12,7 @@ // CHECK-NEXT: `-OMPAtomicDirective {{.*}} // CHECK-NEXT: `-CapturedStmt {{.*}} // CHECK-NEXT: |-CapturedDecl {{.*}} <> -// CHECK-NEXT: | |-UnaryOperator {{.*}} 'int' prefix '++' +// CHECK-NEXT: | |-UnaryOperator {{.*}} openmp_structured_block 'int' prefix '++' // CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'i' 'int' // CHECK-NEXT: | `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-atomic.c:4:9) *const restrict' // CHECK-NEXT: `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'i' 'int' Index: test/AST/ast-dump-openmp-barrier.c =================================================================== --- test/AST/ast-dump-openmp-barrier.c +++ test/AST/ast-dump-openmp-barrier.c @@ -7,4 +7,4 @@ // CHECK: TranslationUnitDecl {{.*}} <> // CHECK: `-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-barrier.c:3:1, line:5:1> line:3:6 test 'void ()' // CHECK-NEXT: `-CompoundStmt {{.*}} -// CHECK-NEXT: `-OMPBarrierDirective {{.*}} +// CHECK-NEXT: `-OMPBarrierDirective {{.*}} openmp_standalone_directive Index: test/AST/ast-dump-openmp-cancel.c =================================================================== --- test/AST/ast-dump-openmp-cancel.c +++ test/AST/ast-dump-openmp-cancel.c @@ -13,8 +13,8 @@ // CHECK-NEXT: `-OMPParallelDirective {{.*}} // CHECK-NEXT: `-CapturedStmt {{.*}} // CHECK-NEXT: `-CapturedDecl {{.*}} <> nothrow -// CHECK-NEXT: |-CompoundStmt {{.*}} -// CHECK-NEXT: | `-OMPCancelDirective {{.*}} +// CHECK-NEXT: |-CompoundStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | `-OMPCancelDirective {{.*}} openmp_standalone_directive // CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-cancel.c:4:9) *const restrict' Index: test/AST/ast-dump-openmp-cancellation-point.c =================================================================== --- test/AST/ast-dump-openmp-cancellation-point.c +++ test/AST/ast-dump-openmp-cancellation-point.c @@ -13,8 +13,8 @@ // CHECK-NEXT: `-OMPParallelDirective {{.*}} // CHECK-NEXT: `-CapturedStmt {{.*}} // CHECK-NEXT: `-CapturedDecl {{.*}} <> nothrow -// CHECK-NEXT: |-CompoundStmt {{.*}} -// CHECK-NEXT: | `-OMPCancellationPointDirective {{.*}} +// CHECK-NEXT: |-CompoundStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | `-OMPCancellationPointDirective {{.*}} openmp_standalone_directive // CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-cancellation-point.c:4:9) *const restrict' Index: test/AST/ast-dump-openmp-critical.c =================================================================== --- test/AST/ast-dump-openmp-critical.c +++ test/AST/ast-dump-openmp-critical.c @@ -11,5 +11,5 @@ // CHECK-NEXT: `-OMPCriticalDirective {{.*}} // CHECK-NEXT: `-CapturedStmt {{.*}} // CHECK-NEXT: `-CapturedDecl {{.*}} <> -// CHECK-NEXT: |-NullStmt {{.*}} +// CHECK-NEXT: |-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-critical.c:4:9) *const restrict' Index: test/AST/ast-dump-openmp-distribute-parallel-for-simd.c =================================================================== --- test/AST/ast-dump-openmp-distribute-parallel-for-simd.c +++ test/AST/ast-dump-openmp-distribute-parallel-for-simd.c @@ -54,7 +54,7 @@ // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' @@ -82,7 +82,7 @@ // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -128,7 +128,7 @@ // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -186,7 +186,7 @@ // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' @@ -233,7 +233,7 @@ // CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | `-ForStmt {{.*}} +// CHECK-NEXT: | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit // CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 Index: test/AST/ast-dump-openmp-distribute-parallel-for.c =================================================================== --- test/AST/ast-dump-openmp-distribute-parallel-for.c +++ test/AST/ast-dump-openmp-distribute-parallel-for.c @@ -54,7 +54,7 @@ // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' @@ -82,7 +82,7 @@ // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -128,7 +128,7 @@ // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -186,7 +186,7 @@ // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' @@ -233,7 +233,7 @@ // CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | `-ForStmt {{.*}} +// CHECK-NEXT: | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit // CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 Index: test/AST/ast-dump-openmp-distribute-simd.c =================================================================== --- test/AST/ast-dump-openmp-distribute-simd.c +++ test/AST/ast-dump-openmp-distribute-simd.c @@ -54,7 +54,7 @@ // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-distribute-simd.c:4:9) *const restrict' // CHECK-NEXT: | | `-VarDecl {{.*}} col:12 used i 'int' cinit // CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 @@ -78,7 +78,7 @@ // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -120,7 +120,7 @@ // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -174,7 +174,7 @@ // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-distribute-simd.c:24:9) *const restrict' // CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit // CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -217,7 +217,7 @@ // CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | `-ForStmt {{.*}} +// CHECK-NEXT: | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit // CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 Index: test/AST/ast-dump-openmp-distribute.c =================================================================== --- test/AST/ast-dump-openmp-distribute.c +++ test/AST/ast-dump-openmp-distribute.c @@ -54,7 +54,7 @@ // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-distribute.c:4:9) *const restrict' // CHECK-NEXT: | | `-VarDecl {{.*}} col:12 used i 'int' cinit // CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 @@ -78,7 +78,7 @@ // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -120,7 +120,7 @@ // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -174,7 +174,7 @@ // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-distribute.c:24:9) *const restrict' // CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit // CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -217,7 +217,7 @@ // CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | `-ForStmt {{.*}} +// CHECK-NEXT: | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit // CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 Index: test/AST/ast-dump-openmp-flush.c =================================================================== --- test/AST/ast-dump-openmp-flush.c +++ test/AST/ast-dump-openmp-flush.c @@ -7,4 +7,4 @@ // CHECK: TranslationUnitDecl {{.*}} <> // CHECK: `-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-flush.c:3:1, line:5:1> line:3:6 test 'void ()' // CHECK-NEXT: `-CompoundStmt {{.*}} -// CHECK-NEXT: `-OMPFlushDirective {{.*}} +// CHECK-NEXT: `-OMPFlushDirective {{.*}} openmp_standalone_directive Index: test/AST/ast-dump-openmp-for-simd.c =================================================================== --- test/AST/ast-dump-openmp-for-simd.c +++ test/AST/ast-dump-openmp-for-simd.c @@ -54,7 +54,7 @@ // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-for-simd.c:4:9) *const restrict' // CHECK-NEXT: | | `-VarDecl {{.*}} col:12 used i 'int' cinit // CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 @@ -78,7 +78,7 @@ // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -120,7 +120,7 @@ // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -174,7 +174,7 @@ // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-for-simd.c:24:9) *const restrict' // CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit // CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -217,7 +217,7 @@ // CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | `-ForStmt {{.*}} +// CHECK-NEXT: | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit // CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 Index: test/AST/ast-dump-openmp-for.c =================================================================== --- test/AST/ast-dump-openmp-for.c +++ test/AST/ast-dump-openmp-for.c @@ -54,7 +54,7 @@ // CHECK-NEXT: | | | | `-DeclRefExpr 0x{{.*}} 'int' lvalue ParmVar 0x{{.*}} 'x' 'int' // CHECK-NEXT: | | | |-UnaryOperator 0x{{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | `-DeclRefExpr 0x{{.*}} 'int' lvalue Var 0x{{.*}} 'i' 'int' -// CHECK-NEXT: | | | `-NullStmt 0x{{.*}} +// CHECK-NEXT: | | | `-NullStmt 0x{{.*}} openmp_structured_block // CHECK-NEXT: | | |-ImplicitParamDecl 0x{{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-for.c:4:9) *const restrict' // CHECK-NEXT: | | `-VarDecl 0x{{.*}} col:12 used i 'int' cinit // CHECK-NEXT: | | `-IntegerLiteral 0x{{.*}} 'int' 0 @@ -78,7 +78,7 @@ // CHECK-NEXT: | | | | `-DeclRefExpr 0x{{.*}} 'int' lvalue ParmVar 0x{{.*}} 'x' 'int' // CHECK-NEXT: | | | |-UnaryOperator 0x{{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | `-DeclRefExpr 0x{{.*}} 'int' lvalue Var 0x{{.*}} 'i' 'int' -// CHECK-NEXT: | | | `-ForStmt 0x{{.*}} +// CHECK-NEXT: | | | `-ForStmt 0x{{.*}} openmp_structured_block // CHECK-NEXT: | | | |-DeclStmt 0x{{.*}} // CHECK-NEXT: | | | | `-VarDecl 0x{{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | `-IntegerLiteral 0x{{.*}} 'int' 0 @@ -120,7 +120,7 @@ // CHECK-NEXT: | | | | `-DeclRefExpr 0x{{.*}} 'int' lvalue ParmVar 0x{{.*}} 'x' 'int' // CHECK-NEXT: | | | |-UnaryOperator 0x{{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | `-DeclRefExpr 0x{{.*}} 'int' lvalue Var 0x{{.*}} 'i' 'int' -// CHECK-NEXT: | | | `-ForStmt 0x{{.*}} +// CHECK-NEXT: | | | `-ForStmt 0x{{.*}} openmp_structured_block // CHECK-NEXT: | | | |-DeclStmt 0x{{.*}} // CHECK-NEXT: | | | | `-VarDecl 0x{{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | `-IntegerLiteral 0x{{.*}} 'int' 0 @@ -174,7 +174,7 @@ // CHECK-NEXT: | | | | `-DeclRefExpr 0x{{.*}} 'int' lvalue ParmVar 0x{{.*}} 'y' 'int' // CHECK-NEXT: | | | |-UnaryOperator 0x{{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | `-DeclRefExpr 0x{{.*}} 'int' lvalue Var 0x{{.*}} 'i' 'int' -// CHECK-NEXT: | | | `-NullStmt 0x{{.*}} +// CHECK-NEXT: | | | `-NullStmt 0x{{.*}} openmp_structured_block // CHECK-NEXT: | | |-ImplicitParamDecl 0x{{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-for.c:24:9) *const restrict' // CHECK-NEXT: | | |-VarDecl 0x{{.*}} col:12 used i 'int' cinit // CHECK-NEXT: | | | `-IntegerLiteral 0x{{.*}} 'int' 0 @@ -217,7 +217,7 @@ // CHECK-NEXT: | | | `-DeclRefExpr 0x{{.*}} 'int' lvalue ParmVar 0x{{.*}} 'y' 'int' // CHECK-NEXT: | | |-UnaryOperator 0x{{.*}} 'int' postfix '++' // CHECK-NEXT: | | | `-DeclRefExpr 0x{{.*}} 'int' lvalue Var 0x{{.*}} 'i' 'int' -// CHECK-NEXT: | | `-ForStmt 0x{{.*}} +// CHECK-NEXT: | | `-ForStmt 0x{{.*}} openmp_structured_block // CHECK-NEXT: | | |-DeclStmt 0x{{.*}} // CHECK-NEXT: | | | `-VarDecl 0x{{.*}} col:16 used i 'int' cinit // CHECK-NEXT: | | | `-IntegerLiteral 0x{{.*}} 'int' 0 Index: test/AST/ast-dump-openmp-master.c =================================================================== --- test/AST/ast-dump-openmp-master.c +++ test/AST/ast-dump-openmp-master.c @@ -11,5 +11,5 @@ // CHECK-NEXT: `-OMPMasterDirective {{.*}} // CHECK-NEXT: `-CapturedStmt {{.*}} // CHECK-NEXT: `-CapturedDecl {{.*}} <> -// CHECK-NEXT: |-NullStmt {{.*}} +// CHECK-NEXT: |-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-master.c:4:9) *const restrict' Index: test/AST/ast-dump-openmp-ordered.c =================================================================== --- test/AST/ast-dump-openmp-ordered.c +++ test/AST/ast-dump-openmp-ordered.c @@ -24,7 +24,7 @@ // CHECK-NEXT: | `-OMPOrderedDirective {{.*}} // CHECK-NEXT: | `-CapturedStmt {{.*}} // CHECK-NEXT: | `-CapturedDecl {{.*}} <> -// CHECK-NEXT: | |-NullStmt {{.*}} +// CHECK-NEXT: | |-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-ordered.c:4:9) *const restrict' // CHECK-NEXT: |-FunctionDecl {{.*}} line:8:6 test_two 'void (int)' // CHECK-NEXT: | |-ParmVarDecl {{.*}} col:19 used x 'int' @@ -46,7 +46,7 @@ // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-ordered.c:9:9) *const restrict' // CHECK-NEXT: | | `-VarDecl {{.*}} col:12 used i 'int' cinit // CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 @@ -72,8 +72,8 @@ // CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | `-CompoundStmt {{.*}} -// CHECK-NEXT: | | `-OMPOrderedDirective {{.*}} +// CHECK-NEXT: | | `-CompoundStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | `-OMPOrderedDirective {{.*}} openmp_standalone_directive // CHECK-NEXT: | | |-OMPDependClause {{.*}} > // CHECK-NEXT: | | `-<<>> // CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-ordered.c:15:9) *const restrict' Index: test/AST/ast-dump-openmp-parallel-for-simd.c =================================================================== --- test/AST/ast-dump-openmp-parallel-for-simd.c +++ test/AST/ast-dump-openmp-parallel-for-simd.c @@ -54,7 +54,7 @@ // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-parallel-for-simd.c:4:9) *const restrict' @@ -80,7 +80,7 @@ // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -124,7 +124,7 @@ // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -180,7 +180,7 @@ // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-parallel-for-simd.c:24:9) *const restrict' @@ -225,7 +225,7 @@ // CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | `-ForStmt {{.*}} +// CHECK-NEXT: | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit // CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 Index: test/AST/ast-dump-openmp-parallel-for.c =================================================================== --- test/AST/ast-dump-openmp-parallel-for.c +++ test/AST/ast-dump-openmp-parallel-for.c @@ -54,7 +54,7 @@ // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-parallel-for.c:4:9) *const restrict' @@ -80,7 +80,7 @@ // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -124,7 +124,7 @@ // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -180,7 +180,7 @@ // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-parallel-for.c:24:9) *const restrict' @@ -225,7 +225,7 @@ // CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | `-ForStmt {{.*}} +// CHECK-NEXT: | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit // CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 Index: test/AST/ast-dump-openmp-parallel-master-XFAIL.c =================================================================== --- test/AST/ast-dump-openmp-parallel-master-XFAIL.c +++ test/AST/ast-dump-openmp-parallel-master-XFAIL.c @@ -18,7 +18,7 @@ // CHECK-NEXT: | `-OMPParallelDirective {{.*}} // CHECK-NEXT: | `-CapturedStmt {{.*}} // CHECK-NEXT: | `-CapturedDecl {{.*}} <> nothrow -// CHECK-NEXT: | |-NullStmt {{.*}} +// CHECK-NEXT: | |-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-parallel-master-XFAIL.c:4:9) *const restrict' @@ -27,7 +27,7 @@ // CHECK-NEXT: `-OMPParallelDirective {{.*}} // CHECK-NEXT: `-CapturedStmt {{.*}} // CHECK-NEXT: `-CapturedDecl {{.*}} <> nothrow -// CHECK-NEXT: |-CompoundStmt {{.*}} +// CHECK-NEXT: |-CompoundStmt {{.*}} openmp_structured_block // CHECK-NEXT: | `-NullStmt {{.*}} // CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' Index: test/AST/ast-dump-openmp-parallel-sections.c =================================================================== --- test/AST/ast-dump-openmp-parallel-sections.c +++ test/AST/ast-dump-openmp-parallel-sections.c @@ -18,7 +18,7 @@ // CHECK-NEXT: `-OMPParallelSectionsDirective {{.*}} // CHECK-NEXT: `-CapturedStmt {{.*}} // CHECK-NEXT: `-CapturedDecl {{.*}} <> -// CHECK-NEXT: |-CompoundStmt {{.*}} +// CHECK-NEXT: |-CompoundStmt {{.*}} openmp_structured_block // CHECK-NEXT: | `-NullStmt {{.*}} // CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' Index: test/AST/ast-dump-openmp-parallel.c =================================================================== --- test/AST/ast-dump-openmp-parallel.c +++ test/AST/ast-dump-openmp-parallel.c @@ -11,7 +11,7 @@ // CHECK-NEXT: `-OMPParallelDirective 0x{{.*}} // CHECK-NEXT: `-CapturedStmt 0x{{.*}} // CHECK-NEXT: `-CapturedDecl 0x{{.*}} <> nothrow -// CHECK-NEXT: |-NullStmt 0x{{.*}} +// CHECK-NEXT: |-NullStmt 0x{{.*}} openmp_structured_block // CHECK-NEXT: |-ImplicitParamDecl 0x{{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: |-ImplicitParamDecl 0x{{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: `-ImplicitParamDecl 0x{{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-parallel.c:4:9) *const restrict' Index: test/AST/ast-dump-openmp-section.c =================================================================== --- test/AST/ast-dump-openmp-section.c +++ test/AST/ast-dump-openmp-section.c @@ -14,15 +14,15 @@ // CHECK-NEXT: `-OMPSectionsDirective {{.*}} // CHECK-NEXT: `-CapturedStmt {{.*}} // CHECK-NEXT: `-CapturedDecl {{.*}} <> -// CHECK-NEXT: |-CompoundStmt {{.*}} +// CHECK-NEXT: |-CompoundStmt {{.*}} openmp_structured_block // CHECK-NEXT: | `-OMPSectionDirective {{.*}} // CHECK-NEXT: | `-CapturedStmt {{.*}} // CHECK-NEXT: | `-CapturedDecl {{.*}} <> -// CHECK-NEXT: | |-NullStmt {{.*}} +// CHECK-NEXT: | |-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-section.c:6:9) *const restrict' // CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-section.c:4:9) *const restrict' // CHECK-NEXT: |-RecordDecl {{.*}} col:9 implicit struct definition // CHECK-NEXT: | `-CapturedRecordAttr {{.*}} <> Implicit // CHECK-NEXT: `-CapturedDecl {{.*}} <> -// CHECK-NEXT: |-NullStmt {{.*}} +// CHECK-NEXT: |-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-section.c:6:9) *const restrict' Index: test/AST/ast-dump-openmp-sections.c =================================================================== --- test/AST/ast-dump-openmp-sections.c +++ test/AST/ast-dump-openmp-sections.c @@ -18,6 +18,6 @@ // CHECK-NEXT: `-OMPSectionsDirective {{.*}} // CHECK-NEXT: `-CapturedStmt {{.*}} // CHECK-NEXT: `-CapturedDecl {{.*}} <> -// CHECK-NEXT: |-CompoundStmt {{.*}} +// CHECK-NEXT: |-CompoundStmt {{.*}} openmp_structured_block // CHECK-NEXT: | `-NullStmt {{.*}} // CHECK-NEXT: `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-sections.c:9:9) *const restrict' Index: test/AST/ast-dump-openmp-simd.c =================================================================== --- test/AST/ast-dump-openmp-simd.c +++ test/AST/ast-dump-openmp-simd.c @@ -54,7 +54,7 @@ // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-simd.c:4:9) *const restrict' // CHECK-NEXT: | | `-VarDecl {{.*}} col:12 used i 'int' cinit // CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 @@ -78,7 +78,7 @@ // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -120,7 +120,7 @@ // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -174,7 +174,7 @@ // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-simd.c:24:9) *const restrict' // CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit // CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -217,7 +217,7 @@ // CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | `-ForStmt {{.*}} +// CHECK-NEXT: | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit // CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 Index: test/AST/ast-dump-openmp-single.c =================================================================== --- test/AST/ast-dump-openmp-single.c +++ test/AST/ast-dump-openmp-single.c @@ -11,5 +11,5 @@ // CHECK-NEXT: `-OMPSingleDirective {{.*}} // CHECK-NEXT: `-CapturedStmt {{.*}} // CHECK-NEXT: `-CapturedDecl {{.*}} <> -// CHECK-NEXT: |-NullStmt {{.*}} +// CHECK-NEXT: |-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-single.c:4:9) *const restrict' Index: test/AST/ast-dump-openmp-target-data.c =================================================================== --- test/AST/ast-dump-openmp-target-data.c +++ test/AST/ast-dump-openmp-target-data.c @@ -14,5 +14,5 @@ // CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: `-CapturedStmt {{.*}} // CHECK-NEXT: `-CapturedDecl {{.*}} <> -// CHECK-NEXT: |-NullStmt {{.*}} +// CHECK-NEXT: |-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-data.c:4:9) *const restrict' Index: test/AST/ast-dump-openmp-target-enter-data.c =================================================================== --- test/AST/ast-dump-openmp-target-enter-data.c +++ test/AST/ast-dump-openmp-target-enter-data.c @@ -9,7 +9,7 @@ // CHECK: `-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-target-enter-data.c:3:1, line:6:1> line:3:6 test 'void (int)' // CHECK-NEXT: |-ParmVarDecl {{.*}} col:15 used x 'int' // CHECK-NEXT: `-CompoundStmt {{.*}} -// CHECK-NEXT: `-OMPTargetEnterDataDirective {{.*}} +// CHECK-NEXT: `-OMPTargetEnterDataDirective {{.*}} openmp_standalone_directive // CHECK-NEXT: |-OMPMapClause {{.*}} // CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: `-CapturedStmt {{.*}} Index: test/AST/ast-dump-openmp-target-exit-data.c =================================================================== --- test/AST/ast-dump-openmp-target-exit-data.c +++ test/AST/ast-dump-openmp-target-exit-data.c @@ -9,7 +9,7 @@ // CHECK: `-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-target-exit-data.c:3:1, line:6:1> line:3:6 test 'void (int)' // CHECK-NEXT: |-ParmVarDecl {{.*}} col:15 used x 'int' // CHECK-NEXT: `-CompoundStmt {{.*}} -// CHECK-NEXT: `-OMPTargetExitDataDirective {{.*}} +// CHECK-NEXT: `-OMPTargetExitDataDirective {{.*}} openmp_standalone_directive // CHECK-NEXT: |-OMPMapClause {{.*}} // CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: `-CapturedStmt {{.*}} Index: test/AST/ast-dump-openmp-target-parallel-for-simd.c =================================================================== --- test/AST/ast-dump-openmp-target-parallel-for-simd.c +++ test/AST/ast-dump-openmp-target-parallel-for-simd.c @@ -60,7 +60,7 @@ // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for-simd.c:4:9) *const restrict' @@ -85,7 +85,7 @@ // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for-simd.c:4:9) *const restrict' @@ -118,7 +118,7 @@ // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for-simd.c:4:9) *const restrict' @@ -143,7 +143,7 @@ // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for-simd.c:4:9) *const restrict' @@ -176,7 +176,7 @@ // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -218,7 +218,7 @@ // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -268,7 +268,7 @@ // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -310,7 +310,7 @@ // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -361,7 +361,7 @@ // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -403,7 +403,7 @@ // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -453,7 +453,7 @@ // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -495,7 +495,7 @@ // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -558,7 +558,7 @@ // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for-simd.c:24:9) *const restrict' @@ -600,7 +600,7 @@ // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for-simd.c:24:9) *const restrict' @@ -650,7 +650,7 @@ // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for-simd.c:24:9) *const restrict' @@ -692,7 +692,7 @@ // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for-simd.c:24:9) *const restrict' @@ -745,7 +745,7 @@ // CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit // CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -804,7 +804,7 @@ // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit // CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -871,7 +871,7 @@ // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit // CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -930,7 +930,7 @@ // CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | `-ForStmt {{.*}} +// CHECK-NEXT: | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit // CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 Index: test/AST/ast-dump-openmp-target-parallel-for.c =================================================================== --- test/AST/ast-dump-openmp-target-parallel-for.c +++ test/AST/ast-dump-openmp-target-parallel-for.c @@ -60,7 +60,7 @@ // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for.c:4:9) *const restrict' @@ -85,7 +85,7 @@ // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for.c:4:9) *const restrict' @@ -118,7 +118,7 @@ // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for.c:4:9) *const restrict' @@ -143,7 +143,7 @@ // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for.c:4:9) *const restrict' @@ -176,7 +176,7 @@ // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -218,7 +218,7 @@ // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -268,7 +268,7 @@ // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -310,7 +310,7 @@ // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -361,7 +361,7 @@ // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -403,7 +403,7 @@ // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -453,7 +453,7 @@ // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -495,7 +495,7 @@ // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -558,7 +558,7 @@ // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for.c:24:9) *const restrict' @@ -600,7 +600,7 @@ // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for.c:24:9) *const restrict' @@ -650,7 +650,7 @@ // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for.c:24:9) *const restrict' @@ -692,7 +692,7 @@ // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for.c:24:9) *const restrict' @@ -745,7 +745,7 @@ // CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit // CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -804,7 +804,7 @@ // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit // CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -871,7 +871,7 @@ // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit // CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -930,7 +930,7 @@ // CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | `-ForStmt {{.*}} +// CHECK-NEXT: | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit // CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 Index: test/AST/ast-dump-openmp-target-parallel.c =================================================================== --- test/AST/ast-dump-openmp-target-parallel.c +++ test/AST/ast-dump-openmp-target-parallel.c @@ -15,7 +15,7 @@ // CHECK-NEXT: | `-CapturedDecl {{.*}} <> nothrow // CHECK-NEXT: | |-CapturedStmt {{.*}} // CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow -// CHECK-NEXT: | | |-NullStmt {{.*}} +// CHECK-NEXT: | | |-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel.c:4:9) *const restrict' @@ -23,7 +23,7 @@ // CHECK-NEXT: | |-RecordDecl {{.*}} col:9 implicit struct definition // CHECK-NEXT: | | `-CapturedRecordAttr {{.*}} <> Implicit // CHECK-NEXT: | `-CapturedDecl {{.*}} <> nothrow -// CHECK-NEXT: | |-NullStmt {{.*}} +// CHECK-NEXT: | |-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel.c:4:9) *const restrict' @@ -39,7 +39,7 @@ // CHECK-NEXT: `-CapturedDecl {{.*}} <> nothrow // CHECK-NEXT: |-CapturedStmt {{.*}} // CHECK-NEXT: | `-CapturedDecl {{.*}} <> nothrow -// CHECK-NEXT: | |-NullStmt {{.*}} +// CHECK-NEXT: | |-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel.c:4:9) *const restrict' @@ -47,7 +47,7 @@ // CHECK-NEXT: |-RecordDecl {{.*}} col:9 implicit struct definition // CHECK-NEXT: | `-CapturedRecordAttr {{.*}} <> Implicit // CHECK-NEXT: `-CapturedDecl {{.*}} <> nothrow -// CHECK-NEXT: |-NullStmt {{.*}} +// CHECK-NEXT: |-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel.c:4:9) *const restrict' Index: test/AST/ast-dump-openmp-target-simd.c =================================================================== --- test/AST/ast-dump-openmp-target-simd.c +++ test/AST/ast-dump-openmp-target-simd.c @@ -58,7 +58,7 @@ // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-simd.c:4:9) *const restrict' // CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit // CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -87,7 +87,7 @@ // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-simd.c:4:9) *const restrict' // CHECK-NEXT: | | `-VarDecl {{.*}} col:12 used i 'int' cinit // CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 @@ -116,7 +116,7 @@ // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -162,7 +162,7 @@ // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -209,7 +209,7 @@ // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -255,7 +255,7 @@ // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -314,7 +314,7 @@ // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-simd.c:24:9) *const restrict' // CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit // CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -360,7 +360,7 @@ // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-simd.c:24:9) *const restrict' // CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit // CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -409,7 +409,7 @@ // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit // CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -472,7 +472,7 @@ // CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | `-ForStmt {{.*}} +// CHECK-NEXT: | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit // CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 Index: test/AST/ast-dump-openmp-target-teams-distribute-parallel-for-simd.c =================================================================== --- test/AST/ast-dump-openmp-target-teams-distribute-parallel-for-simd.c +++ test/AST/ast-dump-openmp-target-teams-distribute-parallel-for-simd.c @@ -62,7 +62,7 @@ // CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' @@ -91,7 +91,7 @@ // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' @@ -120,7 +120,7 @@ // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' @@ -149,7 +149,7 @@ // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' @@ -186,7 +186,7 @@ // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' @@ -215,7 +215,7 @@ // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' @@ -244,7 +244,7 @@ // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' @@ -273,7 +273,7 @@ // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' @@ -310,7 +310,7 @@ // CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -356,7 +356,7 @@ // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -402,7 +402,7 @@ // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -448,7 +448,7 @@ // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -502,7 +502,7 @@ // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -548,7 +548,7 @@ // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -594,7 +594,7 @@ // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -640,7 +640,7 @@ // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -695,7 +695,7 @@ // CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -741,7 +741,7 @@ // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -787,7 +787,7 @@ // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -833,7 +833,7 @@ // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -887,7 +887,7 @@ // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -933,7 +933,7 @@ // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -979,7 +979,7 @@ // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -1025,7 +1025,7 @@ // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -1092,7 +1092,7 @@ // CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' @@ -1138,7 +1138,7 @@ // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' @@ -1184,7 +1184,7 @@ // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' @@ -1230,7 +1230,7 @@ // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' @@ -1284,7 +1284,7 @@ // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' @@ -1330,7 +1330,7 @@ // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' @@ -1376,7 +1376,7 @@ // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' @@ -1422,7 +1422,7 @@ // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' @@ -1479,7 +1479,7 @@ // CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit // CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -1542,7 +1542,7 @@ // CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit // CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -1605,7 +1605,7 @@ // CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit // CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -1668,7 +1668,7 @@ // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit // CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -1739,7 +1739,7 @@ // CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit // CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -1802,7 +1802,7 @@ // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit // CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -1865,7 +1865,7 @@ // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit // CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -1928,7 +1928,7 @@ // CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | `-ForStmt {{.*}} +// CHECK-NEXT: | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit // CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 Index: test/AST/ast-dump-openmp-target-teams-distribute-parallel-for.c =================================================================== --- test/AST/ast-dump-openmp-target-teams-distribute-parallel-for.c +++ test/AST/ast-dump-openmp-target-teams-distribute-parallel-for.c @@ -62,7 +62,7 @@ // CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' @@ -91,7 +91,7 @@ // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' @@ -120,7 +120,7 @@ // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' @@ -149,7 +149,7 @@ // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' @@ -186,7 +186,7 @@ // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' @@ -215,7 +215,7 @@ // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' @@ -244,7 +244,7 @@ // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' @@ -273,7 +273,7 @@ // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' @@ -310,7 +310,7 @@ // CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -356,7 +356,7 @@ // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -402,7 +402,7 @@ // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -448,7 +448,7 @@ // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -502,7 +502,7 @@ // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -548,7 +548,7 @@ // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -594,7 +594,7 @@ // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -640,7 +640,7 @@ // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -695,7 +695,7 @@ // CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -741,7 +741,7 @@ // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -787,7 +787,7 @@ // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -833,7 +833,7 @@ // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -887,7 +887,7 @@ // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -933,7 +933,7 @@ // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -979,7 +979,7 @@ // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -1025,7 +1025,7 @@ // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -1092,7 +1092,7 @@ // CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' @@ -1138,7 +1138,7 @@ // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' @@ -1184,7 +1184,7 @@ // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' @@ -1230,7 +1230,7 @@ // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' @@ -1284,7 +1284,7 @@ // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' @@ -1330,7 +1330,7 @@ // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' @@ -1376,7 +1376,7 @@ // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' @@ -1422,7 +1422,7 @@ // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' @@ -1479,7 +1479,7 @@ // CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit // CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -1542,7 +1542,7 @@ // CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit // CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -1605,7 +1605,7 @@ // CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit // CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -1668,7 +1668,7 @@ // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit // CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -1739,7 +1739,7 @@ // CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit // CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -1802,7 +1802,7 @@ // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit // CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -1865,7 +1865,7 @@ // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit // CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -1928,7 +1928,7 @@ // CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | `-ForStmt {{.*}} +// CHECK-NEXT: | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit // CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 Index: test/AST/ast-dump-openmp-target-teams-distribute-simd.c =================================================================== --- test/AST/ast-dump-openmp-target-teams-distribute-simd.c +++ test/AST/ast-dump-openmp-target-teams-distribute-simd.c @@ -60,7 +60,7 @@ // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:4:9) *const restrict' @@ -85,7 +85,7 @@ // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:4:9) *const restrict' @@ -118,7 +118,7 @@ // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:4:9) *const restrict' @@ -143,7 +143,7 @@ // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:4:9) *const restrict' @@ -176,7 +176,7 @@ // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -218,7 +218,7 @@ // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -268,7 +268,7 @@ // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -310,7 +310,7 @@ // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -361,7 +361,7 @@ // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -403,7 +403,7 @@ // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -453,7 +453,7 @@ // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -495,7 +495,7 @@ // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -558,7 +558,7 @@ // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:24:9) *const restrict' @@ -600,7 +600,7 @@ // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:24:9) *const restrict' @@ -650,7 +650,7 @@ // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:24:9) *const restrict' @@ -692,7 +692,7 @@ // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:24:9) *const restrict' @@ -745,7 +745,7 @@ // CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit // CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -804,7 +804,7 @@ // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit // CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -871,7 +871,7 @@ // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit // CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -930,7 +930,7 @@ // CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | `-ForStmt {{.*}} +// CHECK-NEXT: | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit // CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 Index: test/AST/ast-dump-openmp-target-teams-distribute.c =================================================================== --- test/AST/ast-dump-openmp-target-teams-distribute.c +++ test/AST/ast-dump-openmp-target-teams-distribute.c @@ -60,7 +60,7 @@ // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute.c:4:9) *const restrict' @@ -85,7 +85,7 @@ // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute.c:4:9) *const restrict' @@ -118,7 +118,7 @@ // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute.c:4:9) *const restrict' @@ -143,7 +143,7 @@ // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute.c:4:9) *const restrict' @@ -176,7 +176,7 @@ // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -218,7 +218,7 @@ // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -268,7 +268,7 @@ // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -310,7 +310,7 @@ // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -361,7 +361,7 @@ // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -403,7 +403,7 @@ // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -453,7 +453,7 @@ // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -495,7 +495,7 @@ // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -558,7 +558,7 @@ // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute.c:24:9) *const restrict' @@ -600,7 +600,7 @@ // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute.c:24:9) *const restrict' @@ -650,7 +650,7 @@ // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute.c:24:9) *const restrict' @@ -692,7 +692,7 @@ // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute.c:24:9) *const restrict' @@ -745,7 +745,7 @@ // CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit // CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -804,7 +804,7 @@ // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit // CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -871,7 +871,7 @@ // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit // CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -930,7 +930,7 @@ // CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | `-ForStmt {{.*}} +// CHECK-NEXT: | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit // CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 Index: test/AST/ast-dump-openmp-target-teams.c =================================================================== --- test/AST/ast-dump-openmp-target-teams.c +++ test/AST/ast-dump-openmp-target-teams.c @@ -15,7 +15,7 @@ // CHECK-NEXT: | `-CapturedDecl {{.*}} <> nothrow // CHECK-NEXT: | |-CapturedStmt {{.*}} // CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow -// CHECK-NEXT: | | |-NullStmt {{.*}} +// CHECK-NEXT: | | |-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams.c:4:9) *const restrict' @@ -23,7 +23,7 @@ // CHECK-NEXT: | |-RecordDecl {{.*}} col:9 implicit struct definition // CHECK-NEXT: | | `-CapturedRecordAttr {{.*}} <> Implicit // CHECK-NEXT: | `-CapturedDecl {{.*}} <> nothrow -// CHECK-NEXT: | |-NullStmt {{.*}} +// CHECK-NEXT: | |-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams.c:4:9) *const restrict' @@ -39,7 +39,7 @@ // CHECK-NEXT: `-CapturedDecl {{.*}} <> nothrow // CHECK-NEXT: |-CapturedStmt {{.*}} // CHECK-NEXT: | `-CapturedDecl {{.*}} <> nothrow -// CHECK-NEXT: | |-NullStmt {{.*}} +// CHECK-NEXT: | |-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams.c:4:9) *const restrict' @@ -47,7 +47,7 @@ // CHECK-NEXT: |-RecordDecl {{.*}} col:9 implicit struct definition // CHECK-NEXT: | `-CapturedRecordAttr {{.*}} <> Implicit // CHECK-NEXT: `-CapturedDecl {{.*}} <> nothrow -// CHECK-NEXT: |-NullStmt {{.*}} +// CHECK-NEXT: |-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams.c:4:9) *const restrict' Index: test/AST/ast-dump-openmp-target-update.c =================================================================== --- test/AST/ast-dump-openmp-target-update.c +++ test/AST/ast-dump-openmp-target-update.c @@ -8,7 +8,7 @@ // CHECK: `-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-target-update.c:3:1, line:5:1> line:3:6 test 'void (int)' // CHECK-NEXT: |-ParmVarDecl {{.*}} col:15 used x 'int' // CHECK-NEXT: `-CompoundStmt {{.*}} -// CHECK-NEXT: `-OMPTargetUpdateDirective {{.*}} +// CHECK-NEXT: `-OMPTargetUpdateDirective {{.*}} openmp_standalone_directive // CHECK-NEXT: |-OMPToClause {{.*}} // CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: `-CapturedStmt {{.*}} Index: test/AST/ast-dump-openmp-target.c =================================================================== --- test/AST/ast-dump-openmp-target.c +++ test/AST/ast-dump-openmp-target.c @@ -13,7 +13,7 @@ // CHECK-NEXT: `-CapturedDecl {{.*}} <> nothrow // CHECK-NEXT: |-CapturedStmt {{.*}} // CHECK-NEXT: | `-CapturedDecl {{.*}} <> nothrow -// CHECK-NEXT: | |-NullStmt {{.*}} +// CHECK-NEXT: | |-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target.c:4:9) *const restrict' // CHECK-NEXT: |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline // CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' @@ -25,5 +25,5 @@ // CHECK-NEXT: |-RecordDecl {{.*}} col:9 implicit struct definition // CHECK-NEXT: | `-CapturedRecordAttr {{.*}} <> Implicit // CHECK-NEXT: `-CapturedDecl {{.*}} <> nothrow -// CHECK-NEXT: |-NullStmt {{.*}} +// CHECK-NEXT: |-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target.c:4:9) *const restrict' Index: test/AST/ast-dump-openmp-task.c =================================================================== --- test/AST/ast-dump-openmp-task.c +++ test/AST/ast-dump-openmp-task.c @@ -11,7 +11,7 @@ // CHECK-NEXT: `-OMPTaskDirective {{.*}} // CHECK-NEXT: `-CapturedStmt {{.*}} // CHECK-NEXT: `-CapturedDecl {{.*}} <> nothrow -// CHECK-NEXT: |-NullStmt {{.*}} +// CHECK-NEXT: |-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline // CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' // CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' Index: test/AST/ast-dump-openmp-taskgroup.c =================================================================== --- test/AST/ast-dump-openmp-taskgroup.c +++ test/AST/ast-dump-openmp-taskgroup.c @@ -11,5 +11,5 @@ // CHECK-NEXT: `-OMPTaskgroupDirective {{.*}} // CHECK-NEXT: `-CapturedStmt {{.*}} // CHECK-NEXT: `-CapturedDecl {{.*}} <> -// CHECK-NEXT: |-NullStmt {{.*}} +// CHECK-NEXT: |-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-taskgroup.c:4:9) *const restrict' Index: test/AST/ast-dump-openmp-taskloop-simd.c =================================================================== --- test/AST/ast-dump-openmp-taskloop-simd.c +++ test/AST/ast-dump-openmp-taskloop-simd.c @@ -56,7 +56,7 @@ // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' @@ -94,7 +94,7 @@ // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -150,7 +150,7 @@ // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -218,7 +218,7 @@ // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' @@ -276,7 +276,7 @@ // CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | `-ForStmt {{.*}} +// CHECK-NEXT: | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit // CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 Index: test/AST/ast-dump-openmp-taskloop.c =================================================================== --- test/AST/ast-dump-openmp-taskloop.c +++ test/AST/ast-dump-openmp-taskloop.c @@ -56,7 +56,7 @@ // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' @@ -94,7 +94,7 @@ // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -150,7 +150,7 @@ // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -218,7 +218,7 @@ // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' @@ -276,7 +276,7 @@ // CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | `-ForStmt {{.*}} +// CHECK-NEXT: | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit // CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 Index: test/AST/ast-dump-openmp-taskwait.c =================================================================== --- test/AST/ast-dump-openmp-taskwait.c +++ test/AST/ast-dump-openmp-taskwait.c @@ -7,4 +7,4 @@ // CHECK: TranslationUnitDecl {{.*}} <> // CHECK: `-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-taskwait.c:3:1, line:5:1> line:3:6 test 'void ()' // CHECK-NEXT: `-CompoundStmt {{.*}} -// CHECK-NEXT: `-OMPTaskwaitDirective {{.*}} +// CHECK-NEXT: `-OMPTaskwaitDirective {{.*}} openmp_standalone_directive Index: test/AST/ast-dump-openmp-taskyield.c =================================================================== --- test/AST/ast-dump-openmp-taskyield.c +++ test/AST/ast-dump-openmp-taskyield.c @@ -7,4 +7,4 @@ // CHECK: TranslationUnitDecl {{.*}} <> // CHECK: `-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-taskyield.c:3:1, line:5:1> line:3:6 test 'void ()' // CHECK-NEXT: `-CompoundStmt {{.*}} -// CHECK-NEXT: `-OMPTaskyieldDirective {{.*}} +// CHECK-NEXT: `-OMPTaskyieldDirective {{.*}} openmp_standalone_directive Index: test/AST/ast-dump-openmp-teams-distribute-parallel-for-simd.c =================================================================== --- test/AST/ast-dump-openmp-teams-distribute-parallel-for-simd.c +++ test/AST/ast-dump-openmp-teams-distribute-parallel-for-simd.c @@ -40,7 +40,7 @@ ; } -// CHECK:TranslationUnitDecl {{.*}} <> +// CHECK: TranslationUnitDecl {{.*}} <> // CHECK: |-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:3:1, line:8:1> line:3:6 test_one 'void (int)' // CHECK-NEXT: | |-ParmVarDecl {{.*}} col:19 used x 'int' // CHECK-NEXT: | `-CompoundStmt {{.*}} @@ -51,7 +51,7 @@ // CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow // CHECK-NEXT: | | |-CapturedStmt {{.*}} // CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow -// CHECK-NEXT: | | | | |-OMPTeamsDistributeParallelForSimdDirective {{.*}} +// CHECK-NEXT: | | | | |-OMPTeamsDistributeParallelForSimdDirective {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | `-CapturedStmt {{.*}} // CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow // CHECK-NEXT: | | | | | | |-CapturedStmt {{.*}} @@ -68,7 +68,7 @@ // CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' @@ -96,7 +96,7 @@ // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' @@ -124,7 +124,7 @@ // CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' @@ -152,7 +152,7 @@ // CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' @@ -190,7 +190,7 @@ // CHECK-NEXT: | | | `-FieldDecl {{.*}} col:23 implicit 'int' // CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 // CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow -// CHECK-NEXT: | | |-OMPTeamsDistributeParallelForSimdDirective {{.*}} +// CHECK-NEXT: | | |-OMPTeamsDistributeParallelForSimdDirective {{.*}} openmp_structured_block // CHECK-NEXT: | | | `-CapturedStmt {{.*}} // CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow // CHECK-NEXT: | | | | |-CapturedStmt {{.*}} @@ -207,7 +207,7 @@ // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' @@ -235,7 +235,7 @@ // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' @@ -263,7 +263,7 @@ // CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' @@ -291,7 +291,7 @@ // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' @@ -329,7 +329,7 @@ // CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow // CHECK-NEXT: | | |-CapturedStmt {{.*}} // CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow -// CHECK-NEXT: | | | | |-OMPTeamsDistributeParallelForSimdDirective {{.*}} +// CHECK-NEXT: | | | | |-OMPTeamsDistributeParallelForSimdDirective {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | `-CapturedStmt {{.*}} // CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow // CHECK-NEXT: | | | | | | |-CapturedStmt {{.*}} @@ -346,7 +346,7 @@ // CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -390,7 +390,7 @@ // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -434,7 +434,7 @@ // CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -478,7 +478,7 @@ // CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -533,7 +533,7 @@ // CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' // CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 // CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow -// CHECK-NEXT: | | |-OMPTeamsDistributeParallelForSimdDirective {{.*}} +// CHECK-NEXT: | | |-OMPTeamsDistributeParallelForSimdDirective {{.*}} openmp_structured_block // CHECK-NEXT: | | | `-CapturedStmt {{.*}} // CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow // CHECK-NEXT: | | | | |-CapturedStmt {{.*}} @@ -550,7 +550,7 @@ // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -594,7 +594,7 @@ // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -638,7 +638,7 @@ // CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -682,7 +682,7 @@ // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -735,7 +735,7 @@ // CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow // CHECK-NEXT: | | |-CapturedStmt {{.*}} // CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow -// CHECK-NEXT: | | | | |-OMPTeamsDistributeParallelForSimdDirective {{.*}} +// CHECK-NEXT: | | | | |-OMPTeamsDistributeParallelForSimdDirective {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | |-OMPCollapseClause {{.*}} // CHECK-NEXT: | | | | | | `-ConstantExpr {{.*}} 'int' // CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 1 @@ -755,7 +755,7 @@ // CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -799,7 +799,7 @@ // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -843,7 +843,7 @@ // CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -887,7 +887,7 @@ // CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -942,7 +942,7 @@ // CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' // CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 // CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow -// CHECK-NEXT: | | |-OMPTeamsDistributeParallelForSimdDirective {{.*}} +// CHECK-NEXT: | | |-OMPTeamsDistributeParallelForSimdDirective {{.*}} openmp_structured_block // CHECK-NEXT: | | | |-OMPCollapseClause {{.*}} // CHECK-NEXT: | | | | `-ConstantExpr {{.*}} 'int' // CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 1 @@ -962,7 +962,7 @@ // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -1006,7 +1006,7 @@ // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -1050,7 +1050,7 @@ // CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -1094,7 +1094,7 @@ // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -1147,7 +1147,7 @@ // CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow // CHECK-NEXT: | | |-CapturedStmt {{.*}} // CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow -// CHECK-NEXT: | | | | |-OMPTeamsDistributeParallelForSimdDirective {{.*}} +// CHECK-NEXT: | | | | |-OMPTeamsDistributeParallelForSimdDirective {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | |-OMPCollapseClause {{.*}} // CHECK-NEXT: | | | | | | `-ConstantExpr {{.*}} 'int' // CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 2 @@ -1179,7 +1179,7 @@ // CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' @@ -1223,7 +1223,7 @@ // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' @@ -1267,7 +1267,7 @@ // CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' @@ -1311,7 +1311,7 @@ // CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' @@ -1372,7 +1372,7 @@ // CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' // CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 // CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow -// CHECK-NEXT: | | |-OMPTeamsDistributeParallelForSimdDirective {{.*}} +// CHECK-NEXT: | | |-OMPTeamsDistributeParallelForSimdDirective {{.*}} openmp_structured_block // CHECK-NEXT: | | | |-OMPCollapseClause {{.*}} // CHECK-NEXT: | | | | `-ConstantExpr {{.*}} 'int' // CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 2 @@ -1404,7 +1404,7 @@ // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' @@ -1448,7 +1448,7 @@ // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' @@ -1492,7 +1492,7 @@ // CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' @@ -1536,7 +1536,7 @@ // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' @@ -1597,7 +1597,7 @@ // CHECK-NEXT: |-CapturedDecl {{.*}} <> nothrow // CHECK-NEXT: | |-CapturedStmt {{.*}} // CHECK-NEXT: | | |-CapturedDecl {{.*}} <> nothrow -// CHECK-NEXT: | | | |-OMPTeamsDistributeParallelForSimdDirective {{.*}} +// CHECK-NEXT: | | | |-OMPTeamsDistributeParallelForSimdDirective {{.*}} openmp_structured_block // CHECK-NEXT: | | | | |-OMPCollapseClause {{.*}} // CHECK-NEXT: | | | | | `-ConstantExpr {{.*}} 'int' // CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 2 @@ -1629,7 +1629,7 @@ // CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit // CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -1689,7 +1689,7 @@ // CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit // CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -1749,7 +1749,7 @@ // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit // CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -1809,7 +1809,7 @@ // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit // CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -1887,7 +1887,7 @@ // CHECK-NEXT: | | `-FieldDecl {{.*}} col:27 implicit 'int' // CHECK-NEXT: | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 // CHECK-NEXT: | `-CapturedDecl {{.*}} <> nothrow -// CHECK-NEXT: | |-OMPTeamsDistributeParallelForSimdDirective {{.*}} +// CHECK-NEXT: | |-OMPTeamsDistributeParallelForSimdDirective {{.*}} openmp_structured_block // CHECK-NEXT: | | |-OMPCollapseClause {{.*}} // CHECK-NEXT: | | | `-ConstantExpr {{.*}} 'int' // CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 2 @@ -1919,7 +1919,7 @@ // CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit // CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -1979,7 +1979,7 @@ // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit // CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -2039,7 +2039,7 @@ // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit // CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -2099,7 +2099,7 @@ // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit // CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 Index: test/AST/ast-dump-openmp-teams-distribute-parallel-for.c =================================================================== --- test/AST/ast-dump-openmp-teams-distribute-parallel-for.c +++ test/AST/ast-dump-openmp-teams-distribute-parallel-for.c @@ -51,7 +51,7 @@ // CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow // CHECK-NEXT: | | |-CapturedStmt {{.*}} // CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow -// CHECK-NEXT: | | | | |-OMPTeamsDistributeParallelForDirective {{.*}} +// CHECK-NEXT: | | | | |-OMPTeamsDistributeParallelForDirective {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | `-CapturedStmt {{.*}} // CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow // CHECK-NEXT: | | | | | | |-CapturedStmt {{.*}} @@ -68,7 +68,7 @@ // CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' @@ -96,7 +96,7 @@ // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' @@ -124,7 +124,7 @@ // CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' @@ -152,7 +152,7 @@ // CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' @@ -190,7 +190,7 @@ // CHECK-NEXT: | | | `-FieldDecl {{.*}} col:3 implicit 'int' // CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 // CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow -// CHECK-NEXT: | | |-OMPTeamsDistributeParallelForDirective {{.*}} +// CHECK-NEXT: | | |-OMPTeamsDistributeParallelForDirective {{.*}} openmp_structured_block // CHECK-NEXT: | | | `-CapturedStmt {{.*}} // CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow // CHECK-NEXT: | | | | |-CapturedStmt {{.*}} @@ -207,7 +207,7 @@ // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' @@ -235,7 +235,7 @@ // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' @@ -263,7 +263,7 @@ // CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' @@ -291,7 +291,7 @@ // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' @@ -329,7 +329,7 @@ // CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow // CHECK-NEXT: | | |-CapturedStmt {{.*}} // CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow -// CHECK-NEXT: | | | | |-OMPTeamsDistributeParallelForDirective {{.*}} +// CHECK-NEXT: | | | | |-OMPTeamsDistributeParallelForDirective {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | `-CapturedStmt {{.*}} // CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow // CHECK-NEXT: | | | | | | |-CapturedStmt {{.*}} @@ -346,7 +346,7 @@ // CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -390,7 +390,7 @@ // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -434,7 +434,7 @@ // CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -478,7 +478,7 @@ // CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -533,7 +533,7 @@ // CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' // CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 // CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow -// CHECK-NEXT: | | |-OMPTeamsDistributeParallelForDirective {{.*}} +// CHECK-NEXT: | | |-OMPTeamsDistributeParallelForDirective {{.*}} openmp_structured_block // CHECK-NEXT: | | | `-CapturedStmt {{.*}} // CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow // CHECK-NEXT: | | | | |-CapturedStmt {{.*}} @@ -550,7 +550,7 @@ // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -594,7 +594,7 @@ // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -638,7 +638,7 @@ // CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -682,7 +682,7 @@ // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -735,7 +735,7 @@ // CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow // CHECK-NEXT: | | |-CapturedStmt {{.*}} // CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow -// CHECK-NEXT: | | | | |-OMPTeamsDistributeParallelForDirective {{.*}} +// CHECK-NEXT: | | | | |-OMPTeamsDistributeParallelForDirective {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | |-OMPCollapseClause {{.*}} // CHECK-NEXT: | | | | | | `-ConstantExpr {{.*}} 'int' // CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 1 @@ -755,7 +755,7 @@ // CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -799,7 +799,7 @@ // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -843,7 +843,7 @@ // CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -887,7 +887,7 @@ // CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -942,7 +942,7 @@ // CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' // CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 // CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow -// CHECK-NEXT: | | |-OMPTeamsDistributeParallelForDirective {{.*}} +// CHECK-NEXT: | | |-OMPTeamsDistributeParallelForDirective {{.*}} openmp_structured_block // CHECK-NEXT: | | | |-OMPCollapseClause {{.*}} // CHECK-NEXT: | | | | `-ConstantExpr {{.*}} 'int' // CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 1 @@ -962,7 +962,7 @@ // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -1006,7 +1006,7 @@ // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -1050,7 +1050,7 @@ // CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -1094,7 +1094,7 @@ // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -1147,7 +1147,7 @@ // CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow // CHECK-NEXT: | | |-CapturedStmt {{.*}} // CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow -// CHECK-NEXT: | | | | |-OMPTeamsDistributeParallelForDirective {{.*}} +// CHECK-NEXT: | | | | |-OMPTeamsDistributeParallelForDirective {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | |-OMPCollapseClause {{.*}} // CHECK-NEXT: | | | | | | `-ConstantExpr {{.*}} 'int' // CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 2 @@ -1179,7 +1179,7 @@ // CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' @@ -1223,7 +1223,7 @@ // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' @@ -1267,7 +1267,7 @@ // CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' @@ -1311,7 +1311,7 @@ // CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' @@ -1372,7 +1372,7 @@ // CHECK-NEXT: | | | `-FieldDecl {{.*}} col:5 implicit 'int' // CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 // CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow -// CHECK-NEXT: | | |-OMPTeamsDistributeParallelForDirective {{.*}} +// CHECK-NEXT: | | |-OMPTeamsDistributeParallelForDirective {{.*}} openmp_structured_block // CHECK-NEXT: | | | |-OMPCollapseClause {{.*}} // CHECK-NEXT: | | | | `-ConstantExpr {{.*}} 'int' // CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 2 @@ -1404,7 +1404,7 @@ // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' @@ -1448,7 +1448,7 @@ // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' @@ -1492,7 +1492,7 @@ // CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' @@ -1536,7 +1536,7 @@ // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' @@ -1597,7 +1597,7 @@ // CHECK-NEXT: |-CapturedDecl {{.*}} <> nothrow // CHECK-NEXT: | |-CapturedStmt {{.*}} // CHECK-NEXT: | | |-CapturedDecl {{.*}} <> nothrow -// CHECK-NEXT: | | | |-OMPTeamsDistributeParallelForDirective {{.*}} +// CHECK-NEXT: | | | |-OMPTeamsDistributeParallelForDirective {{.*}} openmp_structured_block // CHECK-NEXT: | | | | |-OMPCollapseClause {{.*}} // CHECK-NEXT: | | | | | `-ConstantExpr {{.*}} 'int' // CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 2 @@ -1629,7 +1629,7 @@ // CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit // CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -1689,7 +1689,7 @@ // CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit // CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -1749,7 +1749,7 @@ // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit // CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -1809,7 +1809,7 @@ // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit // CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -1887,7 +1887,7 @@ // CHECK-NEXT: | | `-FieldDecl {{.*}} col:27 implicit 'int' // CHECK-NEXT: | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 // CHECK-NEXT: | `-CapturedDecl {{.*}} <> nothrow -// CHECK-NEXT: | |-OMPTeamsDistributeParallelForDirective {{.*}} +// CHECK-NEXT: | |-OMPTeamsDistributeParallelForDirective {{.*}} openmp_structured_block // CHECK-NEXT: | | |-OMPCollapseClause {{.*}} // CHECK-NEXT: | | | `-ConstantExpr {{.*}} 'int' // CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 2 @@ -1919,7 +1919,7 @@ // CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit // CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -1979,7 +1979,7 @@ // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit // CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -2039,7 +2039,7 @@ // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit // CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -2099,7 +2099,7 @@ // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit // CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 Index: test/AST/ast-dump-openmp-teams-distribute-simd.c =================================================================== --- test/AST/ast-dump-openmp-teams-distribute-simd.c +++ test/AST/ast-dump-openmp-teams-distribute-simd.c @@ -51,7 +51,7 @@ // CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow // CHECK-NEXT: | | |-CapturedStmt {{.*}} // CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow -// CHECK-NEXT: | | | | |-OMPTeamsDistributeSimdDirective {{.*}} +// CHECK-NEXT: | | | | |-OMPTeamsDistributeSimdDirective {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | `-CapturedStmt {{.*}} // CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow // CHECK-NEXT: | | | | | | |-ForStmt {{.*}} @@ -66,7 +66,7 @@ // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-simd.c:5:9) *const restrict' @@ -90,7 +90,7 @@ // CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-simd.c:5:9) *const restrict' @@ -126,7 +126,7 @@ // CHECK-NEXT: | | | `-FieldDecl {{.*}} col:23 implicit 'int' // CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 // CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow -// CHECK-NEXT: | | |-OMPTeamsDistributeSimdDirective {{.*}} +// CHECK-NEXT: | | |-OMPTeamsDistributeSimdDirective {{.*}} openmp_structured_block // CHECK-NEXT: | | | `-CapturedStmt {{.*}} // CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow // CHECK-NEXT: | | | | |-ForStmt {{.*}} @@ -141,7 +141,7 @@ // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-simd.c:5:9) *const restrict' @@ -165,7 +165,7 @@ // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-simd.c:5:9) *const restrict' @@ -201,7 +201,7 @@ // CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow // CHECK-NEXT: | | |-CapturedStmt {{.*}} // CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow -// CHECK-NEXT: | | | | |-OMPTeamsDistributeSimdDirective {{.*}} +// CHECK-NEXT: | | | | |-OMPTeamsDistributeSimdDirective {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | `-CapturedStmt {{.*}} // CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow // CHECK-NEXT: | | | | | | |-ForStmt {{.*}} @@ -216,7 +216,7 @@ // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -256,7 +256,7 @@ // CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -309,7 +309,7 @@ // CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' // CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 // CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow -// CHECK-NEXT: | | |-OMPTeamsDistributeSimdDirective {{.*}} +// CHECK-NEXT: | | |-OMPTeamsDistributeSimdDirective {{.*}} openmp_structured_block // CHECK-NEXT: | | | `-CapturedStmt {{.*}} // CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow // CHECK-NEXT: | | | | |-ForStmt {{.*}} @@ -324,7 +324,7 @@ // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -364,7 +364,7 @@ // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -415,7 +415,7 @@ // CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow // CHECK-NEXT: | | |-CapturedStmt {{.*}} // CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow -// CHECK-NEXT: | | | | |-OMPTeamsDistributeSimdDirective {{.*}} +// CHECK-NEXT: | | | | |-OMPTeamsDistributeSimdDirective {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | |-OMPCollapseClause {{.*}} // CHECK-NEXT: | | | | | | `-ConstantExpr {{.*}} 'int' // CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 1 @@ -433,7 +433,7 @@ // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -473,7 +473,7 @@ // CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -526,7 +526,7 @@ // CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' // CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 // CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow -// CHECK-NEXT: | | |-OMPTeamsDistributeSimdDirective {{.*}} +// CHECK-NEXT: | | |-OMPTeamsDistributeSimdDirective {{.*}} openmp_structured_block // CHECK-NEXT: | | | |-OMPCollapseClause {{.*}} // CHECK-NEXT: | | | | `-ConstantExpr {{.*}} 'int' // CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 1 @@ -544,7 +544,7 @@ // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -584,7 +584,7 @@ // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -635,7 +635,7 @@ // CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow // CHECK-NEXT: | | |-CapturedStmt {{.*}} // CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow -// CHECK-NEXT: | | | | |-OMPTeamsDistributeSimdDirective {{.*}} +// CHECK-NEXT: | | | | |-OMPTeamsDistributeSimdDirective {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | |-OMPCollapseClause {{.*}} // CHECK-NEXT: | | | | | | `-ConstantExpr {{.*}} 'int' // CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 2 @@ -665,7 +665,7 @@ // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-simd.c:28:9) *const restrict' @@ -705,7 +705,7 @@ // CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-simd.c:28:9) *const restrict' @@ -764,7 +764,7 @@ // CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' // CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 // CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow -// CHECK-NEXT: | | |-OMPTeamsDistributeSimdDirective {{.*}} +// CHECK-NEXT: | | |-OMPTeamsDistributeSimdDirective {{.*}} openmp_structured_block // CHECK-NEXT: | | | |-OMPCollapseClause {{.*}} // CHECK-NEXT: | | | | `-ConstantExpr {{.*}} 'int' // CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 2 @@ -794,7 +794,7 @@ // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-simd.c:28:9) *const restrict' @@ -834,7 +834,7 @@ // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-simd.c:28:9) *const restrict' @@ -893,7 +893,7 @@ // CHECK-NEXT: |-CapturedDecl {{.*}} <> nothrow // CHECK-NEXT: | |-CapturedStmt {{.*}} // CHECK-NEXT: | | |-CapturedDecl {{.*}} <> nothrow -// CHECK-NEXT: | | | |-OMPTeamsDistributeSimdDirective {{.*}} +// CHECK-NEXT: | | | |-OMPTeamsDistributeSimdDirective {{.*}} openmp_structured_block // CHECK-NEXT: | | | | |-OMPCollapseClause {{.*}} // CHECK-NEXT: | | | | | `-ConstantExpr {{.*}} 'int' // CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 2 @@ -923,7 +923,7 @@ // CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit // CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -979,7 +979,7 @@ // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit // CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -1055,7 +1055,7 @@ // CHECK-NEXT: | | `-FieldDecl {{.*}} col:27 implicit 'int' // CHECK-NEXT: | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 // CHECK-NEXT: | `-CapturedDecl {{.*}} <> nothrow -// CHECK-NEXT: | |-OMPTeamsDistributeSimdDirective {{.*}} +// CHECK-NEXT: | |-OMPTeamsDistributeSimdDirective {{.*}} openmp_structured_block // CHECK-NEXT: | | |-OMPCollapseClause {{.*}} // CHECK-NEXT: | | | `-ConstantExpr {{.*}} 'int' // CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 2 @@ -1085,7 +1085,7 @@ // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit // CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -1141,7 +1141,7 @@ // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit // CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 Index: test/AST/ast-dump-openmp-teams-distribute.c =================================================================== --- test/AST/ast-dump-openmp-teams-distribute.c +++ test/AST/ast-dump-openmp-teams-distribute.c @@ -51,7 +51,7 @@ // CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow // CHECK-NEXT: | | |-CapturedStmt {{.*}} // CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow -// CHECK-NEXT: | | | | |-OMPTeamsDistributeDirective {{.*}} +// CHECK-NEXT: | | | | |-OMPTeamsDistributeDirective {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | `-CapturedStmt {{.*}} // CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow // CHECK-NEXT: | | | | | | |-ForStmt {{.*}} @@ -66,7 +66,7 @@ // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute.c:5:9) *const restrict' @@ -90,7 +90,7 @@ // CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute.c:5:9) *const restrict' @@ -126,7 +126,7 @@ // CHECK-NEXT: | | | `-FieldDecl {{.*}} col:3 implicit 'int' // CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 // CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow -// CHECK-NEXT: | | |-OMPTeamsDistributeDirective {{.*}} +// CHECK-NEXT: | | |-OMPTeamsDistributeDirective {{.*}} openmp_structured_block // CHECK-NEXT: | | | `-CapturedStmt {{.*}} // CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow // CHECK-NEXT: | | | | |-ForStmt {{.*}} @@ -141,7 +141,7 @@ // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute.c:5:9) *const restrict' @@ -165,7 +165,7 @@ // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute.c:5:9) *const restrict' @@ -201,7 +201,7 @@ // CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow // CHECK-NEXT: | | |-CapturedStmt {{.*}} // CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow -// CHECK-NEXT: | | | | |-OMPTeamsDistributeDirective {{.*}} +// CHECK-NEXT: | | | | |-OMPTeamsDistributeDirective {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | `-CapturedStmt {{.*}} // CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow // CHECK-NEXT: | | | | | | |-ForStmt {{.*}} @@ -216,7 +216,7 @@ // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -256,7 +256,7 @@ // CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -309,7 +309,7 @@ // CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' // CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 // CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow -// CHECK-NEXT: | | |-OMPTeamsDistributeDirective {{.*}} +// CHECK-NEXT: | | |-OMPTeamsDistributeDirective {{.*}} openmp_structured_block // CHECK-NEXT: | | | `-CapturedStmt {{.*}} // CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow // CHECK-NEXT: | | | | |-ForStmt {{.*}} @@ -324,7 +324,7 @@ // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -364,7 +364,7 @@ // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -415,7 +415,7 @@ // CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow // CHECK-NEXT: | | |-CapturedStmt {{.*}} // CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow -// CHECK-NEXT: | | | | |-OMPTeamsDistributeDirective {{.*}} +// CHECK-NEXT: | | | | |-OMPTeamsDistributeDirective {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | |-OMPCollapseClause {{.*}} // CHECK-NEXT: | | | | | | `-ConstantExpr {{.*}} 'int' // CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 1 @@ -433,7 +433,7 @@ // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -473,7 +473,7 @@ // CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -526,7 +526,7 @@ // CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' // CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 // CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow -// CHECK-NEXT: | | |-OMPTeamsDistributeDirective {{.*}} +// CHECK-NEXT: | | |-OMPTeamsDistributeDirective {{.*}} openmp_structured_block // CHECK-NEXT: | | | |-OMPCollapseClause {{.*}} // CHECK-NEXT: | | | | `-ConstantExpr {{.*}} 'int' // CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 1 @@ -544,7 +544,7 @@ // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -584,7 +584,7 @@ // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' // CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit // CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -635,7 +635,7 @@ // CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow // CHECK-NEXT: | | |-CapturedStmt {{.*}} // CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow -// CHECK-NEXT: | | | | |-OMPTeamsDistributeDirective {{.*}} +// CHECK-NEXT: | | | | |-OMPTeamsDistributeDirective {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | |-OMPCollapseClause {{.*}} // CHECK-NEXT: | | | | | | `-ConstantExpr {{.*}} 'int' // CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 2 @@ -665,7 +665,7 @@ // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute.c:28:9) *const restrict' @@ -705,7 +705,7 @@ // CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute.c:28:9) *const restrict' @@ -764,7 +764,7 @@ // CHECK-NEXT: | | | `-FieldDecl {{.*}} col:5 implicit 'int' // CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 // CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow -// CHECK-NEXT: | | |-OMPTeamsDistributeDirective {{.*}} +// CHECK-NEXT: | | |-OMPTeamsDistributeDirective {{.*}} openmp_structured_block // CHECK-NEXT: | | | |-OMPCollapseClause {{.*}} // CHECK-NEXT: | | | | `-ConstantExpr {{.*}} 'int' // CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 2 @@ -794,7 +794,7 @@ // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute.c:28:9) *const restrict' @@ -834,7 +834,7 @@ // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | `-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute.c:28:9) *const restrict' @@ -893,7 +893,7 @@ // CHECK-NEXT: |-CapturedDecl {{.*}} <> nothrow // CHECK-NEXT: | |-CapturedStmt {{.*}} // CHECK-NEXT: | | |-CapturedDecl {{.*}} <> nothrow -// CHECK-NEXT: | | | |-OMPTeamsDistributeDirective {{.*}} +// CHECK-NEXT: | | | |-OMPTeamsDistributeDirective {{.*}} openmp_structured_block // CHECK-NEXT: | | | | |-OMPCollapseClause {{.*}} // CHECK-NEXT: | | | | | `-ConstantExpr {{.*}} 'int' // CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 2 @@ -923,7 +923,7 @@ // CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit // CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -979,7 +979,7 @@ // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit // CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -1055,7 +1055,7 @@ // CHECK-NEXT: | | `-FieldDecl {{.*}} col:27 implicit 'int' // CHECK-NEXT: | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 // CHECK-NEXT: | `-CapturedDecl {{.*}} <> nothrow -// CHECK-NEXT: | |-OMPTeamsDistributeDirective {{.*}} +// CHECK-NEXT: | |-OMPTeamsDistributeDirective {{.*}} openmp_structured_block // CHECK-NEXT: | | |-OMPCollapseClause {{.*}} // CHECK-NEXT: | | | `-ConstantExpr {{.*}} 'int' // CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 2 @@ -1085,7 +1085,7 @@ // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit // CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 @@ -1141,7 +1141,7 @@ // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' // CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' -// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | `-ForStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | | |-DeclStmt {{.*}} // CHECK-NEXT: | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit // CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 Index: test/AST/ast-dump-openmp-teams.c =================================================================== --- test/AST/ast-dump-openmp-teams.c +++ test/AST/ast-dump-openmp-teams.c @@ -14,10 +14,10 @@ // CHECK-NEXT: `-CapturedDecl {{.*}} <> nothrow // CHECK-NEXT: |-CapturedStmt {{.*}} // CHECK-NEXT: | `-CapturedDecl {{.*}} <> nothrow -// CHECK-NEXT: | |-OMPTeamsDirective {{.*}} +// CHECK-NEXT: | |-OMPTeamsDirective {{.*}} openmp_structured_block // CHECK-NEXT: | | `-CapturedStmt {{.*}} // CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow -// CHECK-NEXT: | | |-NullStmt {{.*}} +// CHECK-NEXT: | | |-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | | `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams.c:5:9) *const restrict' @@ -25,7 +25,7 @@ // CHECK-NEXT: | |-RecordDecl {{.*}} col:9 implicit struct definition // CHECK-NEXT: | | `-CapturedRecordAttr {{.*}} <> Implicit // CHECK-NEXT: | `-CapturedDecl {{.*}} <> nothrow -// CHECK-NEXT: | |-NullStmt {{.*}} +// CHECK-NEXT: | |-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams.c:5:9) *const restrict' @@ -39,10 +39,10 @@ // CHECK-NEXT: |-RecordDecl {{.*}} col:9 implicit struct definition // CHECK-NEXT: | `-CapturedRecordAttr {{.*}} <> Implicit // CHECK-NEXT: `-CapturedDecl {{.*}} <> nothrow -// CHECK-NEXT: |-OMPTeamsDirective {{.*}} +// CHECK-NEXT: |-OMPTeamsDirective {{.*}} openmp_structured_block // CHECK-NEXT: | `-CapturedStmt {{.*}} // CHECK-NEXT: | `-CapturedDecl {{.*}} <> nothrow -// CHECK-NEXT: | |-NullStmt {{.*}} +// CHECK-NEXT: | |-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: | `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams.c:5:9) *const restrict' @@ -50,7 +50,7 @@ // CHECK-NEXT: |-RecordDecl {{.*}} col:9 implicit struct definition // CHECK-NEXT: | `-CapturedRecordAttr {{.*}} <> Implicit // CHECK-NEXT: `-CapturedDecl {{.*}} <> nothrow -// CHECK-NEXT: |-NullStmt {{.*}} +// CHECK-NEXT: |-NullStmt {{.*}} openmp_structured_block // CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams.c:5:9) *const restrict' Index: test/AST/dump.cpp =================================================================== --- test/AST/dump.cpp +++ test/AST/dump.cpp @@ -1,5 +1,5 @@ -// RUN: %clang_cc1 -verify -fopenmp -ast-dump %s | FileCheck %s -// RUN: %clang_cc1 -verify -fopenmp-simd -ast-dump %s | FileCheck %s +// RUN: %clang_cc1 -verify -fopenmp -ast-dump %s | FileCheck %s -implicit-check-not=openmp_structured_block +// RUN: %clang_cc1 -verify -fopenmp-simd -ast-dump %s | FileCheck %s -implicit-check-not=openmp_structured_block // expected-no-diagnostics int ga, gb; @@ -63,7 +63,7 @@ // CHECK-NEXT: | `-CapturedStmt {{.+}} // CHECK-NEXT: | |-CapturedDecl {{.+}} <> nothrow // CHECK-NEXT: | | |-ForStmt {{.+}} -// CHECK: | | | `-UnaryOperator {{.+}} 'int' lvalue prefix '++' +// CHECK: | | | `-UnaryOperator {{.+}} openmp_structured_block 'int' lvalue prefix '++' // CHECK-NEXT: | | | `-DeclRefExpr {{.+}} 'int' lvalue OMPCapturedExpr {{.+}} 'a' 'int &' #pragma omp declare simd Index: test/PCH/stmt-openmp_structured_block-bit.h =================================================================== --- /dev/null +++ test/PCH/stmt-openmp_structured_block-bit.h @@ -0,0 +1,13 @@ +// Test this without pch. +// RUN: %clang_cc1 -include %S/cxx_exprs.h -std=c++11 -fsyntax-only -verify %s -ast-dump | FileCheck %s + +// Test with pch. Use '-ast-dump' to force deserialization of function bodies. +// RUN: %clang_cc1 -x c++-header -std=c++11 -emit-pch -o %t %S/cxx_exprs.h +// RUN: %clang_cc1 -std=c++11 -include-pch %t -fsyntax-only -verify %s -ast-dump-all | FileCheck %s + +// expected-no-diagnostics + +void test() { +#pragma omp parallel + ; +} Index: test/PCH/stmt-openmp_structured_block-bit.cpp =================================================================== --- /dev/null +++ test/PCH/stmt-openmp_structured_block-bit.cpp @@ -0,0 +1,19 @@ +// Test this without pch. +// RUN: %clang_cc1 -include %S/stmt-openmp_structured_block-bit.h -std=c++11 -fopenmp -fsyntax-only -verify %s -ast-dump-all | FileCheck %s -implicit-check-not=openmp_structured_block + +// Test with pch. Use '-ast-dump' to force deserialization of function bodies. +// RUN: %clang_cc1 -x c++-header -std=c++11 -fopenmp -emit-pch -o %t %S/stmt-openmp_structured_block-bit.h +// RUN: %clang_cc1 -std=c++11 -include-pch %t -fopenmp -fsyntax-only -verify %s -ast-dump-all | FileCheck %s -implicit-check-not=openmp_structured_block + +// expected-no-diagnostics + +// CHECK: TranslationUnitDecl 0x{{.*}} <> +// CHECK: `-FunctionDecl 0x{{.*}} <{{.*}}stmt-openmp_structured_block-bit.h:10:1, line:13:1> line:10:6 {{(test|imported test)}} 'void ()' +// CHECK-NEXT: `-CompoundStmt 0x{{.*}} +// CHECK-NEXT: `-OMPParallelDirective 0x{{.*}} +// CHECK-NEXT: `-CapturedStmt 0x{{.*}} +// CHECK-NEXT: `-CapturedDecl 0x{{.*}} <> {{(nothrow|imported nothrow)}} +// CHECK-NEXT: |-NullStmt 0x{{.*}} openmp_structured_block +// CHECK-NEXT: |-ImplicitParamDecl 0x{{.*}} col:9 {{(implicit|imported implicit)}} .global_tid. 'const int *const __restrict' +// CHECK-NEXT: |-ImplicitParamDecl 0x{{.*}} col:9 {{(implicit|imported implicit)}} .bound_tid. 'const int *const __restrict' +// CHECK-NEXT: `-ImplicitParamDecl 0x{{.*}} col:9 {{(implicit|imported implicit)}} __context '(anonymous struct at {{.*}}stmt-openmp_structured_block-bit.h:11:9) *const __restrict'